Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4917

FilePersistenceManager doesn't support comments

    XMLWordPrintableJSON

Details

    Description

      The following config file cannot be parsed and read as we would expect.
      Spaces seem to be supported.

      #mongodb URI
      mongouri=mongodb="//127.0.0.1:27017"
      
      #custom datastore
      customBlobStore=B"true"
      
      @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"));
      }
      

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            tuerkben Ilyas Türkben
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: