org.apache.tools.ant.taskdefs
public class ResourceCount extends Task implements Condition
Since: Ant 1.7
Method Summary | |
---|---|
void | add(ResourceCollection r)
Add the ResourceCollection to count. |
boolean | eval()
Fulfill the condition contract. |
void | execute()
Execute as a Task. |
void | setCount(int c)
Set the target count number for use as a Condition. |
void | setProperty(String p)
Set the name of the property to set in task mode. |
void | setRefid(Reference r)
Set the ResourceCollection reference. |
void | setWhen(Comparison c)
Set the comparison for use as a Condition. |
Parameters: r the ResourceCollection to count.
Throws: BuildException if already set.
Returns: true if the specified ResourceCollection satisfies the set criteria.
Throws: BuildException if an error occurs.
Parameters: c number of Resources as int.
Parameters: p the property name to set.
Parameters: r the Reference.
Parameters: c Comparison (an EnumeratedAttribute) When.
See Also: Comparison