public abstract class AbstractProcessExecutor extends Object implements ProcessExecutor
ProcessExecutor providing the standard implementation
of execute(String[], String[], File, Drain, Drain).| Constructor and Description |
|---|
AbstractProcessExecutor() |
| Modifier and Type | Method and Description |
|---|---|
int |
execute(String[] command,
String[] environment,
File directory,
Drain stdOutput,
Drain stdError)
Shortcut method calling
this.execute(new ProcessContext(command, environment, directory, stdOutput, stdError));. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, quitpublic int execute(String[] command, String[] environment, File directory, Drain stdOutput, Drain stdError) throws IOException
this.execute(new ProcessContext(command, environment, directory, stdOutput, stdError));.
Synchronously executes the given command in the given environment and directory.execute in interface ProcessExecutorcommand - the command line to execute/environment - the environment to usedirectory - the directory to execute the command instdOutput - callback handle to process the processes standard outputstdError - callback handle to process the processes standard error outputIOException - on any error executing the process.ProcessExecutor.execute(String[], String[], File, Drain, Drain)Copyright © 2017 SAP SE. All Rights Reserved.