public class ScriptConfig extends Object implements ShellConfig
Modifier and Type | Class and Description |
---|---|
static class |
ScriptConfig.Interpreter |
static class |
ScriptConfig.ScriptLocation |
Modifier and Type | Field and Description |
---|---|
static String |
CFG_ARGUMENT |
static String |
CFG_ENVIRONMENT_VARIABLES |
static String |
CFG_INTERPRETER |
static String |
CFG_SCRIPT_BODY |
static String |
CFG_SCRIPT_FILE |
static String |
CFG_SCRIPT_LOCATION_TYPE |
static String |
DEFAULT_UNIX_EXECUTOR |
Constructor and Description |
---|
ScriptConfig(CommonTaskContext taskContext,
EnvironmentVariableAccessor environmentVariableAccessor) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCommandline() |
Map<String,String> |
getExtraEnvironment() |
ScriptConfig.Interpreter |
getInterpreter() |
String |
getScriptBody() |
String |
getScriptFilename() |
ScriptConfig.ScriptLocation |
getScriptLocation() |
File |
getWorkingDirectory() |
boolean |
isRunAsExecutable() |
boolean |
isRunWithPowershell() |
void |
setScriptFilename(String scriptFilename) |
protected String |
wrapPowershellCommandIfNecessary(String absolutePath) |
public static final String CFG_SCRIPT_FILE
public static final String CFG_ARGUMENT
public static final String CFG_SCRIPT_BODY
public static final String CFG_INTERPRETER
public static final String CFG_SCRIPT_LOCATION_TYPE
public static final String CFG_ENVIRONMENT_VARIABLES
public static final String DEFAULT_UNIX_EXECUTOR
public ScriptConfig(@NotNull CommonTaskContext taskContext, @NotNull EnvironmentVariableAccessor environmentVariableAccessor)
protected String wrapPowershellCommandIfNecessary(String absolutePath)
public List<String> getCommandline()
getCommandline
in interface ShellConfig
public ScriptConfig.ScriptLocation getScriptLocation()
public ScriptConfig.Interpreter getInterpreter()
public String getScriptFilename()
public void setScriptFilename(String scriptFilename)
public String getScriptBody()
public Map<String,String> getExtraEnvironment()
getExtraEnvironment
in interface ShellConfig
public File getWorkingDirectory()
getWorkingDirectory
in interface ShellConfig
public boolean isRunWithPowershell()
isRunWithPowershell
in interface ShellConfig
public boolean isRunAsExecutable()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.