commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-324) INIConfiguration does not support line continuation
Date Thu, 16 Jul 2009 20:10:14 GMT

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

Oliver Heger commented on CONFIGURATION-324:
--------------------------------------------

This makes sense, however I am nor sure whether this approach would work with file paths defined
in ini files. Consider a property declaration like

[section]
directory=C:\Programs\

I think that the backslash is typically not escaped if used in path names. So when applying
the strategy you suggested we would continue this line, which is certainly not desired.

I don't know what would be the best way of dealing with this problem.

> INIConfiguration does not support line continuation
> ---------------------------------------------------
>
>                 Key: CONFIGURATION-324
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-324
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Documentation, Format
>    Affects Versions: 1.5
>            Reporter: Charles Honton
>            Assignee: Oliver Heger
>            Priority: Minor
>             Fix For: 1.6
>
>
> INIConfiguration does not support line continuation.  See http://en.wikipedia.org/wiki/INI_file#Escapes
for a description.  Using INIConfiguration to read the following file:
> [section1]
> dotted.var1 = \
> 	foo
> var2 = doodle
> Produces the following contents:
>     section1.dotted.var1= \
>     section1.foo= 
> I expected the following contents:
>     section1.dotted.var1= foo

-- 
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