com.xebialabs.deployit.plugin.generic.step
Class ScriptExecutionStep

java.lang.Object
  extended by com.xebialabs.deployit.plugin.generic.step.GenericBaseStep
      extended by com.xebialabs.deployit.plugin.generic.step.ScriptExecutionStep
All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.deployment.execution.DeploymentStep, com.xebialabs.deployit.plugin.api.execution.Step<com.xebialabs.deployit.plugin.api.deployment.execution.DeploymentExecutionContext>, java.io.Serializable

public class ScriptExecutionStep
extends GenericBaseStep

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.xebialabs.deployit.plugin.api.execution.Step
com.xebialabs.deployit.plugin.api.execution.Step.Result
 
Field Summary
 
Fields inherited from class com.xebialabs.deployit.plugin.generic.step.GenericBaseStep
FREEMARKER_FILE_EXT, logger
 
Constructor Summary
ScriptExecutionStep(int order, java.lang.String scriptPath, com.xebialabs.deployit.plugin.overthere.HostContainer container, java.util.Map<java.lang.String,java.lang.Object> vars, java.lang.String description)
           
 
Method Summary
 com.xebialabs.deployit.plugin.api.execution.Step.Result doExecute()
           
protected  com.xebialabs.deployit.plugin.api.execution.Step.Result executeScript(com.xebialabs.overthere.OverthereFile executable)
           
 java.io.File getArtifact()
           
 java.util.List<java.lang.String> getClasspathResources()
           
 java.util.List<java.io.File> getFileResources()
           
 java.util.List<java.lang.String> getTemplateClasspathResources()
           
 java.lang.String getUploadedArtifactPath()
           
protected  java.lang.String resolveOsSpecificFileName(java.lang.String template)
           
 void setArtifact(java.io.File artifact)
           
 void setClasspathResources(java.util.List<java.lang.String> classpathResources)
           
 void setFileResources(java.util.List<java.io.File> fileResources)
           
 void setTemplateClasspathResources(java.util.List<java.lang.String> templateClasspathResources)
           
protected  void setWorkingDirectory()
           
protected  com.xebialabs.overthere.OverthereFile uploadArtifactIfPresent()
           
protected  void uploadClasspathResources()
           
protected  void uploadFileResources()
           
protected  com.xebialabs.overthere.OverthereFile uploadScriptToExecute(java.lang.String scriptTemplatePath)
           
protected  void uploadTemplateClasspathResources()
           
 com.xebialabs.overthere.OverthereFile uploadTemplateResourceToWorkingDirectory(java.lang.String template)
           
 
Methods inherited from class com.xebialabs.deployit.plugin.generic.step.GenericBaseStep
classpathResourceExists, createOrReplaceHostFile, disconnect, evaluateTemplate, evaluateTemplate, execute, getContainer, getCtx, getDescription, getHostFileSeparator, getHostLineSeparator, getLocalConnection, getOrder, getRemoteConnection, getRemoteWorkingDirectory, getRemoteWorkingDirPath, hostFileExists, isRetainRemoteWorkingDirOnCompletion, readHostFile, readHostFileLines, readHostXmlFileAsModel, resolveOsSpecificTemplate, setRemoteWorkingDirPath, setRetainRemoteWorkingDirOnCompletion, substringAfterLast, substringAfterLast, uploadResourceToWorkingDirectory, uploadToWorkingDirectory, uploadToWorkingDirectory, uploadToWorkingDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptExecutionStep

public ScriptExecutionStep(int order,
                           java.lang.String scriptPath,
                           com.xebialabs.deployit.plugin.overthere.HostContainer container,
                           java.util.Map<java.lang.String,java.lang.Object> vars,
                           java.lang.String description)
Method Detail

doExecute

public com.xebialabs.deployit.plugin.api.execution.Step.Result doExecute()
                                                                  throws java.lang.Exception
Specified by:
doExecute in class GenericBaseStep
Throws:
java.lang.Exception

uploadArtifactIfPresent

protected com.xebialabs.overthere.OverthereFile uploadArtifactIfPresent()

uploadFileResources

protected void uploadFileResources()

uploadClasspathResources

protected void uploadClasspathResources()

uploadTemplateClasspathResources

protected void uploadTemplateClasspathResources()

uploadTemplateResourceToWorkingDirectory

public com.xebialabs.overthere.OverthereFile uploadTemplateResourceToWorkingDirectory(java.lang.String template)

setWorkingDirectory

protected void setWorkingDirectory()

uploadScriptToExecute

protected com.xebialabs.overthere.OverthereFile uploadScriptToExecute(java.lang.String scriptTemplatePath)

executeScript

protected com.xebialabs.deployit.plugin.api.execution.Step.Result executeScript(com.xebialabs.overthere.OverthereFile executable)

getFileResources

public java.util.List<java.io.File> getFileResources()

setFileResources

public void setFileResources(java.util.List<java.io.File> fileResources)

getClasspathResources

public java.util.List<java.lang.String> getClasspathResources()

setClasspathResources

public void setClasspathResources(java.util.List<java.lang.String> classpathResources)

getTemplateClasspathResources

public java.util.List<java.lang.String> getTemplateClasspathResources()

setTemplateClasspathResources

public void setTemplateClasspathResources(java.util.List<java.lang.String> templateClasspathResources)

getArtifact

public java.io.File getArtifact()

setArtifact

public void setArtifact(java.io.File artifact)

getUploadedArtifactPath

public java.lang.String getUploadedArtifactPath()

resolveOsSpecificFileName

protected java.lang.String resolveOsSpecificFileName(java.lang.String template)