Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-434

In HierarchicalINIConfiguration, after saving a property by calling setProperty() and save() methods, the contents after semicolon disappeared in the saved file.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.7
    • File reloading
    • None
    • ini file in windows7 64bit

    Description

      Hi!

      I am developing an application using Commons Configuration API.
      And I got this problem.

      In the ini file like this:

      [Environment]
      Application Type=any
      Class Path=C:\Program Files\jar\manage.jar;C:\Program Files\jar\guiLauncher.jar;C:\Program Files\jar\appStart.jar;%USERPROFILE%;

      I changed the value of 'Application Type' from 'any' to 'gui' by using class HierarchicalINIConfiguration.

      The value was successfully modified, but instead the value of 'Class Path' was cut in the middle.
      It is reduced like this : 'Class Path=C:\Program Files\jar\manage.jar'

      In my opinion, the Configuration System regards the contents after ';' as comments, which disappeared from the file.

      Is this a kind of bug? Or is there a way to show all the contents after ';' properly?

      I appreciate if you give comments on this.

      Thank you.

      Attachments

        Activity

          People

            oheger Oliver Heger
            jhj4050 Jin Ho Jo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: