[jira] [Commented] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-13 Thread Amitabh Pandey (JIRA)

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

Amitabh Pandey commented on CONFIGURATION-700:
--

Thanks Sebb for your effort.

I will check once this at my end.

 

> 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)


[jira] [Commented] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-11 Thread Amitabh Pandey (JIRA)

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

Amitabh Pandey commented on CONFIGURATION-700:
--

Can you share the output which you have generated. Can we not avoid the 
escaping as you have mentioned also.

I assume that you are talking about common configuration version 2.2.

I just let you know that this property file will be used by some other 
application. That's why i don't want any change in any other tag with escaping. 
This property file belongs to that system and all the values which are inside 
used by them. So it would not work if any this will be changed in escaping 
character.

> 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)


[jira] [Commented] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-10 Thread Amitabh Pandey (JIRA)

[ 
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)


[jira] [Updated] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-10 Thread Amitabh Pandey (JIRA)

 [ 
https://issues.apache.org/jira/browse/CONFIGURATION-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amitabh Pandey updated CONFIGURATION-700:
-
Attachment: Getting Output.jpg

> 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)


[jira] [Updated] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-10 Thread Amitabh Pandey (JIRA)

 [ 
https://issues.apache.org/jira/browse/CONFIGURATION-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amitabh Pandey updated CONFIGURATION-700:
-
Attachment: (was: 1.jpg)

> 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: 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)


[jira] [Updated] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-10 Thread Amitabh Pandey (JIRA)

 [ 
https://issues.apache.org/jira/browse/CONFIGURATION-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amitabh Pandey updated CONFIGURATION-700:
-
Attachment: 1.jpg

> 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: 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)


[jira] [Updated] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-10 Thread Amitabh Pandey (JIRA)

 [ 
https://issues.apache.org/jira/browse/CONFIGURATION-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amitabh Pandey updated CONFIGURATION-700:
-
Attachment: Original Property File Contenet.jpg

> 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: 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)


[jira] [Updated] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-10 Thread Amitabh Pandey (JIRA)

 [ 
https://issues.apache.org/jira/browse/CONFIGURATION-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amitabh Pandey updated CONFIGURATION-700:
-
Attachment: (was: 1.jpg)

> 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
>
>
> 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)


[jira] [Commented] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-09 Thread Amitabh Pandey (JIRA)

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

Amitabh Pandey commented on CONFIGURATION-700:
--

If I used Properties class of java util package then updated file getting 
generate correctly. Means it's not escaping anything. Only the key which I am 
updating is getting update.

Problem in this, that all comments and whitespaces gone.If it working with 
Properties class then it should work with Common Configuration also...

Thanks

> 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: 1.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)


[jira] [Commented] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-09 Thread Amitabh Pandey (JIRA)

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

Amitabh Pandey commented on CONFIGURATION-700:
--

Because of formatting issue I have attached the screenshot. Please check once.

> 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: 1.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)


[jira] [Comment Edited] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-08 Thread Amitabh Pandey (JIRA)

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

Amitabh Pandey edited comment on CONFIGURATION-700 at 5/9/18 4:03 AM:
--

Hi Heger,Thanks for the reply.As per your suggestion I have used 
commons-configuration2-2.0.jar jar.

Now found one of my issue has been resolved. Now slash is coming properly after 
modification.

Thanks for this.

Here is my code which I am using

