org.rhq.bundle.ant.task
Class AbstractBundleTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.rhq.bundle.ant.task.AbstractBundleTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AuditTask, BundleTask

public abstract class AbstractBundleTask
extends org.apache.tools.ant.Task

This is the base class for all custom bundle tasks. It provides all bundle tasks access to the encompassing bundle ant project object so this task can report back to the project object things that the task is doing. As new tasks are created by extending this task object, developers must make sure they add the new tasks to the bundle-ant-tasks.properties file.

Author:
John Mazzitelli

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
AbstractBundleTask()
           
 
Method Summary
 BundleAntProject getProject()
          Returns the specific BundleAntProject object that is invoking this task.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBundleTask

public AbstractBundleTask()
Method Detail

getProject

public BundleAntProject getProject()
Returns the specific BundleAntProject object that is invoking this task. This task can call methods on the returned project object to inform the project of things this task is doing.

Overrides:
getProject in class org.apache.tools.ant.ProjectComponent
Returns:
the bundle Ant project object


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.