Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 44949 invoked from network); 21 Oct 2009 06:10:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Oct 2009 06:10:25 -0000 Received: (qmail 79507 invoked by uid 500); 21 Oct 2009 06:10:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 79364 invoked by uid 500); 21 Oct 2009 06:10:24 -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 79098 invoked by uid 99); 21 Oct 2009 06:10:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 06:10:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 06:10:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 696F4234C045 for ; Tue, 20 Oct 2009 23:09:59 -0700 (PDT) Message-ID: <658805941.1256105399423.JavaMail.jira@brutus> Date: Wed, 21 Oct 2009 06:09:59 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CONFIGURATION-400) PropertiesConfiguration: Can't disable attribute splitting In-Reply-To: <1306920691.1256067119598.JavaMail.jira@brutus> 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-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768100#action_12768100 ] Oliver Heger commented on CONFIGURATION-400: -------------------------------------------- The splitting is already performed during loading, so you have to disable the delimiter parsing *before* you load the configuration. Afterwards it has no more effect. This is documented in the Javadocs of the {{setDelimiterParsingDisabled()}} method: ??Set whether this configuration should use delimiters when parsing property values to convert them to lists of values. By default delimiter parsing is enabled Note: this change will only be effective for new parsings. If you want it to take effect for all loaded properties use the no arg constructor and call this method before setting source.?? Does this solve your problem? > PropertiesConfiguration: Can't disable attribute splitting > ----------------------------------------------------------- > > Key: CONFIGURATION-400 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-400 > Project: Commons Configuration > Issue Type: Bug > Components: Format > Affects Versions: 1.6 > Reporter: Lee Naylor > Assignee: Oliver Heger > > My XML configuration has the following attribute: > > But XML Configuration is trying to split this string and trims it after splitting. I don't need this behaviour, but setting setDelimiterParsingDisabled() just changing delimeter to "|" and not disables attribute trimming. > Need either to disable trimming/splitting if setDelimiterParsingDisabled() is set to TRUE (incompatible change), or add something like setParseAttributesAsIs() that will prevent attributes to be trimmed and splitted -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.