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
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
Or propertycopy/ from ant-contrib.
http://ant-contrib.sourceforge.net/tasks/tasks/propertycopy.html
-Original Message-
From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 19, 2005 12:31 PM
To: Ant Users List
Subject: Re: indirect property evaluation
--- Lasher, James L [EMAIL PROTECTED] wrote:
[SNIP]
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
On Wed, 19 Oct 2005 12:31:18 -0700, Alexey N. Solofnenko wrote:
A simple scriptdef can do that.
Builtins can do it, too:
[echo] testfw.db.system = Solid
build.properties:
db.system=solid
# --- for Solid
testfw.solid.system=Solid
On Wed, 19 Oct 2005 12:59:47 -0700 (PDT), Matt Benson wrote:
This should just work, in a properties file,
according the the property manual page. If not you
should file a bug report.
Nothing in the docs indicates that evaluation happens as long as no futher
replacement is possible, and that