|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.command.Command
public abstract class Command
This class executes a command line command.
| Field Summary | |
|---|---|
protected java.util.List |
myCommandErrors
|
protected java.util.List |
myCommandOutput
|
| Constructor Summary | |
|---|---|
Command()
|
|
| Method Summary | |
|---|---|
int |
executeCommand(Build build,
java.lang.String vmParams,
java.lang.String javaHome)
|
int |
executeCommand(Build build,
java.lang.String vmParams,
java.lang.String javaHome,
BuildResults buildInfo)
Execute the command line in a specific directory. |
abstract org.apache.tools.ant.types.Commandline |
getCommandLine()
What the is the command line to execute? |
protected java.lang.String[] |
getCustomEnvironmentVars()
|
java.lang.String[] |
getEnvironmentSetting(java.lang.String vmParams,
java.lang.String javaHome)
Returns the environment settings. |
java.util.List |
getErrorOutput()
What was writen to the commands error stream? |
java.util.List |
getOutput()
What was the commands output? |
VariableSubstitutionBean |
getVariableSubstitutionBean()
|
abstract java.io.File |
getWorkingDirectory()
Where should the command be executed? |
boolean |
hasErrors()
Did the command generate any errors? |
protected boolean |
isExecutableExists()
|
protected boolean |
isWindowsPlatform()
Is the server running on the Windows platform? |
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 transient java.util.List myCommandOutput
protected transient java.util.List myCommandErrors
| Constructor Detail |
|---|
public Command()
| Method Detail |
|---|
public int executeCommand(Build build,
java.lang.String vmParams,
java.lang.String javaHome,
BuildResults buildInfo)
throws CommandException
build - The BuildvmParams - The virtual machine parameters to use while executing the commandjavaHome - The java home value for this command
CommandException - Failureprotected java.lang.String[] getCustomEnvironmentVars()
public int executeCommand(Build build,
java.lang.String vmParams,
java.lang.String javaHome)
throws CommandException
CommandExceptionprotected boolean isExecutableExists()
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()
public java.util.List getErrorOutput()
public java.util.List getOutput()
public boolean hasErrors()
protected boolean isWindowsPlatform()
public void setVariableSubstitutionBean(VariableSubstitutionBean substitutionBean)
public VariableSubstitutionBean getVariableSubstitutionBean()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||