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 30662] New: - junitreport xml formatter change '<' into "&lt;"
Date Fri, 13 Aug 2004 23:39:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30662>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30662

junitreport xml formatter change '<' into "&lt;"

           Summary: junitreport xml formatter change '<' into "&lt;"
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: p2sam@yahoo.com


When using junit with the xml formatter, if I do System.out.println( "<" ); in
my FooBar_Test, the result is stored as "&lt;" in FooBar_Test.txt.

I know from the docs that some characters are illegal in XML:

http://ant.apache.org/manual/OptionalTasks/junit.html

"If you use the XML formatter, it may not include the same output that your
tests have written as some characters are illegal in XML documents and will be
dropped."

But when I opened the generated xml file, the entire content of the system.out
is stored inside CDATA.  And none of the angle brackets had been escaped into
&lt; or &gt;

So I'm just wondering if there's a way to dump the system.out without escaping
those illegal characters.  Namely, <, >, &, etc ...

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


Mime
View raw message