Class CommandConfig
- java.lang.Object
-
- com.atlassian.bamboo.plugins.command.task.CommandConfig
-
- All Implemented Interfaces:
ShellConfig
public class CommandConfig extends Object implements ShellConfig
-
-
Field Summary
Fields Modifier and Type Field Description static String
CAPABILITY_SHORT_KEY
static String
CFG_ARGUMENT
static String
CFG_ENVIRONMENT_VARIABLES
static String
CFG_SCRIPT
static String
COMMAND_CAPABILITY_PREFIX
-
Constructor Summary
Constructors Constructor Description CommandConfig(@NotNull CommonTaskContext taskContext, @NotNull CapabilityContext capabilityContext, @NotNull EnvironmentVariableAccessor environmentVariableAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getCommandline()
Map<String,String>
getExtraEnvironment()
File
getWorkingDirectory()
boolean
isRunWithPowershell()
-
-
-
Field Detail
-
CFG_SCRIPT
public static final String CFG_SCRIPT
- See Also:
- Constant Field Values
-
CFG_ARGUMENT
public static final String CFG_ARGUMENT
- See Also:
- Constant Field Values
-
CFG_ENVIRONMENT_VARIABLES
public static final String CFG_ENVIRONMENT_VARIABLES
- See Also:
- Constant Field Values
-
CAPABILITY_SHORT_KEY
public static final String CAPABILITY_SHORT_KEY
- See Also:
- Constant Field Values
-
COMMAND_CAPABILITY_PREFIX
public static final String COMMAND_CAPABILITY_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommandConfig
public CommandConfig(@NotNull @NotNull CommonTaskContext taskContext, @NotNull @NotNull CapabilityContext capabilityContext, @NotNull @NotNull EnvironmentVariableAccessor environmentVariableAccessor)
-
-
Method Detail
-
getCommandline
public List<String> getCommandline()
- Specified by:
getCommandline
in interfaceShellConfig
-
getExtraEnvironment
public Map<String,String> getExtraEnvironment()
- Specified by:
getExtraEnvironment
in interfaceShellConfig
-
getWorkingDirectory
public File getWorkingDirectory()
- Specified by:
getWorkingDirectory
in interfaceShellConfig
-
isRunWithPowershell
public boolean isRunWithPowershell()
- Specified by:
isRunWithPowershell
in interfaceShellConfig
-
-