commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ying lcs" <ying...@gmail.com>
Subject Re: How to enter string ',' in configuration file in Commons Configuration?
Date Tue, 14 Aug 2007 05:10:33 GMT
On 8/13/07, Oliver Heger <oliver.heger@oliver-heger.de> wrote:
> 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.
>
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