Oliver Heger wrote on Thursday, September 16, 2004 7:50 AM: > You can try the following: > > Create a new PropertiesConfiguration object and copy the system > properties in this object. Then add this configuration to the > composite configuration.
And you don't have to do this manually: final CompositeConfiguration config = new CompositeConfiguration(); config.addConfiguration(ConfigurationConverter.getConfiguration(System.getProperties())); > After that load your configuration file using > ConfigurationFactory and > add the resulting Configuration to the composite > configuration. Then the > system properties should override the properties from file. > > The reason for this behavior is that CompositeConfiguration > operates on > the Configuration objects it contains rather than on single > properties. - J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
