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

Oliver Heger commented on CONFIGURATION-630:
--------------------------------------------

Thanks for clarifying.

Unfortunately, I have no idea how this behavior can be fixed easily. There is 
the {{PropertiesConfigurationLayout}} class which stores some information 
related to the formatting of the properties file. But line continuations are 
not stored here. They are already processed by the reader that reads the file. 
In the configuration only the processed value is stored (this is the value 
which has to be returned to requesting clients); so the original representation 
is lost.

If anybody comes up with a clever solution idea, this would be highly 
appreciated.

> multiple line issue
> -------------------
>
>                 Key: CONFIGURATION-630
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-630
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Julius
>            Priority: Minor
>
> source:
> SOLR_HEAP="512m"
> GC_TUNE="-XX:NewRatio=3 \
> -XX:SurvivorRatio=4"
> code:
>               FileBasedConfigurationBuilder<PropertiesConfiguration> builder =
>                           new 
> FileBasedConfigurationBuilder<PropertiesConfiguration>(PropertiesConfiguration.class)
>                           .configure(new 
> Parameters().properties().setFileName(fileName)
>                                       .setThrowExceptionOnMissing(true));
>                       PropertiesConfiguration config = 
> builder.getConfiguration();
>                       config.setProperty("SOLR_HEAP", "\"525m\"");
>                       builder.save();
> result:
> SOLR_HEAP="525m"
> GC_TUNE="-XX:NewRatio=3 -XX:SurvivorRatio=4"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to