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 28206] New: - Ant 1.6.1: LogOutputStream.flush writes blank lines to console
Date Mon, 05 Apr 2004 13:53:41 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=28206>.
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=28206

Ant 1.6.1: LogOutputStream.flush writes blank lines to console

           Summary: Ant 1.6.1: LogOutputStream.flush writes blank lines to
                    console
           Product: Ant
           Version: 1.6.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: mandar_amdekar@hotmail.com
                CC: mandar_amdekar@hotmail.com


While using Apply/ExecOn task that operates sequentially on more than 100 files,
we notice that the task prints 2 blank lines per apply execution, thus resulting
in many pages of blank lines, although the build goes through fine.

The problem may be on line 98 of org.apache.tools.ant.taskdefs.LogOutputStream
that tries to process a line from the buffer (which has not been written to -
but still results in an empty string), which results in a blank line getting
echoed on the console. Since LogOutputStream is created for both stdout and
stderr, invoking flush on both those cause 1 blank each.

Alternatively, the BuildListener needs to be smart to ignore these blank lines.

The same build.xml works fine (no extraneous blank lines) with ant 1.4.1 and 1.5.4

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


Mime
View raw message