public interface ProcessExecutionSpec
Describes the data stream redirections for a process including exit checks.
Similar to BaseExecSpec except to getCommandLine / setCommandLine.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
afterExecute(Action<ExecOutput> resultProcessor)After execution has been completed, run this function. |
|
public void |
forwardErrorOutput()Forwards the error output from the running process to console except if running in quiet mode. |
|
public void |
forwardOutput()Forwards the standard output from the running process to console except if running in quiet mode. |
|
public boolean |
isIgnoreExitValue()Tells whether a non-zero exit value is ignored, or an exception thrown. |
|
public void |
setIgnoreExitValue(boolean ignoreExitValue)Sets whether a non-zero exit value is ignored, or an exception thrown. |
After execution has been completed, run this function.
This will be run if there was an error during execution.
resultProcessor - Function to execute.
It is passed the result of the execution.Forwards the error output from the running process to console except if running in quiet mode.
Error output is always written after standard output.
Processes run in a worker will silently ignore this setting
.Forwards the standard output from the running process to console except if running in quiet mode.
Processes run in a worker will silently ignore this setting
.Tells whether a non-zero exit value is ignored, or an exception thrown.
Sets whether a non-zero exit value is ignored, or an exception thrown.
ignoreExitValue - - whether a non-zero exit value is ignored, or an exception thrown