[ 
https://issues.apache.org/jira/browse/CONFIGURATION-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471485#comment-16471485
 ] 

Amitabh Pandey commented on CONFIGURATION-700:
----------------------------------------------

1-Original Property File Content has been attached .I was not able to attach 
the property file here so I have attached the image file of the property file 
content

2-Code .I that I am using motioned above. In property file I have to update 
only id,which I am updating from 1 to 3 or any other value from code.

3-Attached with Getting output. All backslash got converted with two backslash.

4-Expecting output will be that only id should be updated and nothing else. No 
slash should be changed In any other tag.

Hope now it will be clear. Let me know if you need anything else.

 

> Issue With backslash(\) and Forwardslash(/)
> -------------------------------------------
>
>                 Key: CONFIGURATION-700
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-700
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 1.10
>            Reporter: Amitabh Pandey
>            Priority: Major
>             Fix For: 1.10
>
>         Attachments: Getting Output.jpg, Original Property File Contenet.jpg
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to