| org.apache.tools.ant.types.DataType org.apache.tools.ant.types.resources.selectors.Compare
Compare | public class Compare extends DataType implements ResourceSelector(Code) | | ResourceSelector that compares against "control" Resource(s)
using ResourceComparators.
since: Ant 1.7 |
add | public synchronized void add(ResourceComparator c)(Code) | | Add a ResourceComparator to this Compare selector.
If multiple ResourceComparators are added, they will be processed in LIFO order.
Parameters: c - the ResourceComparator to add. |
createControl | public synchronized ResourceCollection createControl()(Code) | | Create the nested control element. These are the
resources to compare against.
ResourceCollection. |
dieOnCircularReference | protected synchronized void dieOnCircularReference(Stack stk, Project p) throws BuildException(Code) | | Overrides the version from DataType
to recurse on nested ResourceComparators.
Parameters: stk - the stack of data types to use (recursively). Parameters: p - the project to use to dereference the references. throws: BuildException - on error. |
setAgainst | public synchronized void setAgainst(Quantifier against)(Code) | | Set the quantifier to be used. Default "all".
Parameters: against - the Quantifier EnumeratedAttribute to use. |
setWhen | public synchronized void setWhen(Comparison when)(Code) | | Set the comparison to be used. Default "equal".
Parameters: when - the Comparison EnumeratedAttribute to use. |
|
|