ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shatzer, Larry" <Larry.Shat...@MIROtechnologies.com>
Subject RE: indirect property evaluation
Date Wed, 19 Oct 2005 19:32:55 GMT
Or <propertycopy/> from ant-contrib.

http://ant-contrib.sourceforge.net/tasks/tasks/propertycopy.html


> -----Original Message-----
> From: Alexey N. Solofnenko [mailto:A.Solofnenko@mdl.com] 
> Sent: Wednesday, October 19, 2005 12:31 PM
> To: Ant Users List
> Subject: Re: indirect property evaluation
> 
> 
> 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


Mime
View raw message