ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Settle" <William.Set...@alltel.com>
Subject Cannot delete jar files
Date Thu, 01 Jan 1970 00:00:00 GMT
I hope someone can tell me what I'm doing wrong.

In my build file I jar two sets of packages and for discussion sake, I'll call
them a.jar and b.jar.  Both files are included in my classpath because classes
in b.jar import classes from a.jar and is required at compile time (I delete the
source files after successful jar creation).  After a successful build
everything's fine unless I re-run the build.  My "clean" target attempts to
delete existing jars but fails with a message that says:

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

I am running Windows 2000 and if I try to delete the jar files from the command
line, I get a message saying that it cannot be deleted because another process
is using it.  However, I can go to Explorer and delete it from there without
error.

The only process I know of that opened the jar file would have been Javac.

Do anyone have any ideas?

Thanks in advance,
Bill

Mime
View raw message