ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Q: Is this intended with multiple <local> with same scope ?
Date Tue, 02 Mar 2010 05:25:29 GMT
On 2010-02-26, Simone Cato <simonecato@gmail.com> wrote:

> Is this the intended effect of multiple <local>s within the same scope?

Probably not a conscious choice.

> <property name="who" value="fred"/>
> <sequential>
>   <!-- 'who' is 'fred' here...[OK]-->

>   <local name="who"/>
>   <!-- 'who' is undefined here...[OK]-->

>   <property name="who" value="barney"/>
>   <!-- 'who' is 'barney' here...[OK]-->

>   <local name="who"/>
>   <!-- 'who' is undefined here?...[EH?]-->  <!-- [?] -->

You've just created a new local binding for the name "who", destroying
the old local binding.

>   <property name="who" value="mrstone"/>
>   <!-- 'who' is 'mrstone' here?...[EH?]-->  <!-- [?] -->

That's fine, isn't it?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message