ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cvsusr <sp...@rediffmail.com>
Subject Re: <foreach> behavior on properties... is it a bug? or by design?
Date Tue, 10 Nov 2009 15:59:48 GMT

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


Mime
View raw message