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

INIConfiguration does not provide a way to get global subset

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.6
    • Documentation, Format
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: