commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Honton (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-327) INIConfiguration Global parameters alias sectional parameters
Date Tue, 13 May 2008 20:35:55 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596526#action_12596526
] 

Charles Honton commented on CONFIGURATION-327:
----------------------------------------------

Alternatively, since the ini format does not allow brackets in a key name, include brackets
in the section part of the key name.  The example above would contain:

default = ok
dotted.var1 = default
[section1].dotted.var1 = foo
[section1].var2 = doodle

This would break prior clients expecting a particular name aliasing.  This would not break
clients properly appending the section name to the key name to get the property.


> INIConfiguration Global parameters alias sectional parameters
> -------------------------------------------------------------
>
>                 Key: CONFIGURATION-327
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-327
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Documentation, Format
>    Affects Versions: 1.5
>            Reporter: Charles Honton
>
> After reading the following file with INIConfiguration 
> default = ok
> dotted.var1 = default
> [section1]
> dotted.var1 = foo
> var2 = doodle
> The set of sections returned by INIConfiguration.getSections() includes "dotted" and
"section1".  I did not expect a section "dotted".

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


Mime
View raw message