This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When an Ant build is stopped using action "Stop Build/Run", the attached AntLogger objects are not notified of a finished build (AntLogger.buildFinished(...)). Possible causes have been drawn by Jesse Glick in his comment to issue #82082. This bug seems to be 100% reproducible on my system (NetBeans 6.0 dev. build 060807, JDK 1.6.0-b94, Fedora Core 4 Linux, Intel PC 32-bit).
I will try to reproduce.
Reproduced and easily fixed. Stop Build/Run was setting the stop flag in NbBuildLogger. When ThreadDeath was thrown, it was caught in BridgeImpl as expected. Then projectFinished was called. But this called checkForStop(), which then stopped the thread (again!) before notifying listeners. Need to proceed with the projectFinished method, and also turn off the stop flag as it will interfere with Ant cleanup code. Also improving the standard logger to properly print "BUILD STOPPED" when that is what happened (i.e. do not treat it as a build failure). Issue #81623 seems to be fixed by this, so please verify and close that if you want. Checking in src/org/apache/tools/ant/module/run/Bundle.properties; /shared/data/ccvs/repository/ant/src/org/apache/tools/ant/module/run/Bundle.properties,v <-- Bundle.properties new revision: 1.30; previous revision: 1.29 done Checking in src/org/apache/tools/ant/module/run/StandardLogger.java; /shared/data/ccvs/repository/ant/src/org/apache/tools/ant/module/run/StandardLogger.java,v <-- StandardLogger.java new revision: 1.9; previous revision: 1.8 done Checking in src-bridge/org/apache/tools/ant/module/bridge/impl/NbBuildLogger.java; /shared/data/ccvs/repository/ant/src-bridge/org/apache/tools/ant/module/bridge/impl/NbBuildLogger.java,v <-- NbBuildLogger.java new revision: 1.27; previous revision: 1.26 done
Verified in a custom build 060811. The fix solves also issue #81623, indeed.