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

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

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


Field Summary
protected  EnvironmentVariableAccessor environmentVariableAccessor
           
protected  ProcessService processService
           
 
Constructor Summary
AbstractShellBuildTask(EnvironmentVariableAccessor environmentVariableAccessor, ProcessService processService)
           
 
Method Summary
 TaskResult execute(TaskContext taskContext)
          Execute the task
protected  TaskResult execute(TaskContext taskContext, ShellConfig config)
           
protected abstract  ShellConfig getConfig(TaskContext 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
                                         TaskContext taskContext)

execute

@NotNull
public TaskResult execute(@NotNull
                                  TaskContext taskContext)
                   throws TaskException
Description copied from interface: TaskType
Execute the task

Specified by:
execute in interface InternalTaskType<TaskContext>
Specified by:
execute in interface TaskType
Returns:
a TaskResult representing the status of the task execution
Throws:
TaskException

execute

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


Copyright © 2011 Atlassian. All Rights Reserved.