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

INIConfiguration does not provide a way to get global subset

    XMLWordPrintableJSON

    Details

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

      Description

      There does not appear to be a way to get the global section from INIConfiguration.subset(). As an example, with the file

      ; start
      default = ok
      var1 = default

      []
      var1 = empty1
      var2 = empty2
      ; end

      calling INIConfiguration.subset("") or INIConfiguration.subset(null) returns a Configuration with the contents:
      var1 = empty1
      var2 = empty2

      I expected that INIConfiguration.subset(null) would return a Configuration with the contents:
      default = ok
      var1 = default

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chonton Charles Honton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: