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
>&
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?
>>
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:
>
>
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
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
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
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