ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Cannot delete jar files
Date Wed, 08 Nov 2000 07:51:50 GMT
>>>>> "WS" == William Settle <William.Settle@alltel.com> writes:

 WS> I jar two sets of packages and for discussion sake, I'll call
 WS> them a.jar and b.jar.  Both files are included in my classpath

[...]

 WS> After a successful build everything's fine unless I re-run the
 WS> build.  My "clean" target attempts to delete existing jars but
 WS> fails with a message that says:

 WS> BUILD FAILED C:\autoBuild\build.xml:23: Unable to delete file
 WS> D:\develop\jar\a.jar

I think you will never be able to delete a file that is in the JVM's
CLASSPATH on Windows because the JVM locks it (and I vaguely remember
it won't release that lock even if you don't need the file).

Don't know of a workaround, sorry.

Stefan

Mime
View raw message