com.atlassian.bamboo.plugins.script.task
Class ScriptConfig

java.lang.Object
  extended by com.atlassian.bamboo.plugins.script.task.ScriptConfig
All Implemented Interfaces:
ShellConfig

public class ScriptConfig
extends Object
implements ShellConfig


Nested Class Summary
static class ScriptConfig.ScriptLocation
           
 
Field Summary
static String CFG_ARGUMENT
           
static String CFG_SCRIPT_BODY
           
static String CFG_SCRIPT_FILE
           
static String CFG_SCRIPT_LOCATION_TYPE
           
static String DEFAULT_UNIX_EXECUTOR
           
 
Fields inherited from interface com.atlassian.bamboo.plugins.shell.task.ShellConfig
CFG_RUN_WITH_POWERSHELL
 
Constructor Summary
protected ScriptConfig(boolean runWithPowershell)
           
  ScriptConfig(CommonTaskContext taskContext, EnvironmentVariableAccessor environmentVariableAccessor)
           
 
Method Summary
 List<String> getCommandline()
           
 Map<String,String> getExtraEnvironment()
           
 String getScriptBody()
           
 ScriptConfig.ScriptLocation getScriptLocation()
           
 File getWorkingDirectory()
           
 boolean isRunWithPowershell()
           
 void setScriptFilename(String scriptFilename)
           
protected  String wrapPowershellCommandIfNecessary(String absolutePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CFG_SCRIPT_FILE

public static final String CFG_SCRIPT_FILE
See Also:
Constant Field Values

CFG_ARGUMENT

public static final String CFG_ARGUMENT
See Also:
Constant Field Values

CFG_SCRIPT_BODY

public static final String CFG_SCRIPT_BODY
See Also:
Constant Field Values

CFG_SCRIPT_LOCATION_TYPE

public static final String CFG_SCRIPT_LOCATION_TYPE
See Also:
Constant Field Values

DEFAULT_UNIX_EXECUTOR

public static final String DEFAULT_UNIX_EXECUTOR
See Also:
Constant Field Values
Constructor Detail

ScriptConfig

public ScriptConfig(@NotNull
                    CommonTaskContext taskContext,
                    @NotNull
                    EnvironmentVariableAccessor environmentVariableAccessor)

ScriptConfig

protected ScriptConfig(boolean runWithPowershell)
Method Detail

wrapPowershellCommandIfNecessary

protected String wrapPowershellCommandIfNecessary(String absolutePath)

getCommandline

public List<String> getCommandline()
Specified by:
getCommandline in interface ShellConfig

getScriptLocation

public ScriptConfig.ScriptLocation getScriptLocation()

getScriptBody

public String getScriptBody()

setScriptFilename

public void setScriptFilename(String scriptFilename)

getExtraEnvironment

public Map<String,String> getExtraEnvironment()
Specified by:
getExtraEnvironment in interface ShellConfig

getWorkingDirectory

public File getWorkingDirectory()
Specified by:
getWorkingDirectory in interface ShellConfig

isRunWithPowershell

public boolean isRunWithPowershell()
Specified by:
isRunWithPowershell in interface ShellConfig


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.