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-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to