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..

<project>

<property name="module.id" value="tejasoft"/>

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

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

-- 
View this message in context: 
http://old.nabble.com/should-ant-%27id%27-value-be-a-static-string-tp26842763p26844870.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to