You're right, the ant tag to import properties is a well known and
approved way to customize an existing XML script without having to know
it's internals. Similar functionnality in log4j.xml should be great !
Perhaps an (optional) reuse of ant code could do the job ?
Nico.
Nicolas Martignole a écrit :
This remind me what ANT does with the Property task.
http://ant.apache.org/manual/CoreTasks/property.html
You can import a java property file at runtime. Great for per-developer
properties such as login/pw for DB...
What do you thing about a way to setup variable substitution from
something else that system variables ? Something like :
<log4j:configuration>
<!-- imports properties from a property file -->
<variables properties="file://my.properties"/>
<!-- imports properties from a property file using default system
variable substritution -->
<variables properties="file://${home.properties}/my.properties"/>
...
Nico.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]