com.xebialabs.deployit.plugin.generic.step
Class BaseExecutionStep<C extends com.xebialabs.deployit.plugin.api.execution.ExecutionContext>

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

public abstract class BaseExecutionStep<C extends com.xebialabs.deployit.plugin.api.execution.ExecutionContext>
extends BaseStep<C>

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.BaseStep
FREEMARKER_FILE_EXT, logger
 
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.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.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.execution.Step
execute
 

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.execution.Step.Result doExecute()
                                                                  throws java.lang.Exception
Specified by:
doExecute in class BaseStep<C extends com.xebialabs.deployit.plugin.api.execution.ExecutionContext>
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)