Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
17, 2009 at 2:38 PM, Oliver Heger wrote: > Alec Swan schrieb: > >> Can the following be done with Commons Configurations? >> >> 1. Load defaults into a PropertyConfiguration object. >> 2. Load overrides into a Java Properties object. (Note that I do not need >&

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
wrote: > Alec Swan schrieb: > >> I wrote the code following the example on >> >> http://commons.apache.org/configuration/userguide-1.2/howto_compositeconfiguration.html >> >> There is no save() method in CompositeConfiguration. How can I save it? >>

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
This is really unfortunate. The merged configuration is required to preserve comments from defaults, but not necessarily overrides. Are there any plans to add this functionality in the near future? Thanks. On Wed, Jun 17, 2009 at 1:54 PM, Oliver Heger wrote: > Alec Swan schrieb: > >

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
I wrote the code following the example on http://commons.apache.org/configuration/userguide-1.2/howto_compositeconfiguration.html There is no save() method in CompositeConfiguration. How can I save it? Thanks. On Wed, Jun 17, 2009 at 11:23 AM, Jörg Schaible wrote: > Alec Swan wrote

Re: [configuration] Merging overrides with defaults

2009-06-17 Thread Alec Swan
ext > of your question. > > Alec Swan wrote at Mittwoch, 17. Juni 2009 00:00: > > > I have a property file containing default configurations in a key=value > > format. I also have another file with the same format which contains > > overrides for some of the properties

Merging overrides with defaults

2009-06-16 Thread Alec Swan
I have a property file containing default configurations in a key=value format. I also have another file with the same format which contains overrides for some of the properties. I need to apply the overrides to the default configuration while preserving the format and comments. I also need to writ

Merging overrides with defaults

2009-06-16 Thread Alec Swan
I have a property file containing default configurations in a key=value format. I also have another file with the same format which contains overrides for some of the properties. I need to apply the overrides to the default configuration while preserving the format and comments. I also need to writ