commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] Resolved: (CONFIGURATION-314) Allow custom separator characters when writing out PropertiesConfiguration
Date Mon, 30 Mar 2009 19:37:50 GMT


Oliver Heger resolved CONFIGURATION-314.

    Resolution: Fixed

The fix for CONFIGURATION-371 also fixes the major part of this issue.

{{PropertiesConfigurationLayout}} now also provides a method for setting the line separator.
(Per default the platform-specific line separator is used.)

> Allow custom separator characters when writing out PropertiesConfiguration
> --------------------------------------------------------------------------
>                 Key: CONFIGURATION-314
>                 URL:
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Format
>    Affects Versions: 1.5
>            Reporter: Kenny MacLeod
>            Assignee: Oliver Heger
>             Fix For: 1.7
> While PropertiesConfiguration is tolerant of several different key/value separator characters
when reading a properties stream, it is hard-wired to use an "=" character when writing them
out again.
> Can we please have a way to customise this?  Seems like a perfect use for the PropertiesConfigurationLayout.
> Sadly, because of the way that PropertiesWriter has been implemented, it's impossible
to extend and override this behaviour without copying large chunks of code.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message