ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: How to use variable within a variable in ant?
Date Fri, 20 Mar 2009 06:33:50 GMT
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property

Jan 

>-----Ursprüngliche Nachricht-----
>Von: Document [mailto:ddocument@gmail.com] 
>Gesendet: Freitag, 20. März 2009 01:41
>An: user@ant.apache.org
>Betreff: How to use variable within a variable in ant?
>
>Hi,
>I want to use a variable within variable scenario. For eg.
>
><property name="var1" value="somevar" />
><property name="somevar" value="anothervalue" />
>
>Now I want to use something like ${${var1}}  to retrieve 
>${somevar}. How do
>I do it? On unix shell, eval works fine but when I try ant 
>exec task to run
>eval, it doesnt recognize the command.
>
>Thanks
>

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


Mime
View raw message