2 Replies Latest reply: Oct 21, 2008 8:09 PM by 807589 RSS

    .property file comments removed.

    807589
      Hi,

      I have a property file and i want user can add the propery file and property file also has comments of every KEY=VALUE pair, but when i add a new property then remaining comments of the property files are disappers.

      For Example----

      Before adding the propery.
      #----------------------------------------------------------
      # DB Connection Properties
      #----------------------------------------------------------
      LDB.DATABASE.NAME=MYSQL
      DB.AS.CONNPOOLED=N
      DB.AS.USER=test
      DB.AS.PASS=test

      when i add new property the the comment will be removed and it looks like as follow.

      LDB.DATABASE.NAME=MYSQL
      DB.AS.CONNPOOLED=N
      DB.AS.JNDI= jdbc/test
      DB.AS.USER=test
      DB.AS.PASS=test

      now the comments are removed and the Sequence is also distrub.

      If any one can help me that i can add the property in the Property file and it also does not remove the comments and Sequence will also be same.

      Thanks,