Michiel Kalkman wrote:
Hi,
I'd like to be able to do the following. I have the following directory
structure:
root/A/config.xml
root/B/specificConfigForB.xml
root/B/log4jConfigForB.xml
root/A/config.xml looks like:
<configuration>
<xml fileName="../B/specificConfigForB.xml"/>
</configuration>
root/B/specificConfigForB.xml refers to the location of log4j like:
<configuration>
<log4j-url>${some-predefined-variable-resolved-at-runtime}/log4j.xml</log4j-url>
</configuration>
The idea is that when I do something like config.getString( "log4j-url") I
want the location of the log4j.xml, like
root/b/log4j.xml (and not root/a/log4j.xml).
Is something like this possible ?
If so, how ?
Thanks and regards,
Michiel
Hello,
I am not sure if I understand your question correctly. Do you want to
know if there is a mechanism of using variables in a configuration file
that can be replaced by current values? Then the answer is yes; have a
look at
http://jakarta.apache.org/commons/configuration/howto_properties.html#Variable%20Interpolation
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]