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

java.lang.Object
  extended by com.xebialabs.deployit.plugin.generic.step.BaseStep
      extended by com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep
All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.flow.Step, java.io.Serializable
Direct Known Subclasses:
InspectScriptExecutionStep, ScriptExecutionStep

public abstract class BaseExecutionStep
extends BaseStep

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.xebialabs.deployit.plugin.generic.step.BaseStep
FREEMARKER_FILE_EXT, logger
 
Fields inherited from interface com.xebialabs.deployit.plugin.api.flow.Step
DEFAULT_ORDER
 
Constructor Summary
BaseExecutionStep(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.flow.StepExitCode doExecute()
           
protected  com.xebialabs.deployit.plugin.api.flow.StepExitCode 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()
           
 
Methods inherited from class com.xebialabs.deployit.plugin.generic.step.BaseStep
classpathResourceExists, createOrReplaceHostFile, disconnect, evaluateTemplate, evaluateTemplate, getContainer, getCtx, getDescription, getHostFileSeparator, getHostLineSeparator, getLocalConnection, getRemoteConnection, getRemoteWorkingDirectory, getRemoteWorkingDirPath, handleExecute, hostFileExists, isRetainRemoteWorkingDirOnCompletion, readHostFile, readHostFileLines, readHostXmlFileAsModel, resolveOsSpecificTemplate, setRemoteWorkingDirPath, setRetainRemoteWorkingDirOnCompletion, substringAfterLast, substringAfterLast, uploadToWorkingDirectory, uploadToWorkingDirectory, uploadToWorkingDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.xebialabs.deployit.plugin.api.flow.Step
execute, getOrder
 

Constructor Detail

BaseExecutionStep

public BaseExecutionStep(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.flow.StepExitCode doExecute()
                                                              throws java.lang.Exception
Specified by:
doExecute in class BaseStep
Throws:
java.lang.Exception

uploadArtifactIfPresent

protected com.xebialabs.overthere.OverthereFile uploadArtifactIfPresent()

uploadFileResources

protected void uploadFileResources()

uploadClasspathResources

protected void uploadClasspathResources()

uploadTemplateClasspathResources

protected void uploadTemplateClasspathResources()

setWorkingDirectory

protected void setWorkingDirectory()

uploadScriptToExecute

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

executeScript

protected com.xebialabs.deployit.plugin.api.flow.StepExitCode 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)