public void waitFor(long timeout) { try { process.waitFor(timeout); } catch (InterruptedException e) { throw new WebDriverException(e); } }
/** * 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); }
@VisibleForTesting Map<String, String> getEnvironment() { return process.getEnvironment(); }
public void checkForError() { process.checkForError(); }
public void copyOutputTo(OutputStream out) { process.copyOutputTo(out); }
@Override public String toString() { return process.toString(); }
public void setWorkingDirectory(String workingDirectory) { process.setWorkingDirectory(new File(workingDirectory)); }
public void setInput(String allInput) { process.setInput(allInput); }
/** * 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(); }
/** * Destroy the current command. * * @return The exit code of the command. */ public int destroy() { return process.destroy(); }
public String getStdOut() { return process.getStdOut(); }
public int getExitCode() { return process.getExitCode(); }
public void executeAsync() { process.executeAsync(); }