ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EetieD <...@leanapps.com>
Subject Re: AW: using dynamic declarations..
Date Mon, 19 Oct 2009 07:43:08 GMT

Thanks for all the replies! 
(I used propertycopy, which it works perfect for me.)


Knuplesch, Juergen wrote:
> 
> Maybe use propertycopy from antcontrib package. 
> 
> 
> Juergen
> -- 
> J├╝rgen Knuplesch                    
> -----Urspr├╝ngliche Nachricht-----
> Von: EetieD [mailto:khn@leanapps.com] 
> Gesendet: Donnerstag, 15. Oktober 2009 11:32
> An: user@ant.apache.org
> Betreff: using dynamic declarations..
> 
> 
> Hi,
> 
> I was wondering if it is possible to use 'dynamic declarations' within
> ANT.
> Please check the example below. In the line '<echo>${value.${id}}</echo>',
> I would like to print a value which is dependant on the id. But for now, I
> cannot use this construction, because it prints '${value.${id}}' literaly.
> If possible, how can I still use this construction?  
> 
> I hope someone can help. Thanks!!
> 
> EetieD
> 
> 
> <target name="check.numberr">
> 	<var name="value.3" value="3" />
> 	<var name="value.4" value="4" />
> 	<var name="id" value="3" />     <!-- now it is 3, but it can also be 4
> -->
> 
> 	<echo>${value.${id}}</echo> <!-- how to use this? -->
> 	<echo>${value.3}</echo>       <!-- this works -->
> </target>
> --
> View this message in context:
> http://www.nabble.com/using-dynamic-declarations..-tp25905565p25905565.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
> 
> 
> ---------------------------------------------------------------------
> 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://www.nabble.com/using-dynamic-declarations..-tp25905565p25954356.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