public class AbstractExecSpec extends Object
Base class for creating execution specifications.
- CLass extending AbstractExecSpec.| Modifiers | Name | Description |
|---|---|---|
protected org.ysb33r.grolifant.api.core.executable.AppRunnerSpec |
appRunnerSpec |
|
protected org.ysb33r.grolifant.api.core.ProjectOperations |
projectOperations |
| Constructor and description |
|---|
protected AbstractExecSpec
(org.ysb33r.grolifant.api.core.ProjectOperations po) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
addCommandLineProcessor(String name, Integer order, CmdlineArgumentSpec processor)Adds a command-line processor that will process command-line arguments in a specific order. |
|
void |
copyTo(ExecSpec spec)Copies this specification to a standard ExecSpec. |
|
void |
entrypoint(Action<ExecutableEntryPoint> configurator)Configures the native entrypoint. |
|
void |
entrypoint(groovy.lang.Closure<?> configurator)Configures the native entrypoint. |
|
protected java.util.Collection<CmdLineArgumentSpecEntry> |
getCommandLineProcessors() |
|
void |
process(Action<ProcessExecutionSpec> configurator)Configures the stream redirections and exit checks. |
|
void |
process(groovy.lang.Closure<?> configurator)Configures the stream redirections and exit checks. |
|
void |
runnerSpec(Action<CmdlineArgumentSpec> configurator)Configures the arguments. |
|
void |
runnerSpec(groovy.lang.Closure<?> configurator)Configures the arguments. |
Adds a command-line processor that will process command-line arguments in a specific order.
For instance in a script, one want to process the exe args before the script args.
In a system that has commands and subcommands, one wants to process this in the order of exe args, command args, and then subcommand args.
This method allows the implementor to control the order of processing for all the groupings.
name - Name of command-line processor.order - Order in queue to process.processor - The specific grouping.Copies this specification to a standard ExecSpec.
spec - Target execution specification.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.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.Configures the arguments.
configurator - An action to configure the arguments.Configures the arguments.
configurator - A closure to configure the arguments.