public class AbstractCommandExecSpec<T extends AbstractCommandExecSpec<T>> extends AbstractExecSpec implements ExecutableCommand
Basic building
| Modifiers | Name | Description |
|---|---|---|
static String |
COMMAND_BLOCK |
| Fields inherited from class | Fields |
|---|---|
class AbstractExecSpec |
appRunnerSpec |
| Constructor and description |
|---|
protected AbstractCommandExecSpec
(ProjectOperations po) |
protected AbstractCommandExecSpec
(ConfigCacheSafeOperations po)Constructs this from an instance of ConfigCacheSafeOperations. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
cmd(Action<CommandEntryPoint> configurator)Configures the command along with its arguments. |
|
public void |
cmd(groovy.lang.Closure<?> configurator)Configures the command along with its arguments. |
|
public CommandEntryPoint |
getCmd()Get direct access to the CommandEntryPoint instance. |
| Methods inherited from class | Name |
|---|---|
class AbstractExecSpec |
addCommandLineProcessor, copyTo, entrypoint, entrypoint, getCommandLineProcessors, getEntrypoint, getProcess, getRunnerSpec, getTaskOperations, process, process, runnerSpec, runnerSpec, submitAsExec, submitAsExec |
Constructs this from an instance of ConfigCacheSafeOperations.
A task having GrolifantDefaultTask in its parent lineage, can just pass a this reference.
po - Instance of ConfigCacheSafeOperations.Configures the command along with its arguments.
configurator - An action to configure the commandConfigures the command along with its arguments.
configurator - A closure to configure the commandGet direct access to the CommandEntryPoint instance.