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 29113] New: - Messages with empty body of priority warn written to (xml)log
Date Thu, 20 May 2004 10:42: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=29113>.
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=29113

Messages with empty body of priority warn written to (xml)log

           Summary: Messages with empty body of priority warn written to
                    (xml)log
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: ajbanck@informatica.com


After running Ant, there are empty messages with priority warn written to the 
xml log, for example for the Javadoc task:
<message priority="warn"><![CDATA[]]></message>
Tools that parse the buildlog to count warnings/errors can think there are 
warnings during the build, while in fact this is not the case.

While it shouldn't be to hard to write the parser to skip warn messages with 
empty body, these shouldn't be written to the log.


Looking at the source in Javadoc.java, I would think(guess) these warn 
messages are written because the error output is written to such a message, 
but there is no error output:

JavadocOutputStream err = new JavadocOutputStream(Project.MSG_WARN);

So in the case there is nothing written to this stream, there should be no 
message written to the log.

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


Mime
View raw message