Peter Reilly wrote:

> see:
> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
>

Thanks, Peter .. this is the second time the Macrodef task has really saved my 
bacon when I planned on
Ant doing something it doesn't actually do :-) Here's what I ended up with:

         <!-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 -->
         <!-- Composition of some properties based on .properties files sourced 
by build.xml                              -->
         <!-- Allows you define a new property with a value of ${a.${b}} which 
can't be done by the Property task alone.  -->
         <!-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 -->
         <macrodef name="macro.compose-property">
             <attribute name="name"/>
             <attribute name="stem"/>
             <attribute name="selector"/>
             <sequential>
                 <property name="@{name}" value="[EMAIL 
PROTECTED]@{selector}}"/>
             </sequential>
         </macrodef>

--
Jack J. Woehr            # "[F]ar in the empty sky a solitary esophagus slept
http://www.well.com/~jax #  upon motionless wing; everywhere brooded stillness,
http://www.softwoehr.com #  serenity, and the peace of God." - Mark Twain




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to