ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21947] - Junit Task - Xml reporter don't work well
Date Thu, 31 Jul 2003 20:08:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21947>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21947

Junit Task - Xml reporter don't work well





------- Additional Comments From antoine@apache.org  2003-07-31 20:08 -------
the line 151 of DOMElementWriter.java is the one doing out.write(lSep); 
            case Node.ELEMENT_NODE:
                if (!hasChildren) {
                    out.write(lSep);
                    hasChildren = true;
                }
                write((Element) child, out, indent + 1, indentWith);
                break;
Can it be that there is no system property line.separator in your Java Virtual 
Machine ?

lSep is initialized like this :
    private static String lSep = System.getProperty("line.separator");

try to run this build snippet
<project default="default">
  <target name="default">
   <echoproperties/>
  </target>
</project>  
look in the output if line.separator is defined.
If it is not defined, then you need to start ant with
ant -D"line.separator=
"

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message