net.dpml.tools.tasks
Class ResourceTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bynet.dpml.tools.tasks.GenericTask
              extended bynet.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.1.0
Author:
Digital Product Meta Library

Field Summary
 
Fields inherited from class net.dpml.tools.tasks.GenericTask
ASC_EXT, GPG_EXE_KEY, MD5_EXT
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
ResourceTask()
           
 
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 net.dpml.tools.tasks.GenericTask
asc, checksum, copy, deleteDir, getContext, getLibrary, init, isInitialized, mkDir
 
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 org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceTask

public ResourceTask()
Method Detail

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