Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C21787B27 for ; Wed, 14 Sep 2011 08:23:58 +0000 (UTC) Received: (qmail 29503 invoked by uid 500); 14 Sep 2011 08:23:57 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 29210 invoked by uid 500); 14 Sep 2011 08:23:55 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 29180 invoked by uid 99); 14 Sep 2011 08:23:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 08:23:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wieland.gmeiner@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 08:23:47 +0000 Received: by bkas6 with SMTP id s6so1603209bka.30 for ; Wed, 14 Sep 2011 01:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8+WdHqzJvjuaa0nzn+UFxrDT9CIvtsJL48ESgQ7MjME=; b=bgam7Rwgd421MN4ZgaJhyRumLNR3xToW102reQ4E63KHa1tFPYfcGOAu11GXJu6RnJ XEjDW8TGMeCV0mOCGkqzea73UG4OMBFeCK9Kpf9Vsl744adS7IemFvXv2vhL7zIwkQGJ iuhcapLHqg/NA7VrTE9CsGrSWgT0sFdhOX3X0= MIME-Version: 1.0 Received: by 10.204.4.76 with SMTP id 12mr2020983bkq.150.1315988607346; Wed, 14 Sep 2011 01:23:27 -0700 (PDT) Received: by 10.204.25.16 with HTTP; Wed, 14 Sep 2011 01:23:27 -0700 (PDT) In-Reply-To: References: <4E6FBD94.5030502@oliver-heger.de> Date: Wed, 14 Sep 2011 10:23:27 +0200 Message-ID: Subject: Re: [CONFIGURATION] preserve mulitline property over load and save From: Wieland Gmeiner To: Commons Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Sep 14, 2011 at 1:15 AM, sebb wrote: > On 13 September 2011 23:19, Wieland Gmeiner wrote: >> On Wed, Sep 14, 2011 at 12:06 AM, sebb wrote: >>> On 13 September 2011 21:31, Oliver Heger 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