ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: fileset not iterable
Date Sat, 03 Mar 2012 17:08:55 GMT
On Sat, Mar 3, 2012 at 7:10 AM, Jarek Czekalski
<> wrote:
> Hi all
> When I was scripting in ant, I could write
> for (f: fs)
> where fs is a FileSet. But after switching to ant tasks in java, it is no
> longer available. I get a compile error:
> foreach not applicable to expression type
> I guess it's pretty easy to just write FileSet implements Iterable, but have
> not tried it in the source. If it is really easy, then I suggest adding it
> to all methods returning iterator().

Hi, Jarek.  Ant has only just recently voted to adopt Java 5 in its
trunk development (being a build tool it has tried to remain as
accessible as possible even to those stuck on what are by today's
standards thought of as archaic Java platforms).  In the future the
Iterable interface could be implemented as you suggest.


> Regards
> Jarek
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message