You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Derek Shockey <de...@gmail.com> on 2012/10/10 21:10:46 UTC
Access value of macrodef attribute dynamically?
Hi everyone,
Is there any way to access the value of a macrodef attribute
dynamically with a property value?
e.g.
<macrodef name="whatever">
<attribute name="typeA"/>
<attribute name="typeB"/>
…
If I have a property named "type" containing "A" or "B", can I get the
value of the corresponding attribute? Something like @{type${type}},
but that of course doesn't work. I can't seem to find any information
on nesting like this with macrodef attributes (only on nesting
properties).
Thanks,
Derek
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org