ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mani G. Iyer" <i...@rcn.com>
Subject RE: property name iinterpolation
Date Fri, 11 Jun 2004 18:05:56 GMT
This may rank as the most FAQ.  And you can find the answer in 

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

HTH
Mani




-----Original Message-----
From: Igor Pasemnik [mailto:igor.pasemnik@cloakware.com] 
Sent: Friday, June 11, 2004 1:26 PM
To: Ant Users List
Subject: property name iinterpolation

Does Anyone know if I the following:

...
<property name="p1" value="p3"/>
<property name="p2" value="p4"/>
<property name="p3.p4" value="SOME VALUE"/>

<echo message="${${p1}.${p2}}"/>
...

makes sense in ant or it is against ant's religion?

The output is: ${${p1}.p4}

It seems there is some "property name interpolation" is going on 
(${p2}), if I can use such terminology.

Anyway, I maybe off topic a little here, but is there a way to get the 
above ${${p1}.${p2}} to output "SOME VALUE", which what vaoule of 
${p3.p4} is?

Mind you I'm not java inclined person.

Thanks in advance.

-- 
Igor Pasemnik, Software Engineer, Cloakware Corporation
www.cloakware.com  "secure software ... from the inside out"
igor.pasemnik@cloakware.com  613-271-9446 x289 613-271-9447 fax





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