com.atlassian.bamboo.plugins.shell.task
Class AbstractShellBuildTask

java.lang.Object
  extended by com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask
All Implemented Interfaces:
CommonTaskType, InternalTaskType
Direct Known Subclasses:
CommandBuildTask, ScriptBuildTask

public abstract class AbstractShellBuildTask
extends java.lang.Object
implements CommonTaskType


Field Summary
protected  EnvironmentVariableAccessor environmentVariableAccessor
           
protected  ProcessService processService
           
 
Constructor Summary
AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService)
           
 
Method Summary
 TaskResult execute(CommonTaskContext taskContext)
          Executes the task.
protected  TaskResult execute(CommonTaskContext taskContext, ShellConfig config)
           
protected abstract  ShellConfig getConfig(CommonTaskContext taskContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

environmentVariableAccessor

protected final EnvironmentVariableAccessor environmentVariableAccessor

processService

protected final ProcessService processService
Constructor Detail

AbstractShellBuildTask

public AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor,
                              ProcessService processService)
Method Detail

getConfig

protected abstract ShellConfig getConfig(@NotNull
                                         CommonTaskContext taskContext)

execute

@NotNull
public TaskResult execute(@NotNull
                                  CommonTaskContext taskContext)
                   throws TaskException
Description copied from interface: CommonTaskType
Executes the task.

Specified by:
execute in interface CommonTaskType
Returns:
a TaskResult representing the status of the task execution
Throws:
TaskException

execute

protected TaskResult execute(CommonTaskContext taskContext,
                             ShellConfig config)
                      throws TaskException
Throws:
TaskException


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