com.atlassian.bamboo.ant.task
Class AbstractSingleAntBuildTask

java.lang.Object
  extended by com.atlassian.bamboo.ant.task.AbstractSingleAntBuildTask
All Implemented Interfaces:
InternalTaskType<TaskContext>, TaskType
Direct Known Subclasses:
SingleAntBuildTask

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

A Bamboo task that executes Ant task. Subclasses need to provide an instance of the Ant task that is ready to execute.

Since:
3.4

Constructor Summary
AbstractSingleAntBuildTask()
           
 
Method Summary
protected abstract  org.apache.tools.ant.Task createTask(TaskContext taskContext)
          Create Ant task ready for execution.
 TaskResult execute(TaskContext taskContext)
          Execute the task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSingleAntBuildTask

public AbstractSingleAntBuildTask()
Method Detail

execute

@NotNull
public final 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

createTask

protected abstract org.apache.tools.ant.Task createTask(TaskContext taskContext)
                                                 throws TaskException
Create Ant task ready for execution.

Parameters:
taskContext - task context
Returns:
Ant task for execution
Throws:
TaskException - if failed to create Ant task to execute


Copyright © 2012 Atlassian. All Rights Reserved.