ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hayes, Peter" <>
Subject Obtaining properties
Date Tue, 03 Apr 2001 17:11:57 GMT

I would like to obtain a property by using another property to get it.

I have a prop file like this
--------------------- = =

In my build.xml I would like to figure out which project to run based on a
passed in property.  (-Dproject=proj1)

So in my target would be something like

<property name="main" value="${project}.run.main" />

But instead of main being set to the string "" I would like to
'dereference' that so it would get the previously set value

Is this possible w/ ANT


Peter Hayes
GETT, Fidelity Investments

View raw message