org.apache.tools.ant.types.resources
Class Sort
- Cloneable, ResourceCollection
ResourceCollection that sorts another ResourceCollection.
Note that Sort must not be used in cases where the ordering of the objects
being sorted might change during the sorting process.
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, toString, tooManyAttributes |
add
public void add(ResourceComparator c)
Add a ResourceComparator to this Sort ResourceCollection.
If multiple ResourceComparators are added, they will be processed in LIFO order.
c - the ResourceComparator to add.
dieOnCircularReference
protected void dieOnCircularReference(Stack stk,
Project p)
throws BuildException Overrides the BaseResourceCollectionContainer version
to recurse on nested ResourceComparators.
- dieOnCircularReference in interface BaseResourceCollectionWrapper
stk - the stack of data types to use (recursively).p - the project to use to dereference the references.