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 java.lang.Object
implements ShellConfig


Nested Class Summary
static class ScriptConfig.ScriptLocation
           
 
Field Summary
static java.lang.String CFG_ARGUMENT
           
static java.lang.String CFG_SCRIPT_BODY
           
static java.lang.String CFG_SCRIPT_FILE
           
static java.lang.String CFG_SCRIPT_LOCATION_TYPE
           
static java.lang.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
 java.util.List<java.lang.String> getCommandline()
           
 java.util.Map<java.lang.String,java.lang.String> getExtraEnvironment()
           
 java.lang.String getScriptBody()
           
 ScriptConfig.ScriptLocation getScriptLocation()
           
 java.io.File getWorkingDirectory()
           
 boolean isRunWithPowershell()
           
 void setScriptFilename(java.lang.String scriptFilename)
           
protected  java.lang.String wrapPowershellCommandIfNecessary(java.lang.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 java.lang.String CFG_SCRIPT_FILE
See Also:
Constant Field Values

CFG_ARGUMENT

public static final java.lang.String CFG_ARGUMENT
See Also:
Constant Field Values

CFG_SCRIPT_BODY

public static final java.lang.String CFG_SCRIPT_BODY
See Also:
Constant Field Values

CFG_SCRIPT_LOCATION_TYPE

public static final java.lang.String CFG_SCRIPT_LOCATION_TYPE
See Also:
Constant Field Values

DEFAULT_UNIX_EXECUTOR

public static final java.lang.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 java.lang.String wrapPowershellCommandIfNecessary(java.lang.String absolutePath)

getCommandline

public java.util.List<java.lang.String> getCommandline()
Specified by:
getCommandline in interface ShellConfig

getScriptLocation

public ScriptConfig.ScriptLocation getScriptLocation()

getScriptBody

public java.lang.String getScriptBody()

setScriptFilename

public void setScriptFilename(java.lang.String scriptFilename)

getExtraEnvironment

public java.util.Map<java.lang.String,java.lang.String> getExtraEnvironment()
Specified by:
getExtraEnvironment in interface ShellConfig

getWorkingDirectory

public java.io.File getWorkingDirectory()
Specified by:
getWorkingDirectory in interface ShellConfig

isRunWithPowershell

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


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.