ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 5003] exec task does not return after executed command finished on Windows only
Date Thu, 06 Nov 2008 14:34:28 GMT

Stefan Bodewig <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|1.6                         |1.8.0

--- Comment #29 from Stefan Bodewig <>  2008-11-06 06:34:25 PST ---
a loooooooooooooooong time, I know.

Ant's code has changed a bit, so some extra work has become necessary.  That
other classes are now using StreamPumper as well didn't help either.

With the original patch (even if adapted) several unit tests of Ant would hang
and never return - I guess this has been true seven years ago as well.

One major problem I faced was that available() returns 0 on a closed stream
on some VMs (it did on Suns 1.4.2 for Windows, for example) and thus the
available trick doesn't work unless you are sure you are going to interrupt
the thread running StreamPumper eventually.

I've also noticed that the approach using available impacts performance
considerably, so I've restricted it to the platform (Windows) where it is
needed (like the original patch did, but for a different reason).

svn revision 711860 ( )

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

View raw message