ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48746] exec task sometimes inserts extraneous newlines
Date Tue, 25 May 2010 16:46:20 GMT

Jesse Glick <> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
                URL|                            |
                   |                            |a/show_bug.cgi?id=186629
                 CC|                            |
             Blocks|                            |5003
         Resolution|FIXED                       |

--- Comment #4 from Jesse Glick <> 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message