ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <>
Subject Re: svn commit: r1001756 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/helper/ src/main/org/apache/tools/ant/launch/ 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 ${}?

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" <> 
in JDK 7!)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message