|
||||||||||
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 |
find(String executable)
Deprecated. Use the commandline itself to execute your command. |
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)
|
void |
setWorkingDirectory(String workingDirectory)
|
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()
@Deprecated public static String find(String executable)
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 void setWorkingDirectory(String workingDirectory)
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 |