commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken <kenbeins...@googlemail.com>
Subject Re: escaped character
Date Sat, 03 May 2008 12:04:16 GMT
hi Oliver!

thanks for your response.

i created a simple project in eclipse, but it doesn't work
here's my environment:

JDK:java version "1.5.0_11"
OS: Microsoft WindowsXP Professional
Eclipse: Eclipse 3.3

there are the jars in my project:
Commons Configuration 1.5
commons-collections-3.2.1.jar
commons-lang-2.4.jar
commons-logging-1.1.1.jar
the content of config.properties :

------start----------------
#config.properties
ps = /
------end------------------



the content of TestConfiguration.java:

------start----------------
package test;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

public class TestConfiguration {
	public static void main(String[] args) {
		try {
			PropertiesConfiguration config =
				new PropertiesConfiguration("config.properties");
//			config.addProperty("aa", "aa");
			config.save();
		} catch (ConfigurationException e) {
			e.printStackTrace();
		}
	}
}
------end------------------






Oliver Heger wrote:
> Ken wrote:
>> hi,
>>
>> i'm using Commons Configuration for properties files.
>> a line in my file is "ps = /"
>> after and saved, it change to "ps = \/",
>>
>> Is there a way to keep it for "ps = /"
>>
>> Thanks
>> Ken
>>
> Ken,
> 
> with Commons Configuration 1.5 on Windows I am unable to reproduce this
> problem. The slash is not modified when the properties file is saved.
> 
> Which version of Commons Configuration do you use and what is your
> environment?
> 
> Is it possible that you send a test properties file and a short code
> fragment demonstrating the problem?
> 
> Thanks
> Oliver
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message