|
||||||||||
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(String[] cmdarray)
|
|
CommandLine(String executable,
String... args)
|
Method Summary | |
---|---|
void |
copyOutputTo(OutputStream out)
|
int |
destroy()
Destroy the current command. |
void |
execute()
|
void |
executeAsync()
|
static String |
findExecutable(String named)
Find the executable by scanning the file system and the PATH. |
int |
getExitCode()
|
static String |
getLibraryPathPropertyName()
|
String |
getStdOut()
|
boolean |
isSuccessful()
|
void |
setDynamicLibraryPath(String newLibraryPath)
|
void |
setEnvironmentVariable(String name,
String value)
Adds the specified environment variable. |
void |
setEnvironmentVariables(Map<String,String> environment)
Adds the specified environment variables. |
void |
setInput(String allInput)
|
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(String executable, String... args)
public CommandLine(String[] cmdarray)
Method Detail |
---|
public void setEnvironmentVariables(Map<String,String> environment)
environment
- the variables to add
IllegalArgumentException
- if any value given is null (unsupported)public void setEnvironmentVariable(String name, String value)
name
- the name of the environment variablevalue
- the value of the environment variable
IllegalArgumentException
- if the value given is null (unsupported)public void setDynamicLibraryPath(String newLibraryPath)
public static String getLibraryPathPropertyName()
public static String findExecutable(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 String getStdOut()
public int destroy()
public void setInput(String allInput)
public String toString()
toString
in class Object
public void copyOutputTo(OutputStream out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |