ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <>
Subject RE: AW: should ant 'id' value be a static string
Date Fri, 18 Dec 2009 15:15:44 GMT

Yep.. this approach works..  Thank you tom for this tip.

As one kind of resolutions work and not other one.. for id's. Jan pl. let me
know why such design.. 

Below is the example..


<property name="" value="tejasoft"/>

<macrodef name="ab">
<attribute name="prefix" default="${}"/>
<path id="app.@{prefix}.sp">
    <pathelement path="${src}"/>
    <pathelement location="c:/temp"/>

<path id="app.nag.sp">
    <pathelement path="${src}"/>
    <pathelement location="c:/temp"/>
<echo message="${toString:app.${}.sp}"/>
<echo message=" defined one : ${toString:app.tejasoft.sp}"/>
<echo message="not referenced one : ${toString:app.nag.sp}"/>

View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message