commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <>
Subject Re: [Configuration] includes in PropertiesConfiguration / classloader case
Date Wed, 11 May 2005 06:08:49 GMT
This include machanism in properties files had already existed when I 
came to this project, so I don't know this code too well. Support for 
loading configuration files from the classpath was added later, so this 
might be the reason why there are problems.

However this whole include stuff was made a bit obsolete by 
ConfigurationFactory and the possibility of defining multiple 
configuration sources in a configuration definition file, which are 
collected and added to a CompositeConfiguration. Wouldn't this be an 
alternative for you?


Stefan Rufer wrote:
> Hi,
> I just started to write a few lines with the Configuration framework - 
> cool stuff, congrats to the authors !!
> About the include-mechanism for properties files. As far as I understood 
> the sourcecode in PropertiesConfiguration, includes will be disabled if 
> no basePath is available. That's the case if properties files get loaded 
> by the classloader.
> Is this desired behaviour? IMO it should be possible to use the include 
> mechanism even if files are loaded by the classloader.
> thanks for advice
> Stefan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message