public abstract class AbstractExecTask<T extends AbstractExecSpec<T>> extends GrolifantDefaultTask implements ConfigCacheSafeOperations, Executable
Configures a task that will run a non-JVM execution.
| Constructor and description |
|---|
protected AbstractExecTask
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
entrypoint(Action<ExecutableEntryPoint> configurator)Configures the native entrypoint. |
|
public void |
entrypoint(groovy.lang.Closure<?> configurator)Configures the native entrypoint. |
|
protected void |
exec() |
|
public ExecutableEntryPoint |
getEntrypoint()Access to the entrypoint |
|
protected abstract T |
getNativeExecSpec()The actual implementation of the execution specification. |
|
public ProcessExecutionSpec |
getProcess()Access to the process specification. |
|
public CmdlineArgumentSpec |
getRunnerSpec()Access to the runner specification. |
|
public void |
process(Action<ProcessExecutionSpec> configurator)Configures the stream redirections and exit checks. |
|
public void |
process(groovy.lang.Closure<?> configurator)Configures the stream redirections and exit checks. |
|
protected void |
processOutput(ExecOutput output)Process the output from an ExecOutput. |
|
public void |
runnerSpec(Action<CmdlineArgumentSpec> configurator)Configures the arguments. |
|
public void |
runnerSpec(groovy.lang.Closure<?> configurator)Configures the arguments. |
| Methods inherited from class | Name |
|---|---|
class GrolifantDefaultTask |
execTools, fsOperations, getGrolifantSecurePropertyService, jvmTools, problemReporter, projectTools, providerTools, stringTools |
Configures the native entrypoint.
configurator - An action to configure the external executable's entrypoint.Configures the native entrypoint.
configurator - A closure to configure the external executable's entrypoint.Access to the entrypoint
The actual implementation of the execution specification.
null.Access to the process specification.
Access to the runner specification.
Configures the stream redirections and exit checks.
configurator - An action to configure the execution.Configures the stream redirections and exit checks.
configurator - A closure to configure the execution.Process the output from an ExecOutput.
output - Output to process.Configures the arguments.
configurator - An action to configure the arguments.Configures the arguments.
configurator - A closure to configure the arguments.