|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
Command()
|
|
| Method Summary | |
|---|---|
int |
executeCommand(Build build,
String vmParams,
String javaHome)
Execute the command line in a specific directory. |
abstract Commandline |
getCommandLine()
What the is the command line to execute? |
String[] |
getEnvironmentSetting(String vmParams,
String javaHome)
Returns the environment settings. |
List |
getErrorOutput()
What was writen to the commands error stream? |
List |
getOutput()
What was the commands output? |
abstract 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? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Command()
| Method Detail |
|---|
public int executeCommand(Build build,
String vmParams,
String javaHome)
throws CommandException
build - The BuildvmParams - The virtual machine parameters to use while executing the commandjavaHome - The java home value for this command
CommandException - Failureprotected boolean isExecutableExists()
public String[] getEnvironmentSetting(String vmParams,
String javaHome)
vmParams - build specific settingsjavaHome -
public abstract File getWorkingDirectory()
public abstract Commandline getCommandLine()
public List getErrorOutput()
public List getOutput()
public boolean hasErrors()
protected boolean isWindowsPlatform()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||