Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » [javadoc | source]
org.apache.tools.ant.taskdefs
public class: ResourceCount [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.ResourceCount

All Implemented Interfaces:
    Condition, Cloneable

Count resources from a ResourceCollection, storing to a property or writing to the log. Can also be used as a Condition.
Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.tools.ant.taskdefs.ResourceCount Summary:
add,   eval,   execute,   setCount,   setProperty,   setRefid,   setWhen
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.ResourceCount Detail:
 public  void add(ResourceCollection r) 
    Add the ResourceCollection to count.
 public boolean eval() 
    Fulfill the condition contract.
 public  void execute() 
    Execute as a Task.
 public  void setCount(int c) 
    Set the target count number for use as a Condition.
 public  void setProperty(String p) 
    Set the name of the property to set in task mode.
 public  void setRefid(Reference r) 
    Set the ResourceCollection reference.
 public  void setWhen(Comparison c) 
    Set the comparison for use as a Condition.