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 2016/05/18 19:23:13 UTC

[jira] [Commented] (CONFIGURATION-630) multiple line issue

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

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

Thanks for this report. Could you please elaborate a bit: Is this only a formatting issue (the line break is lost on saving) or are there other problems (e.g. the value of the property is not correctly read)?

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