Class TaskStep.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.TaskStep.Jsii$Proxy
-
- All Implemented Interfaces:
TaskStep,TaskStepOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- TaskStep
@Stability(Experimental) @Internal public static final class TaskStep.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TaskStep
An implementation forTaskStep
-
-
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.TaskStep
TaskStep.Builder, TaskStep.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(TaskStep.Builder builder)Constructor that initializes the object based on literal property values passed by theTaskStep.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.StringgetBuiltin()(experimental) The name of a built-in task to execute.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).StringgetExec()(experimental) Shell command to execute.StringgetName()(experimental) Step name.BooleangetReceiveArgs()(experimental) Should this step receive args passed to the task.StringgetSay()(experimental) Print a message.StringgetSpawn()(experimental) Subtask to execute.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(TaskStep.Builder builder)
Constructor that initializes the object based on literal property values passed by theTaskStep.Builder.
-
-
Method Detail
-
getBuiltin
public final String getBuiltin()
Description copied from interface:TaskStep(experimental) The name of a built-in task to execute.Built-in tasks are node.js programs baked into the projen module and as component runtime helpers.
The name is a path relative to the projen lib/ directory (without the .task.js extension). For example, if your built in builtin task is under
src/release/resolve-version.task.ts, then this would berelease/resolve-version.Default: - do not execute a builtin task
- Specified by:
getBuiltinin interfaceTaskStep
-
getExec
public final String getExec()
Description copied from interface:TaskStep(experimental) Shell command to execute.Default: - don't execute a shell command
-
getSay
public final String getSay()
Description copied from interface:TaskStep(experimental) Print a message.Default: - don't say anything
-
getSpawn
public final String getSpawn()
Description copied from interface:TaskStep(experimental) Subtask to execute.Default: - don't spawn a subtask
-
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
-
-