commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] Commented: (CONFIGURATION-400) PropertiesConfiguration: Can't disable attribute splitting
Date Wed, 21 Oct 2009 06:09:59 GMT


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:
>             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:
> <some-element some-attribute="&#x0A;&#x0D;" />
> 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.

View raw message