ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Bacon <jba...@magmic.com>
Subject Re: recursive expansion of property names
Date Wed, 23 Jun 2004 22:06:04 GMT
sorry, I should be more specific:

I have a properties file:

projects = com.magmic
com.magmic.name = APIs

and I load that in Ant.

I want to access com.magmic.name by using the projects property:

<echo>${${projects}.name}</echo>

I want that to print "APIs".  Is there some way to effect that?

--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com


Jeffrey Bacon wrote:
> Can I effect the below behavior somehow to get it to print 'hello'?
> 
> <property name="prop1" value="prop2" />
> <property name="prop2" value="hello" />
> <echo>${{prop1}}</echo>

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


Mime
View raw message