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

Issue With backslash(\) and Forwardslash(/)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.10
    • Fix Version/s: 1.10
    • Component/s: Build
    • Labels:
      None

      Description

      Dear Team,

      I am using commons-configuration-1.10.jar for updating property file in java.

      I have achieve all my requirement(Preserve comment, White space) with this API.But stuck at one point.It is not working as per my expectations with slash.Below is one example.

      I have below url in my properties file.

      C\:ABC.net/wsdl

      Now it is getting change to below after modification

      C:ABC.net\/wsdl

      Means it is removing the backslash and changing forwardslash to \/.I know it is escaping character. But is there any way to prevent this. I cant not change any thing in property file. I have to handle through code only. Because of only this issue I again moved to Java util API.

      Please check fix of this. Rest is excellent.

        Attachments

        1. Getting Output.jpg
          168 kB
          Amitabh Pandey
        2. Original Property File Contenet.jpg
          166 kB
          Amitabh Pandey
        3. Read.java
          0.4 kB
          Sebb
        4. Test-input.properties
          0.1 kB
          Sebb
        5. Test-output.properties
          0.1 kB
          Sebb
        6. Update.java
          0.8 kB
          Sebb

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amitkpandey Amitabh Pandey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: