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 |
errorOutput(Action<OutputStreamSpec> configurator)Configure the process error output. |
|
public void |
errorOutput(groovy.lang.Closure<?> configurator)Configure the process error output. |
|
public OutputStreamSpec |
getErrorOutput()The output stream configuration. |
|
public OutputStreamSpec |
getOutput()The output stream configuration. |
|
public boolean |
isIgnoreExitValue()Tells whether a non-zero exit value is ignored, or an exception thrown. |
|
public void |
output(Action<OutputStreamSpec> configurator)Configure the process output. |
|
public void |
output(groovy.lang.Closure<?> configurator)Configure the process output. |
|
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 requires at least one of standard output or error output to be captured. This will be still be run if there was an error during execution.
NOTE: Processes run in a worker will silently ignore this setting
.resultProcessor - Function to execute.
It is passed the result of the execution.Configure the process error output.
configurator - Output configuration.Configure the process error output.
configurator - Output configuration.The output stream configuration.
The output stream configuration.
Tells whether a non-zero exit value is ignored, or an exception thrown.
Configure the process output.
configurator - Output configuration.Configure the process output.
configurator - Output configuration.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