Ilyas Türkben created FELIX-4917:
------------------------------------
Summary: FilePersistenceManager doesn't support comments
Key: FELIX-4917
URL: https://issues.apache.org/jira/browse/FELIX-4917
Project: Felix
Issue Type: Bug
Components: Configuration Admin
Affects Versions: configadmin-1.8.0
Reporter: Ilyas Türkben
>From a config file as following, the values cannot be parsed and read.
{noformat}
#mongodb URI
mongouri=mongodb="//127.0.0.1:27017"
#custom datastore
customBlobStore=B"true"
{noformat}
{code:java}
@Test
public void testLoad() throws IOException {
FilePersistenceManager filePersistenceManager = new
FilePersistenceManager(getClass().getResource("/config").getFile());
@SuppressWarnings("unchecked")
Dictionary<String,Boolean> cfg = filePersistenceManager.load("test");
assertTrue(cfg.get("customBlobStore"));
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)