ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <jesse.gl...@oracle.com>
Subject Re: svn commit: r1001756 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/helper/ProjectHelper2.java src/main/org/apache/tools/ant/launch/Locator.java src/tests/antunit/taskdefs/taskdef-test.xml
Date Mon, 27 Sep 2010 15:28:00 GMT
On 09/27/2010 10:49 AM, Stefan Bodewig wrote:
>   (2) The new tests create JARs that will be loaded by a classloader -
>     which means Ant cannot delete them because they remain locked until
>     the JVM has exited.

Can't this at least use something inside ${build.dir}, rather than ${java.io.tmpdir}?

Maybe <classloader reset="true" ...> could be used, if the to-do comment in it to close
the old loader were implemented? Or a project when finishing a build could close 
all of its outstanding class loader references automatically?

(And AntClassLoader should probably implement Closeable to match URLClassLoader and "automatic
resource management" <https://docs.google.com/View?id=ddv8ts74_3fs7483dp> 
in JDK 7!)


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


Mime
View raw message