commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <oliver.he...@oliver-heger.de>
Subject Re: How to enter string ',' in configuration file in Commons Configuration?
Date Mon, 13 Aug 2007 07:14:07 GMT
ying lcs wrote:
> Hi,
> 
> In my configuration xml file, I have:
> <myconfig>value1, value2, value3</myconfig>
> 
> but after I read it, I only get the value 'value1'.  Everything after
> the first ',' looks like gone.
> 
> how can I make Commons Configuration so that it does not strip out
> everything after ','?
> 
Per default the ',' is interpreted as list delimiter character. To
disable this call setDelimiterParsingDisabled(true) (defined in
AbstractConfiguration) before you load your configuration.

Oliver

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


Mime
View raw message