ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48746] exec task sometimes inserts extraneous newlines
Date Tue, 25 May 2010 16:46:20 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48746

Jesse Glick <jglick@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                URL|                            |http://netbeans.org/bugzill
                   |                            |a/show_bug.cgi?id=186629
                 CC|                            |jglick@netbeans.org
             Blocks|                            |5003
         Resolution|FIXED                       |

--- Comment #4 from Jesse Glick <jglick@netbeans.org> 2010-05-25 12:46:15 EDT ---
The patch causes a regression in stream handling inside NetBeans: under some
circumstances, an <exec> gobbles up all subsequent output from Ant! I recommend
this patch be rolled back for 1.8.2.

I am not sure if there is any reliable fix for the originally reported bug; Ant
tries to log messages corresponding to complete lines, even in case the final
\n is missing; but if it receives some characters without a newline it simply
cannot know whether or not more characters are coming in the same line, so it
just waits a short while to see if any arrive. Increasing
StreamPumper.POLL_INTERVAL might reduce the likelihood of problems (untested).

Why would a test be checking the output of Ant's log, anyway? This should be
considered informational. You can capture the output of <exec> to a file if it
must be exact.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message