Class ScriptConfig
java.lang.Object
com.atlassian.bamboo.plugins.script.task.ScriptConfig
- All Implemented Interfaces:
ShellConfig
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
-
Constructor Summary
ConstructorDescriptionScriptConfig
(@NotNull CommonTaskContext taskContext, @NotNull EnvironmentVariableAccessor environmentVariableAccessor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setScriptFilename
(String scriptFilename) protected String
wrapPowershellCommandIfNecessary
(String absolutePath)
-
Field Details
-
CFG_SCRIPT_FILE
- See Also:
-
CFG_ARGUMENT
- See Also:
-
CFG_SCRIPT_BODY
- See Also:
-
CFG_INTERPRETER
- See Also:
-
CFG_SCRIPT_LOCATION_TYPE
- See Also:
-
CFG_ENVIRONMENT_VARIABLES
- See Also:
-
DEFAULT_UNIX_EXECUTOR
- See Also:
-
-
Constructor Details
-
ScriptConfig
public ScriptConfig(@NotNull @NotNull CommonTaskContext taskContext, @NotNull @NotNull EnvironmentVariableAccessor environmentVariableAccessor)
-
-
Method Details
-
wrapPowershellCommandIfNecessary
-
getCommandline
- Specified by:
getCommandline
in interfaceShellConfig
-
getScriptLocation
-
getInterpreter
-
getScriptFilename
-
setScriptFilename
-
getScriptBody
-
getExtraEnvironment
- Specified by:
getExtraEnvironment
in interfaceShellConfig
-
getWorkingDirectory
- Specified by:
getWorkingDirectory
in interfaceShellConfig
-
isRunWithPowershell
public boolean isRunWithPowershell()- Specified by:
isRunWithPowershell
in interfaceShellConfig
-
isRunAsExecutable
public boolean isRunAsExecutable()
-