ProcessRunner insteadpublic class ProcessExecutor<T extends Exception> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ProcessExecutor(String[] commandLine)
Deprecated.
|
protected |
ProcessExecutor(String[] commandLine,
boolean redirectErrorStream)
Deprecated.
|
protected |
ProcessExecutor(String commandLine,
boolean redirectErrorStream)
Deprecated.
|
protected |
ProcessExecutor(String commandLine,
Map<String,String> environment,
boolean redirectErrorStream)
Deprecated.
|
protected |
ProcessExecutor(String command,
String options)
Deprecated.
|
protected |
ProcessExecutor(String command,
String[] options)
Deprecated.
|
protected |
ProcessExecutor(String command,
String options,
boolean redirectErrorStream)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Deprecated.
|
protected void |
onProcessFinished(int exitCode)
Deprecated.
|
protected void |
onStderr(String line)
Deprecated.
A line of output has been read from the processe's stderr.
|
protected void |
onStdout(String line)
Deprecated.
A line of output has been read from the processe's stdout.
|
protected ProcessExecutor(String commandLine, Map<String,String> environment, boolean redirectErrorStream)
protected ProcessExecutor(String[] commandLine)
protected ProcessExecutor(String commandLine, boolean redirectErrorStream)
protected ProcessExecutor(String[] commandLine, boolean redirectErrorStream)
public final void execute()
throws ProcessExcecutorException
ProcessExcecutorExceptionprotected void onStderr(String line)
line - the line from stderrprotected void onStdout(String line)
line - the line from stdoutCopyright © 2009–2020 Opencast Project. All rights reserved.