On 2009-09-15, Raja Nagendra Kumar <[email protected]> wrote:
> Thank you very much for this info. I am trying to use this in our custom > task some thing like this > Union lUnion = (Union) TaskUtils.getCurrentProject().getReference( > lRoot); > Restrict lRestrict = new Restrict(); ... > However, I am unable to find a way to get the values matching such an > expression. After doing the above, I am expecting some method in lRestrict > to find all the matching files. It's called iterator() and returns an Iterator<Resource> (in Java5 terms, but Ant is still at Java 1.3 or 1.4 so it is a plain Iterator). See the org.apache.tools.ant.types.ResourceCollection interface that is implemented by Union, Restrict and all the others. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
