commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wieland Gmeiner <wieland.gmei...@gmail.com>
Subject Re: [CONFIGURATION] preserve mulitline property over load and save
Date Wed, 14 Sep 2011 08:23:27 GMT
On Wed, Sep 14, 2011 at 1:15 AM, sebb <sebbaz@gmail.com> wrote:
> On 13 September 2011 23:19, Wieland Gmeiner <wieland.gmeiner@gmail.com> wrote:
>> On Wed, Sep 14, 2011 at 12:06 AM, sebb <sebbaz@gmail.com> wrote:
>>> On 13 September 2011 21:31, Oliver Heger <oliver.heger@oliver-heger.de>
wrote:
>>>>> Is there a possiblity to tweak the PropertiesConfiguration so that it
>>>>> preserves the original layout over a load/store cycle?
>>>
>>> Why do you want to do this?
>>
>> Because I'm programmatically changing configuration files (e.g.
>> inserting additional properties) and it would be nice not to mess up
>> the layout of the original files. A sysadmin won't be pleased if some
>> update program changes the layout of his handcrafted config files. I
>> wouldn't.
>
> In that case, I think you are going to have to write your own output method.
>
> So long as you don't change any of the input settings, you should just
> be able to append the new ones to the end.

I also have to change values of already existing properties, so
appending only is not a choice.
Btw, for appending only I don't need configurations at all.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message