public abstract class AbstractProcessExecutor extends java.lang.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(java.lang.String[] command,
java.lang.String[] environment,
java.io.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(java.lang.String[] command,
java.lang.String[] environment,
java.io.File directory,
Drain stdOutput,
Drain stdError)
throws java.io.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 outputjava.io.IOException - on any error executing the process.ProcessExecutor.execute(String[], String[], File, Drain, Drain)Copyright © 2018 SAP SE. All Rights Reserved.