Package io.github.cdklabs.projen
Class TaskOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.TaskOptions.Jsii$Proxy
-
- All Implemented Interfaces:
TaskCommonOptions,TaskOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- TaskOptions
@Stability(Experimental) @Internal public static final class TaskOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TaskOptions
An implementation forTaskOptions
-
-
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.TaskOptions
TaskOptions.Builder, TaskOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(TaskOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theTaskOptions.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) Should the providedexecshell command receive fixed args.StringgetCondition()(experimental) A shell command which determines if the this task should be executed.StringgetCwd()(experimental) The working directory for all steps in this task (unless overridden by the step).StringgetDescription()(experimental) The description of this build command.Map<String,String>getEnv()(experimental) Defines environment variables for the execution of this task.StringgetExec()(experimental) Shell command to execute as the first command of the task.BooleangetReceiveArgs()(experimental) Should the providedexecshell command receive args passed to the task.List<String>getRequiredEnv()(experimental) A set of environment variables that must be defined in order to execute this task.List<TaskStep>getSteps()(experimental) List of task steps to run.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(TaskOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theTaskOptions.Builder.
-
-
Method Detail
-
getArgs
public final List<String> getArgs()
Description copied from interface:TaskOptions(experimental) Should the providedexecshell command receive fixed args.Default: - no arguments are passed to the step
- Specified by:
getArgsin interfaceTaskOptions- See Also:
- TaskStepOptions.args
-
getExec
public final String getExec()
Description copied from interface:TaskOptions(experimental) Shell command to execute as the first command of the task.Default: - add steps using `task.exec(command)` or `task.spawn(subtask)`
- Specified by:
getExecin interfaceTaskOptions
-
getReceiveArgs
public final Boolean getReceiveArgs()
Description copied from interface:TaskOptions(experimental) Should the providedexecshell command receive args passed to the task.Default: false
- Specified by:
getReceiveArgsin interfaceTaskOptions- See Also:
- TaskStepOptions.receiveArgs
-
getSteps
public final List<TaskStep> getSteps()
Description copied from interface:TaskOptions(experimental) List of task steps to run.- Specified by:
getStepsin interfaceTaskOptions
-
getCondition
public final String getCondition()
Description copied from interface:TaskCommonOptions(experimental) A shell command which determines if the this task should be executed.If the program exits with a zero exit code, steps will be executed. A non-zero code means that task will be skipped.
- Specified by:
getConditionin interfaceTaskCommonOptions
-
getCwd
public final String getCwd()
Description copied from interface:TaskCommonOptions(experimental) The working directory for all steps in this task (unless overridden by the step).Default: - process.cwd()
- Specified by:
getCwdin interfaceTaskCommonOptions
-
getDescription
public final String getDescription()
Description copied from interface:TaskCommonOptions(experimental) The description of this build command.Default: - the task name
- Specified by:
getDescriptionin interfaceTaskCommonOptions
-
getEnv
public final Map<String,String> getEnv()
Description copied from interface:TaskCommonOptions(experimental) Defines environment variables for the execution of this task.Values in this map will be evaluated in a shell, so you can do stuff like
$(echo "foo").Default: {}
- Specified by:
getEnvin interfaceTaskCommonOptions
-
getRequiredEnv
public final List<String> getRequiredEnv()
Description copied from interface:TaskCommonOptions(experimental) A set of environment variables that must be defined in order to execute this task.Task execution will fail if one of these is not defined.
- Specified by:
getRequiredEnvin interfaceTaskCommonOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-