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-630) multiple line issue
Date Wed, 18 May 2016 19:23:13 GMT

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

Mime
View raw message