Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E36310B28 for ; Wed, 16 Jul 2014 19:55:06 +0000 (UTC) Received: (qmail 32882 invoked by uid 500); 16 Jul 2014 19:55:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 32793 invoked by uid 500); 16 Jul 2014 19:55:06 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 32775 invoked by uid 99); 16 Jul 2014 19:55:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2014 19:55:06 +0000 Date: Wed, 16 Jul 2014 19:55:05 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CONFIGURATION-427) XMLPropertyListConfiguration cannot save arrays in the correct plist form MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONFIGURATION-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063999#comment-14063999 ] Oliver Heger commented on CONFIGURATION-427: -------------------------------------------- Currently, I am the only maintainer of this code base, and - unfortunately - I am not familiar with the plist format. This is the reason why this request has been open for so long. So if you know the format and can provide a patch, this would be highly appreciated. > XMLPropertyListConfiguration cannot save arrays in the correct plist form > ------------------------------------------------------------------------- > > Key: CONFIGURATION-427 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-427 > Project: Commons Configuration > Issue Type: Bug > Components: Format > Affects Versions: 1.6 > Environment: should show up in any environment, as the test cases are disabled for arrays and maps: > http://commons.apache.org/configuration/xref-test/org/apache/commons/configuration/plist/TestXMLPropertyListConfiguration.html#199 > I was testing 1.6 using groovy console under Mac OS X 10.6 > Reporter: matthew smith > Assignee: Emmanuel Bourg > Priority: Minor > Attachments: configuration-427.patch > > > {code:java} > groovy> import org.apache.commons.configuration.plist.* > groovy> def config = new XMLPropertyListConfiguration() > groovy> config.addProperty("things", ['chair', 'hat', 'door']) > groovy> config.save(System.out) > {code} > results in > > {code:xml} > > > > > things > chair > things > hat > things > door > > > {code} > expecting > {code:xml} > > > > > things > > chair > hat > door > > > > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)