You can also disable the string splitting by changing the delimiter to a char unlikely to be found in your configuration:

XMLConfiguration conf = new XMLConfiguration();
conf.setDelimiter('\uffff');
conf.setFilename("conf.xml");
conf.load();

We will have a cleaner solution when Bug 29716 is fixed (http://issues.apache.org/bugzilla/show_bug.cgi?id=29716)

Emmanuel Bourg


Zsolt Koppany wrote:
Thank you Oliver,

unfortunately I cannot do that because we have to assure compatibility (with
the version where we didn't use commons-configuration), thus here is my
code:

List exprs = config.getList("[EMAIL PROTECTED]");
if (!exprs.isEmpty())
{
   sccTaskIdExpression = StringUtils.join(exprs.iterator(), ",").trim();
}

Is not nice but works.

Zsolt

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to