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 |
entrypoint(Action<ExecutableEntryPoint> configurator)Configures the native entrypoint. |
|
protected java.util.Collection<CmdLineArgumentSpecEntry> |
getCommandLineProcessors() |
|
void |
process(Action<ProcessExecutionSpec> configurator)Configures the stream redirections and exit checks. |
|
void |
runnerSpec(Action<CmdlineArgumentSpec> 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 proccess 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.Configures the native entrypoint.
configurator - An action to configure the external executable's entrypoint.Configures the stream redirections and exit checks.
configurator - An action to configure the execution.Configures the arguments.
configurator - An action to configure the arguments.