Ejemplo n.º 1
0
 public void waitFor(long timeout) {
   try {
     process.waitFor(timeout);
   } catch (InterruptedException e) {
     throw new WebDriverException(e);
   }
 }
Ejemplo n.º 2
0
 /**
  * Adds the specified environment variable.
  *
  * @param name the name of the environment variable
  * @param value the value of the environment variable
  * @throws IllegalArgumentException if the value given is null (unsupported)
  */
 public void setEnvironmentVariable(String name, String value) {
   process.setEnvironmentVariable(name, value);
 }
Ejemplo n.º 3
0
 @VisibleForTesting
 Map<String, String> getEnvironment() {
   return process.getEnvironment();
 }
Ejemplo n.º 4
0
 public void checkForError() {
   process.checkForError();
 }
Ejemplo n.º 5
0
 public void copyOutputTo(OutputStream out) {
   process.copyOutputTo(out);
 }
Ejemplo n.º 6
0
 @Override
 public String toString() {
   return process.toString();
 }
Ejemplo n.º 7
0
 public void setWorkingDirectory(String workingDirectory) {
   process.setWorkingDirectory(new File(workingDirectory));
 }
Ejemplo n.º 8
0
 public void setInput(String allInput) {
   process.setInput(allInput);
 }
Ejemplo n.º 9
0
 /**
  * Check whether the current command is still executing.
  *
  * @return true if the current command is still executing, false otherwise
  */
 public boolean isRunning() {
   return process.isRunning();
 }
Ejemplo n.º 10
0
 /**
  * Destroy the current command.
  *
  * @return The exit code of the command.
  */
 public int destroy() {
   return process.destroy();
 }
Ejemplo n.º 11
0
 public String getStdOut() {
   return process.getStdOut();
 }
Ejemplo n.º 12
0
 public int getExitCode() {
   return process.getExitCode();
 }
Ejemplo n.º 13
0
 public void executeAsync() {
   process.executeAsync();
 }