ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Re: <foreach> behavior on properties... is it a bug? or by design?
Date Sat, 26 Sep 2009 03:44:50 GMT
On Fri, Sep 25, 2009 at 9:24 PM, Melih Onvural <> wrote:
> I noticed that when I run targets in a <foreach> loop, that they don't
> know of properties that were set in previous targets or in targets
> which are dependencies of the given target. As an example:

Yep, by design. <foreach> uses a different Project for each iteration,
just like <ant>, <antcall>, and <subant>. You want to use Ant-Contrib's
<for> task instead, and is newer and better. --DD

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

View raw message