ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: Having problem using property to in macrodef if invoke for more than one time
Date Thu, 27 Mar 2008 09:44:47 GMT
On Thu, Mar 27, 2008 at 7:34 AM, CheeYang Chau <cychau@gmail.com> wrote:
> >  A common, if not so nice solution, is to use an attribute value as
>  >  a property name.
>  >
>  >  For example:
>  >
>  >        <macrodef name="a">
>  >                <attribute name="module"/>
>  >                <sequential>
>  >                        <property name="myvalue.@{module}" value="@{module}"/>
>  >                        <echo>${myvalue.@{module}}</echo>
>  >                </sequential>
>  >        </macrodef>
>
>  I am aware of this solution.  I read some old post regarding there is
>  a proposal to add local property.  It seems like it is a way to go but
>  I haven't seen it implement in ANT 1.70 yet.  How is the progress?
Hopefully it will be added for ant 1.8.0.
The code has been updated to use the new property hooks in ant 1.8.0
and the code is not as memory leaking as before.

Peter
>
>  --
>
>
> Best regards,
>  Chau Chee Yang
>
>  E Stream Software Sdn Bhd
>  URL: www.sql.com.my
>  SQL Financial Accounting
>
>  ---------------------------------------------------------------------
>  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


Mime
View raw message