Class TaskStepOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.TaskStepOptions.Jsii$Proxy
-
- All Implemented Interfaces:
TaskStepOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- TaskStepOptions
@Stability(Experimental) @Internal public static final class TaskStepOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TaskStepOptions
An implementation forTaskStepOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.TaskStepOptions
TaskStepOptions.Builder, TaskStepOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(TaskStepOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theTaskStepOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)List<String>getArgs()(experimental) A list of fixed arguments always passed to the step.StringgetCondition()(experimental) A shell command which determines if the this step should be executed.StringgetCwd()(experimental) The working directory for this step.Map<String,String>getEnv()(experimental) Defines environment variables for the execution of this step (execandbuiltinonly).StringgetName()(experimental) Step name.BooleangetReceiveArgs()(experimental) Should this step receive args passed to the task.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(TaskStepOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theTaskStepOptions.Builder.
-
-
Method Detail
-
getArgs
public final List<String> getArgs()
Description copied from interface:TaskStepOptions(experimental) A list of fixed arguments always passed to the step.Useful to re-use existing tasks without having to re-define the whole task.\ Fixed args are always passed to the step, even if
receiveArgsisfalseand are always passed before any args the task is called with.If the step executes a shell commands, args are passed through at the end of the
execshell command.\ The position of the args can be changed by including the marker$@inside the command string.If the step spawns a subtask, args are passed to the subtask. The subtask must define steps receiving args for this to have any effect.
If the step calls a builtin script, args are passed to the script. It is up to the script to use or discard the arguments.
Default: - no arguments are passed to the step
Example:
task.spawn("deploy", { args: ["--force"] });- Specified by:
getArgsin interfaceTaskStepOptions
-
getCondition
public final String getCondition()
Description copied from interface:TaskStepOptions(experimental) A shell command which determines if the this step should be executed.If the program exits with a zero exit code, the step will be executed. A non-zero code means the step will be skipped (subsequent task steps will still be evaluated/executed).
- Specified by:
getConditionin interfaceTaskStepOptions
-
getCwd
public final String getCwd()
Description copied from interface:TaskStepOptions(experimental) The working directory for this step.Default: - determined by the task
- Specified by:
getCwdin interfaceTaskStepOptions
-
getEnv
public final Map<String,String> getEnv()
Description copied from interface:TaskStepOptions(experimental) Defines environment variables for the execution of this step (execandbuiltinonly).Values in this map can be simple, literal values or shell expressions that will be evaluated at runtime e.g.
$(echo "foo").Default: - no environment variables defined in step
Example:
{ "foo": "bar", "boo": "$(echo baz)" }- Specified by:
getEnvin interfaceTaskStepOptions
-
getName
public final String getName()
Description copied from interface:TaskStepOptions(experimental) Step name.Default: - no name
- Specified by:
getNamein interfaceTaskStepOptions
-
getReceiveArgs
public final Boolean getReceiveArgs()
Description copied from interface:TaskStepOptions(experimental) Should this step receive args passed to the task.If
true, args are passed through at the end of theexecshell command.\ The position of the args can be changed by including the marker$@inside the command string.If the step spawns a subtask, args are passed to the subtask. The subtask must define steps receiving args for this to have any effect.
Default: false
Example:
task.exec("echo Hello $@ World!", { receiveArgs: true });- Specified by:
getReceiveArgsin interfaceTaskStepOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-