FileBasedConfigurationBuilder 
{color:#6a3e3e}builder{color} = *{color:#7f0055}new{color}* 
FileBasedConfigurationBuilder(

PropertiesConfiguration.*{color:#7f0055}class{color}*)

.configure(*{color:#7f0055}new{color}* 
Parameters().properties().setFileName({color:#2a00ff}"Test.properties"{color})

.setThrowExceptionOnMissing(*{color:#7f0055}true{color}*));

PropertiesConfiguration {color:#6a3e3e}config{color} = 
{color:#6a3e3e}builder{color}.getConfiguration();

{color:#6a3e3e}config{color}.setProperty({color:#2a00ff}"Id"{color}, 
{color:#2a00ff}"3"{color});

{color:#6a3e3e}builder{color}.save();

System.*_{color:#c0}out{color}_*.println({color:#2a00ff}"config.properties 
updated Successfully!!"{color});

Now still one issue is pending of backslash.Now it is not removing as 
previously but it is getting converted in two backslash. Below is the sample

Before: C\:ABC.net/wsdl

After updation  C
:ABC.net/wsdl

Please let me know if there is any fix for this also as we have already escaped 
value in property file with \.

So it should not be change after any other value in property file.I have 
attached the screenshot for above example.

Thanks

. 


was (Author: amitkpandey):
Hi Heger,Thanks for the reply.As per your suggestion I have used 
commons-configuration2-2.0.jar jar.

Now found one of my issue has been resolved. Now slash is coming properly after 
modification.

Thanks for this.

Here is my code which I am using

FileBasedConfigurationBuilder 
{color:#6a3e3e}builder{color} = *{color:#7f0055}new{color}* 
FileBasedConfigurationBuilder(

PropertiesConfiguration.*{color:#7f0055}class{color}*)

.configure(*{color:#7f0055}new{color}* 
Parameters().properties().setFileName({color:#2a00ff}"Test.properties"{color})

.setThrowExceptionOnMissing(*{color:#7f0055}true{color}*));

PropertiesConfiguration {color:#6a3e3e}config{color} = 
{color:#6a3e3e}builder{color}.getConfiguration();

{color:#6a3e3e}config{color}.setProperty({color:#2a00ff}"Id"{color}, 
{color:#2a00ff}"3"{color});

{color:#6a3e3e}builder{color}.save();

System.*_{color:#c0}out{color}_*.println({color:#2a00ff}"config.properties 
updated Successfully!!"{color});

Now still one issue is pending of backslash.Now it is not removing as 
previously but it is getting converted in two backslash. Below is the sample

Before: C\:ABC.net/wsdl

After updation  C\\:ABC.net/wsdl

Please let me know if there is any fix for this also as we have already escaped 
value in property file with \.

So it should not be change after any other value in property file.

Thanks

. 

> 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: 1.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)


[jira] [Updated] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-08 Thread Amitabh Pandey (JIRA)

 [ 
https://issues.apache.org/jira/browse/CONFIGURATION-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amitabh Pandey updated CONFIGURATION-700:
-
Attachment: 1.jpg

> 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: 1.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)


[jira] [Comment Edited] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-08 Thread Amitabh Pandey (JIRA)

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

Amitabh Pandey edited comment on CONFIGURATION-700 at 5/9/18 3:58 AM:
--

Hi Heger,Thanks for the reply.As per your suggestion I have used 
commons-configuration2-2.0.jar jar.

Now found one of my issue has been resolved. Now slash is coming properly after 
modification.

Thanks for this.

Here is my code which I am using

FileBasedConfigurationBuilder 
{color:#6a3e3e}builder{color} = *{color:#7f0055}new{color}* 
FileBasedConfigurationBuilder(

PropertiesConfiguration.*{color:#7f0055}class{color}*)

.configure(*{color:#7f0055}new{color}* 
Parameters().properties().setFileName({color:#2a00ff}"Test.properties"{color})

.setThrowExceptionOnMissing(*{color:#7f0055}true{color}*));

PropertiesConfiguration {color:#6a3e3e}config{color} = 
{color:#6a3e3e}builder{color}.getConfiguration();

{color:#6a3e3e}config{color}.setProperty({color:#2a00ff}"Id"{color}, 
{color:#2a00ff}"3"{color});

{color:#6a3e3e}builder{color}.save();

System.*_{color:#c0}out{color}_*.println({color:#2a00ff}"config.properties 
updated Successfully!!"{color});

Now still one issue is pending of backslash.Now it is not removing as 
previously but it is getting converted in two backslash. Below is the sample

Before: C\:ABC.net/wsdl

After updation  C\\:ABC.net/wsdl

Please let me know if there is any fix for this also as we have already escaped 
value in property file with \.

So it should not be change after any other value in property file.

Thanks

. 


was (Author: amitkpandey):
Hi Heger,Thanks for the reply.As per your suggestion I have used 
commons-configuration2-2.0.jar jar.

Now found one of my issue has been resolved. Now slash is coming properly after 
modification.

Thanks for this.

Here is my code which I am using

FileBasedConfigurationBuilder 
{color:#6a3e3e}builder{color} = *{color:#7f0055}new{color}* 
FileBasedConfigurationBuilder(

PropertiesConfiguration.*{color:#7f0055}class{color}*)

.configure(*{color:#7f0055}new{color}* 
Parameters().properties().setFileName({color:#2a00ff}"Test.properties"{color})

.setThrowExceptionOnMissing(*{color:#7f0055}true{color}*));

PropertiesConfiguration {color:#6a3e3e}config{color} = 
{color:#6a3e3e}builder{color}.getConfiguration();

{color:#6a3e3e}config{color}.setProperty({color:#2a00ff}"Id"{color}, 
{color:#2a00ff}"3"{color});

{color:#6a3e3e}builder{color}.save();

System.*_{color:#c0}out{color}_*.println({color:#2a00ff}"config.properties 
updated Successfully!!"{color});

Now still one issue is pending of backslash.Now it is not removing as 
previously but it is getting converted in two backslash. Below is the sample

*Before:  C\:ABC.net/wsdl*

*After updation*

*C\\**:ABC.net/wsdl*

Please let me know if there is any fix for this also as we have already escaped 
value in property file with \.

So it should not be change after any other value in property file.

Thanks

. 

> 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
>
>
> 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)


[jira] [Comment Edited] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-08 Thread Amitabh Pandey (JIRA)

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

Amitabh Pandey edited comment on CONFIGURATION-700 at 5/9/18 3:57 AM:
--

Hi Heger,Thanks for the reply.As per your suggestion I have used 
commons-configuration2-2.0.jar jar.

Now found one of my issue has been resolved. Now slash is coming properly after 
modification.

Thanks for this.

Here is my code which I am using

FileBasedConfigurationBuilder 
{color:#6a3e3e}builder{color} = *{color:#7f0055}new{color}* 
FileBasedConfigurationBuilder(

PropertiesConfiguration.*{color:#7f0055}class{color}*)

.configure(*{color:#7f0055}new{color}* 
Parameters().properties().setFileName({color:#2a00ff}"Test.properties"{color})

.setThrowExceptionOnMissing(*{color:#7f0055}true{color}*));

PropertiesConfiguration {color:#6a3e3e}config{color} = 
{color:#6a3e3e}builder{color}.getConfiguration();

{color:#6a3e3e}config{color}.setProperty({color:#2a00ff}"Id"{color}, 
{color:#2a00ff}"3"{color});

{color:#6a3e3e}builder{color}.save();

System.*_{color:#c0}out{color}_*.println({color:#2a00ff}"config.properties 
updated Successfully!!"{color});

Now still one issue is pending of backslash.Now it is not removing as 
previously but it is getting converted in two backslash. Below is the sample

*Before:  C\:ABC.net/wsdl*

*After updation*

*C\\**:ABC.net/wsdl*

Please let me know if there is any fix for this also as we have already escaped 
value in property file with \.

So it should not be change after any other value in property file.

Thanks

. 


was (Author: amitkpandey):
Hi Heger,Thanks for the reply.As per your suggestion I have used 
commons-configuration2-2.0.jar jar.

Now found one of my issue has been resolved. Now slash is coming properly after 
modification.

Thanks for this.

Here is my code which I am using

FileBasedConfigurationBuilder 
{color:#6a3e3e}builder{color} = *{color:#7f0055}new{color}* 
FileBasedConfigurationBuilder(

 PropertiesConfiguration.*{color:#7f0055}class{color}*)

 .configure(*{color:#7f0055}new{color}* 
Parameters().properties().setFileName({color:#2a00ff}"Test.properties"{color})

 .setThrowExceptionOnMissing(*{color:#7f0055}true{color}*));

 PropertiesConfiguration {color:#6a3e3e}config{color} = 
{color:#6a3e3e}builder{color}.getConfiguration();

{color:#6a3e3e}config{color}.setProperty({color:#2a00ff}"Id"{color}, 
{color:#2a00ff}"3"{color});

{color:#6a3e3e}builder{color}.save();

 System.*_{color:#c0}out{color}_*.println({color:#2a00ff}"config.properties 
updated Successfully!!"{color});

Now still one issue is pending of backslash.Now it is not removing as 
previously but it is getting converted in two backslash. Below is the sample

*Before:  C\:ABC.net/wsdl*

*After updation*

*C\\:ABC.net/wsdl***

Please let me know if there is any fix for this also as we have already escaped 
value in property file with \.

So it should not be change after any other value in property file.

Thanks

. 

> 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
>
>
> 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)


[jira] [Commented] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-08 Thread Amitabh Pandey (JIRA)

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

Amitabh Pandey commented on CONFIGURATION-700:
--

Hi Heger,Thanks for the reply.As per your suggestion I have used 
commons-configuration2-2.0.jar jar.

Now found one of my issue has been resolved. Now slash is coming properly after 
modification.

Thanks for this.

Here is my code which I am using

FileBasedConfigurationBuilder 
{color:#6a3e3e}builder{color} = *{color:#7f0055}new{color}* 
FileBasedConfigurationBuilder(

 PropertiesConfiguration.*{color:#7f0055}class{color}*)

 .configure(*{color:#7f0055}new{color}* 
Parameters().properties().setFileName({color:#2a00ff}"Test.properties"{color})

 .setThrowExceptionOnMissing(*{color:#7f0055}true{color}*));

 PropertiesConfiguration {color:#6a3e3e}config{color} = 
{color:#6a3e3e}builder{color}.getConfiguration();

{color:#6a3e3e}config{color}.setProperty({color:#2a00ff}"Id"{color}, 
{color:#2a00ff}"3"{color});

{color:#6a3e3e}builder{color}.save();

 System.*_{color:#c0}out{color}_*.println({color:#2a00ff}"config.properties 
updated Successfully!!"{color});

Now still one issue is pending of backslash.Now it is not removing as 
previously but it is getting converted in two backslash. Below is the sample

*Before:  C\:ABC.net/wsdl*

*After updation*

*C\\:ABC.net/wsdl***

Please let me know if there is any fix for this also as we have already escaped 
value in property file with \.

So it should not be change after any other value in property file.

Thanks

. 

> 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
>
>
> 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)


[jira] [Updated] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-07 Thread Amitabh Pandey (JIRA)

 [ 
https://issues.apache.org/jira/browse/CONFIGURATION-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amitabh Pandey updated CONFIGURATION-700:
-
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.

  was:
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

Now it is getting change to below after modification

C:\/\/ABC.net

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.


> 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
>
>
> 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)


[jira] [Created] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/)

2018-05-07 Thread Amitabh Pandey (JIRA)
Amitabh Pandey created CONFIGURATION-700:


 Summary: 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
 Fix For: 1.10


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

Now it is getting change to below after modification

C:\/\/ABC.net

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)