public interface ExecMethods<E extends Executable<E>>
Adds interface to a AbstractToolExtension implementation, so that the spirit of the original
exec project extension can be maintained for a specific tool.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ExecOutput |
exec(Action<E> specConfigurator)Creates an execution specification, configure it with the supplied configurator, then executes it. |
|
public ExecOutput |
exec(OutputType standardOutput, OutputType standardError, Action<E> specConfigurator)Controls what happens to the output of the execution specification. |
|
public ExecOutput |
exec(E spec)Executes an existing execution specification and forwards output to console. |
|
public ExecOutput |
exec(OutputType standardOutput, OutputType standardError, E spec)Controls what happens to the output of the execution specification. |
Creates an execution specification, configure it with the supplied configurator, then executes it.
Output is forwarded to console.
specConfigurator - Specification configurator.Controls what happens to the output of the execution specification.
standardOutput - What to do with standard output.standardError - What toi do with standard error.specConfigurator - Specification configurator.Executes an existing execution specification and forwards output to console.
spec - Specification to execute.Controls what happens to the output of the execution specification.
standardOutput - What to do with standard output.standardError - What to do with standard error.spec - Specification to execute