You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2008/11/18 22:35:44 UTC

[jira] Resolved: (CONFIGURATION-326) INIConfiguration does not provide a way to get global subset

     [ https://issues.apache.org/jira/browse/CONFIGURATION-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-326.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

The new {{HierarchicalINIConfiguration}} class has a {{getSection()}} method, which returns the content of the specified section as a sub configuration. By passing in the section name {{null}} the content of the global section can be retrieved.

> INIConfiguration does not provide a way to get global subset
> ------------------------------------------------------------
>
>                 Key: CONFIGURATION-326
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-326
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Documentation, Format
>    Affects Versions: 1.5
>            Reporter: Charles Honton
>             Fix For: 1.6
>
>
> 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

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