Make sure that that you first disable the Delim parsing on the Configuration object and then load the property file.
-giriraj -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 18, 2007 2:01 PM To: Jakarta Commons Users List; Jakarta Commons Users List Cc: Oliver Heger Subject: Re: [Configuration]: Escaping list delimiter Thanks a lot. Also, AbstractConfiguration.setDelimiterParsingDisabled(true) does not seem to take effect. It continues to split the property values as fields based on the default delimiter. I am using 1.4. Is this a known issue? Thanks, /U -------------- Original message ---------------------- From: Oliver Heger <[EMAIL PROTECTED]> > [EMAIL PROTECTED] wrote: > > How can I escape list delimiter characters in property configuration? > > > > my.strings=silk,cotton # List of two strings > > my.strings=silk,cott\,on # List of two strings again > > my.strings=silk,cott,on # List of three strings > > > > However, escaping the list delimiter as above does not seem to work. > > How can I accomplish what I am trying to do? > > > > Thanks, > > > > /U > > > The backslash is the correct escaping character. But AFAIK it is > specially treated in Java properties files [1], so it has to be escaped > itself by using a duplicate backslash: > > my.strings = silk,cott\\,on > > HTH > Oliver > > [1] > http://java.sun.com/javase/6/docs/api/java/util/Properties.html#load(java.io .Rea > der) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]