public interface AppRunnerSpec
A specification to something non-JVM that can be executed out-of-process and can then be used to copy to other methods in the Gradle API that provides a ExecSpec in the parameters.
| Modifiers | Name | Description |
|---|---|---|
static String |
DEFAULT_BLOCK |
The default command-line block name. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addCommandLineProcessor(String name, Integer order, CmdlineArgumentSpec processor)Adds a command-line processor that will process command-line arguments in a specific order. |
|
public void |
configureCmdline(Action<? extends CmdlineArgumentSpec> configurator)Configures the default command-line block, |
|
public void |
configureCmdline(groovy.lang.Closure<?> configurator)Configures the default command-line block, |
|
public void |
configureCmdline(String cmdBlock, Action<? extends CmdlineArgumentSpec> configurator)Configures a CmdlineArgumentSpec instance. |
|
public void |
configureCmdline(String cmdBlock, groovy.lang.Closure<?> configurator)Configures a CmdlineArgumentSpec instance. |
|
public void |
configureEntrypoint(Action<ExecutableEntryPoint> configurator)Configures a ExecutableEntryPoint instance. |
|
public void |
configureEntrypoint(groovy.lang.Closure<?> configurator)Configures a ExecutableEntryPoint instance. |
|
public void |
configureProcess(Action<ProcessExecutionSpec> configurator)Configures a ProcessExecutionSpec. |
|
public void |
configureProcess(groovy.lang.Closure<?> configurator)Configures a ProcessExecutionSpec. |
|
public void |
copyTo(ExecSpec target)Copies these options to the given options. |
|
public java.util.Collection<CmdLineArgumentSpecEntry> |
getCommandLineProcessors()Provides direct access to the list of command-line processors. |
|
public String |
getExecutionSignature()A unique string which determines whether there were any changes. |
|
public ExecOutput |
submitAsExec(AbstractExecSpec<?> spec)Submit a specification for execution. |
The default command-line block name.
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.Configures the default command-line block,
configurator - Configurator.Configures the default command-line block,
configurator - Configurator.Configures a CmdlineArgumentSpec instance.
cmdBlock - THe command block to configureconfigurator - Configurator.Configures a CmdlineArgumentSpec instance.
cmdBlock - THe command block to configureconfigurator - Configurator.Configures a ExecutableEntryPoint instance.
configurator - Configurator.Configures a ExecutableEntryPoint instance.
configurator - Configurator.Configures a ProcessExecutionSpec.
configurator - Configurator.Configures a ProcessExecutionSpec.
configurator - Configurator.Copies these options to the given options.
target - The target options.Provides direct access to the list of command-line processors. In many cases there will only be one item in the list which is for providing arguments to the executable itself. Some implementations will have more. Implementors can use this interface to manipulate order of evaluation.
null.A unique string which determines whether there were any changes.
Submit a specification for execution.
spec - Speficiation