ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derek Shockey <derek.shoc...@gmail.com>
Subject Access value of macrodef attribute dynamically?
Date Wed, 10 Oct 2012 19:10:46 GMT
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


Mime
View raw message