|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.command.Command
public abstract class Command
This class executes a command line command.
Field Summary | |
---|---|
protected BuildLoggerManager |
buildLoggerManager
|
protected VariableSubstitutionBean |
substitutionBean
|
Constructor Summary | |
---|---|
Command()
|
Method Summary | |
---|---|
int |
executeCommand(CommandExecuteStreamHandler commandExecuteStreamHandler,
java.lang.String planKey,
java.lang.String vmParams,
java.lang.String javaHome,
java.util.Map<java.lang.String,java.lang.String> customBuildData,
ReadOnlyCapabilitySet capabilitySet)
Execute the command line in a specific directory. |
BuildLoggerManager |
getBuildLoggerManager()
|
abstract org.apache.tools.ant.types.Commandline |
getCommandLine(ReadOnlyCapabilitySet capabilitySet)
What the is the command line to execute? |
protected java.lang.String[] |
getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
|
java.lang.String[] |
getEnvironmentSetting(java.lang.String vmParams,
java.lang.String javaHome)
Returns the environment settings. |
VariableSubstitutionBean |
getVariableSubstitutionBean()
|
abstract java.io.File |
getWorkingDirectory()
Where should the command be executed? |
protected boolean |
isExecutableExists(ReadOnlyCapabilitySet capabilitySet)
|
protected boolean |
isWindowsPlatform()
Is the server running on the Windows platform? |
void |
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
|
void |
setVariableSubstitutionBean(VariableSubstitutionBean substitutionBean)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected VariableSubstitutionBean substitutionBean
protected BuildLoggerManager buildLoggerManager
Constructor Detail |
---|
public Command()
Method Detail |
---|
public int executeCommand(@NotNull CommandExecuteStreamHandler commandExecuteStreamHandler, java.lang.String planKey, java.lang.String vmParams, java.lang.String javaHome, java.util.Map<java.lang.String,java.lang.String> customBuildData, ReadOnlyCapabilitySet capabilitySet) throws CommandException
commandExecuteStreamHandler
- Stream Handler for the output of the execute commandplanKey
- the plan key for the buildvmParams
- The virtual machine parameters to use while executing the commandjavaHome
- The java home value for this commandcustomBuildData
- capabilitySet
-
CommandException
- Failureprotected java.lang.String[] getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
protected boolean isExecutableExists(ReadOnlyCapabilitySet capabilitySet)
public java.lang.String[] getEnvironmentSetting(java.lang.String vmParams, java.lang.String javaHome)
vmParams
- build specific settingsjavaHome
-
public abstract java.io.File getWorkingDirectory()
public abstract org.apache.tools.ant.types.Commandline getCommandLine(ReadOnlyCapabilitySet capabilitySet)
capabilitySet
-
protected boolean isWindowsPlatform()
public void setVariableSubstitutionBean(VariableSubstitutionBean substitutionBean)
public VariableSubstitutionBean getVariableSubstitutionBean()
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public BuildLoggerManager getBuildLoggerManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |