net.dpml.tools.tasks
Class ResourceTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.dpml.tools.tasks.GenericTask
net.dpml.tools.tasks.ResourceTask
- Direct Known Subclasses:
- FeatureTask, JavadocTask
public abstract class ResourceTask
- extends GenericTask
Locate a named feature of the a project or resource.
- Version:
- 1.2.0
- Author:
- Digital Product Meta Library
Method Summary |
protected Resource |
getResource()
Get the project definition. |
void |
setKey(String key)
Set the key of the target project or resource description from which features will be
resolved from. |
void |
setRef(String ref)
Set the ref of the target project or resource description from which features will be
resolved from. |
Methods inherited from class org.apache.tools.ant.Task |
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceTask
public ResourceTask()
setKey
public void setKey(String key)
- Set the key of the target project or resource description from which features will be
resolved from. If not declared the key defaults to the current defintion.
- Parameters:
key
- the resource key
setRef
public void setRef(String ref)
- Set the ref of the target project or resource description from which features will be
resolved from.
- Parameters:
ref
- the resource reference
getResource
protected Resource getResource()
- Get the project definition.
- Overrides:
getResource
in class GenericTask
- Returns:
- the resource