|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.util.Commandline
net.sourceforge.cruisecontrol.util.EnvCommandline
Extends the Commandline
class to provide a means
to manipulate the OS environment under which the command will
run.
Nested Class Summary |
Nested classes inherited from class net.sourceforge.cruisecontrol.util.Commandline |
Commandline.Argument, Commandline.Marker |
Constructor Summary | |
EnvCommandline()
Default constructor |
|
EnvCommandline(java.lang.String command)
Constructor which takes a command line string and attempts to parse it into it's various components. |
Method Summary | |
java.lang.Process |
execute()
Executes the command. |
java.lang.String |
getVariable(java.lang.String var)
Gets the value of an environment variable. |
void |
setVariable(java.lang.String var,
java.lang.String value)
Sets a variable within the environment under which the command will be run. |
Methods inherited from class net.sourceforge.cruisecontrol.util.Commandline |
addArguments, clear, clearArgs, clone, createArgument, createArgument, createArgument, createArguments, createMarker, executeAndWait, getArguments, getCommandline, getExecutable, getWorkingDir, getWorkingDirectory, quoteArgument, setExecutable, setWorkingDir, setWorkingDirectory, size, toString, toString, toString, toStringNoQuoting, translateCommandline, useSafeQuoting |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EnvCommandline(java.lang.String command)
command
- The commandpublic EnvCommandline()
Method Detail |
public void setVariable(java.lang.String var, java.lang.String value)
var
- The environment variable to setvalue
- The value of the variablepublic java.lang.String getVariable(java.lang.String var)
var
- The variable for which you wish the value
null
if not foundpublic java.lang.Process execute() throws java.io.IOException
execute
in class Commandline
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |