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 8689] - AntClassLoader still leaks memory.
Date Wed, 31 Mar 2004 10:00:21 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=8689>.
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=8689

AntClassLoader still leaks memory.

mm_aa@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Normal                      |Critical
           Priority|Other                       |Medium



------- Additional Comments From mm_aa@yahoo.com  2004-03-31 10:00 -------
I was able to create a patch, which solves the problem. However it introduces
another one:

antcall task now prints "BUILD SUCCESSFUL" at the end, and master build doesn't
show the correct build time. Another cleaner way should be found.

*** src/main/org/apache/tools/ant/AntClassLoader.java	Wed Mar 31 13:53:00 2004
--- src/main/org/apache/tools/ant/AntClassLoader.java	Wed Mar 31 13:53:00 2004
***************
*** 380,387 ****
--- 380,390 ----
              if (target != null && !"".equals(target)) {
                  try {
                      log("Entering " + antFile + "...", Project.MSG_VERBOSE);
+                     newProject.fireBuildStarted();
                      newProject.executeTarget(target);
+                     newProject.fireBuildFinished(null);
                  } catch (BuildException ex) {
+                     newProject.fireBuildFinished(ex);
                      throw ProjectHelper.addLocationToBuildException(
                          ex, getLocation());
                } finally {

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


Mime
View raw message