commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michiel Kalkman" <michielgkalk...@gmail.com>
Subject [Commons Config]URL resolving
Date Thu, 08 Jun 2006 15:05:57 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message