net.dpml.tools.tasks
Class FeatureTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.dpml.tools.tasks.GenericTask
net.dpml.tools.tasks.ResourceTask
net.dpml.tools.tasks.FeatureTask
- Direct Known Subclasses:
- FilterTask, PropertyTask
public abstract class FeatureTask
- extends ResourceTask
Locate a named feature of the a project or resource.
- Version:
- 1.2.0
- Author:
- Digital Product Meta Library
Method Summary |
protected String |
getFeature()
Return the assigned feature name. |
protected String |
resolve()
Resolve the feature value. |
void |
setAlias(boolean flag)
Set filename resolution switch. |
void |
setFeature(String feature)
Set the name of the feature. |
void |
setType(String type)
Optionaly set the resource type that the feature is related to. |
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 |
FeatureTask
public FeatureTask()
setAlias
public void setAlias(boolean flag)
- Set filename resolution switch. If true the filename feature will
return an alias path.
- Parameters:
flag
- the alias switch
setFeature
public void setFeature(String feature)
- Set the name of the feature.
- Parameters:
feature
- the feature name
setType
public void setType(String type)
- Optionaly set the resource type that the feature is related to.
- Parameters:
type
- the resource type
getFeature
protected String getFeature()
- Return the assigned feature name.
- Returns:
- the feature name
resolve
protected String resolve()
- Resolve the feature value.
- Returns:
- the feature value