ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derek Shockey <>
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?
<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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message