You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by cvsusr <sp...@rediffmail.com> on 2009/11/10 16:59:48 UTC
Re: behavior on properties... is it a bug? or by design?
Did you loop through targets using for loop?? If so, please let me know some
example.
Thanks.
Melih Onvural wrote:
>
> Thanks a bunch for that!
>
> --
> Melih
>
> On Sep 25, 2009, at 8:44 PM, Dominique Devienne wrote:
>
>> On Fri, Sep 25, 2009 at 9:24 PM, Melih Onvural <melih.onvural@gmail.com
>> > 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: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/%3Cforeach%3E-behavior-on-properties...-is-it-a-bug--or-by-design--tp25621716p26285979.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org