ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: indirect property evaluation
Date Wed, 19 Oct 2005 19:31:18 GMT
A simple <scriptdef> can do that.

- Alexey.

Lasher, James L wrote:
> Hello all,
>
> I have the following property file that I want to load in my project:
>
> db.system=solid
>
> # ------------------- for Solid ----------------
> testfw.solid.system=Solid
>
> testfw.dbvar.system=testfw.${db.system}.system
> testfw.db.system=${testfw.dbvar.system}
>
>
> In my build.xml file, after loading the properties file, I would like
> the result of:
>
> 	<echo message="testfw.db.system = ${testfw.db.system}"/>
>
> To be:
> 	testfw.db.system = Solid
>
> Instead of:
> 	Testfw.db.system = testfw.solid.system
>
> Is it possible to do this "double" evaluation?
>
> Thanks in advance,
> -jim-
>
> ---------------------------------------------------------------------
> 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