Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-166

[configuration] Support all java.util.Properties key/value separators

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      I've a patch that makes BasePropertiesConfiguration (more) compatible with
      the standard java.util.Properties file format by accepting one of "=: \r\n\t\f"
      as the key/value separator char. Also added a overwriteValues property to
      determine how duplicate keys are handled; setOverwriteValues(false) causes
      the same behaviour as j.u.Properties

        Activity

        Hide
        Brent Verner added a comment -

        Created an attachment (id=11639)
        patch to make BasePropertiesConfiguration file parsing (more) compatible with j.u.Properties format

        Show
        Brent Verner added a comment - Created an attachment (id=11639) patch to make BasePropertiesConfiguration file parsing (more) compatible with j.u.Properties format
        Hide
        Emmanuel Bourg added a comment -

        Good point for the extra key/value separators, it doesn't seem to be widely used
        though, I'd suggest integrating this after the 1.0 release. Could you please
        split the value override flag into a different bug and submit an updated patch?
        A couple test cases would be welcome too

        Show
        Emmanuel Bourg added a comment - Good point for the extra key/value separators, it doesn't seem to be widely used though, I'd suggest integrating this after the 1.0 release. Could you please split the value override flag into a different bug and submit an updated patch? A couple test cases would be welcome too

          People

          • Assignee:
            Unassigned
            Reporter:
            Brent Verner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development