|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.os.CommandLine
public class CommandLine
Constructor Summary | |
---|---|
CommandLine(java.lang.String[] cmdarray)
|
|
CommandLine(java.lang.String executable,
java.lang.String... args)
|
Method Summary | |
---|---|
void |
copyOutputTo(java.io.OutputStream out)
|
int |
destroy()
Destroy the current command. |
void |
execute()
|
void |
executeAsync()
|
static java.lang.String |
findExecutable(java.lang.String named)
Find the executable by scanning the file system and the PATH. |
int |
getExitCode()
|
static java.lang.String |
getLibraryPathPropertyName()
|
java.lang.String |
getStdOut()
|
boolean |
isSuccessful()
|
void |
setDynamicLibraryPath(java.lang.String newLibraryPath)
|
void |
setEnvironmentVariable(java.lang.String name,
java.lang.String value)
Adds the specified environment variable. |
void |
setEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environment)
Adds the specified environment variables. |
void |
setInput(java.lang.String allInput)
|
java.lang.String |
toString()
|
void |
waitFor()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandLine(java.lang.String executable, java.lang.String... args)
public CommandLine(java.lang.String[] cmdarray)
Method Detail |
---|
public void setEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environment)
environment
- the variables to add
java.lang.IllegalArgumentException
- if any value given is null (unsupported)public void setEnvironmentVariable(java.lang.String name, java.lang.String value)
name
- the name of the environment variablevalue
- the value of the environment variable
java.lang.IllegalArgumentException
- if the value given is null (unsupported)public void setDynamicLibraryPath(java.lang.String newLibraryPath)
public static java.lang.String getLibraryPathPropertyName()
public static java.lang.String findExecutable(java.lang.String named)
named
- The name of the executable to find
public void executeAsync()
public void execute()
public void waitFor()
public boolean isSuccessful()
public int getExitCode()
public java.lang.String getStdOut()
public int destroy()
public void setInput(java.lang.String allInput)
public java.lang.String toString()
toString
in class java.lang.Object
public void copyOutputTo(java.io.OutputStream out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |