A specification to something that can be executed on the JVM and which be populated with various fork options for Java and in addition, can then be used to copy to other methods in the Gradle API that provides a JavaForkOptions in the parameters.
| Modifiers | Name | Description |
|---|---|---|
static String |
DEFAULT_BLOCK |
The default command-line block name. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addCommandLineProcessor(String name, Integer order, CmdlineArgumentSpec processor)Adds a command-line processor that will process command-line arguments in a specific order. |
|
void |
configureCmdline(Action<CmdlineArgumentSpec> configurator)Configures a CmdlineArgumentSpec instance. |
|
void |
configureCmdline(groovy.lang.Closure<?> configurator)Configures a CmdlineArgumentSpec instance. |
|
void |
configureEntrypoint(Action<JvmEntryPoint> configurator)Configures a JvmEntryPoint instance. |
|
void |
configureEntrypoint(groovy.lang.Closure<?> configurator)Configures a JvmEntryPoint instance. |
|
void |
configureForkOptions(Action<JavaForkOptionsWithEnvProvider> configurator)Configures a JavaForkOptionsWithEnvProvider instance. |
|
void |
configureForkOptions(groovy.lang.Closure<?> configurator)Configures a JavaForkOptionsWithEnvProvider instance. |
|
void |
configureProcess(Action<ProcessExecutionSpec> configurator)Configures a ProcessExecutionSpec. |
|
void |
configureProcess(groovy.lang.Closure<?> configurator)Configures a ProcessExecutionSpec. |
|
JavaExecSpec |
copyTo(JavaExecSpec target)Copies these options to the given options. |
|
java.util.Collection<CmdLineArgumentSpecEntry> |
getCommandLineProcessors()Provides direct access to the list of command-line processors. |
|
String |
getExecutionSignature()A unique string which determines whether there were any changes. |
<P extends SerializableWorkerAppParameters> |
WorkerPromise |
submitToWorkQueue(WorkerIsolation isolationMode, org.gradle.workers.WorkerExecutor worker, org.ysb33r.grolifant.api.remote.worker.WorkerAppExecutorFactory<P> workerAppExecutorFactory, WorkerAppParameterFactory<P> parameterFactory)Submits this to a worker queue using an appropriate isolation mode. |
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 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 a CmdlineArgumentSpec instance.
configurator - Configurator.Configures a CmdlineArgumentSpec instance.
configurator - Configurator.Configures a JvmEntryPoint instance.
configurator - Configurator.Configures a JvmEntryPoint instance.
configurator - Configurator.Configures a JavaForkOptionsWithEnvProvider instance.
configurator - Configurator.Configures a JavaForkOptionsWithEnvProvider 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.
Submits this to a worker queue using an appropriate isolation mode.
isolationMode - Isolation mode which is either classpath isolated or out of process.worker - A worker execution instance.workerAppExecutorFactory - A factory instances that can create executor logic.parameterFactory - A factory which can create parameters and populate them from a JavaExecSpec. - The type of the POJO/POGO that holds the parameters.