ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [PATCH] PropertyCopy and Foreach (NEW OPTIONAL TASKS)
Date Tue, 25 Sep 2001 14:18:23 GMT
On 25 Sep 2001, Matthew Inger <matti@sedonacorp.com> wrote:

> I think that not guaranteeing the order of
> a foreach task is a very bad thing.

My advice comes from a discussion with Peter Vogel, Roger Vaughn and
Jose Alberto Fernandez on this list - about three or four months ago.
It seemed to fit nicely into Ant's declarative approach as it
parallels SQL's select instead of Perl's foreach - and I still like it
better that way 8-).  Anyway, it's just an advice.

Most "foreach" tasks I've seen so far iterate over a <fileset>, as Ant
doesn't guarantee the order by which the files in the fileset will be
returned (it is platform and probably even JVM dependent), any
guarantee for the task would be quite weak.

Stefan

Mime
View raw message