| |
|
| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.ResourceCount
ResourceCount | public class ResourceCount extends Task implements Condition(Code) | | Count resources from a ResourceCollection, storing to a property or
writing to the log. Can also be used as a Condition.
since: Ant 1.7 |
Method Summary | |
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. |
eval | public boolean eval()(Code) | | Fulfill the condition contract.
true if the specified ResourceCollection satisfies the set criteria. throws: BuildException - if an error occurs. |
execute | public void execute()(Code) | | Execute as a Task.
|
setCount | public void setCount(int c)(Code) | | Set the target count number for use as a Condition.
Parameters: c - number of Resources as int. |
setProperty | public void setProperty(String p)(Code) | | Set the name of the property to set in task mode.
Parameters: p - the property name to set. |
setRefid | public void setRefid(Reference r)(Code) | | Set the ResourceCollection reference.
Parameters: r - the Reference. |
|
|
|