ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: should ant 'id' value be a static string
Date Fri, 18 Dec 2009 14:29:38 GMT
You can write whatever you want as "id" value. 
But properties are not resolved, means the path in 
  <property name="foo" value="bar"/>
  <path id="${foo}"/>
has the id "${foo}" (with dollar and brackets) and not "bar".

In this sence - yes, IDs are static.


Jan
 

>-----Urspr√ľngliche Nachricht-----
>Von: Raja Nagendra Kumar [mailto:Nagendra.Raja@tejasoft.com] 
>Gesendet: Freitag, 18. Dezember 2009 13:37
>An: user@ant.apache.org
>Betreff: should ant 'id' value be a static string
>
>
>Hi,
>
>I am trying to set the path property id to be dynamic i.e id is
>app.${module.id}.sp where module.id value should be taken the 
>the final path
>id should be app.tejasoft.sp.
>
>However the echo says that path not found.
>
>Is it expected that path id's or any ids to be always static.. Are I am
>doing any thing wrong here..
>
><project>
>
><property name="module.id" value="tejasoft"/>
>
><path id="app.${module.id}.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}"/>
>
></project>
>
>Regards,
>Raja Nagendra Kumar,
>C.T.O
>www.tejasoft.com
>-- 
>View this message in context: 
>http://old.nabble.com/should-ant-%27id%27-value-be-a-static-str
ing-tp26842763p26842763.html
>Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message