Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-314

Allow custom separator characters when writing out PropertiesConfiguration

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.7
    • Component/s: Format
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              skaffman Kenny MacLeod
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: