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

org.apache.felix.utils.properties will save key=value on top of comments if the original properties file are all comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • utils-1.8.0
    • Utils
    • None

    Description

      for example if the properties file looks like

      #
      # just a comment
      #
      

      then if we add a property into this file and save it we get something like

      key1 = value1
      #
      # just a comment
      #
      

      we should get

      #
      # just a comment
      #
      key1 = value1
      

      instead

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: