[jdom-interest] problem with jdom in linux

Laurent Bihanic laurent.bihanic at atosorigin.com
Fri Apr 4 09:52:46 PST 2003


Blohm, Ed wrote:
> I am having a problem where my JUnit tests are running on windows but not on
> Linux.  I am using JDOM to create an xml message.  The output looks correct
> but the assertion fails for the comparison between expected output and the
> output JDOM gives me.  The test does run under windows, but fails on linux
> and if I format the message myself (using the system line.seperator) the
> test passes.  I was wondering if anyone else had run into this problem and
> if JDOM might not be using the system property for line.seperator somewhere.
> Thanks for the help in advance.

XMLOutputter sets the default line separator to "\r\n", regardless the platform.

Laurent




More information about the jdom-interest mailing list