ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: property name iinterpolation
Date Fri, 11 Jun 2004 17:59:06 GMT
See

http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
http://marc.theaimsgroup.com/?t=108620166000002&r=1&w=2


--- Igor Pasemnik <igor.pasemnik@cloakware.com> wrote:
> 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
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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


Mime
View raw message