ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Implementing a loop in ANT
Date Thu, 08 Jun 2006 09:22:28 GMT
Dominique Devienne wrote:
> Ant-Contrib's <for> accepts any type which exposes an iterator()

oh, you have just given me an idea for a devious little java1.5 class. 
something that implements Iterable, for use in the fancy for loops, but 
which reflects onto a class passed in and calls the iterator() method 
even if it aint from an Iterable interface. That I shall have to do..

for(Resource r:new IterableBridge<Resource>(fileset)) {

Can't put it in the ant source tree, of course, as it would only compile 
on java1.5.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message