ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie Tsao" <jt...@atinera.com>
Subject RE: Can't delete a file (that has been used by Zip in a zipfileset ?)
Date Thu, 14 Jun 2001 17:08:11 GMT
Hi,

I had a similar problem (see my post "Ant Problems, Win 2000") with ANT
on Win 2K with jar files.  After much grief, and much help from this
mailing list, I was able to fix the problem by removing that jar file
from my CLASSPATH.  Basically, my script was setting the CLASSPATH
variable before calling ant, so I guess windows locked the jar somehow.
Maybe you have the same problem ?

Hope this helps,

Jamie

-----Original Message-----
From: Glenn McAllister [mailto:glenn@somanetworks.com]
Sent: Thursday, June 14, 2001 9:18 AM
To: ant-user@jakarta.apache.org
Subject: Re: Can't delete a file (that has been used by Zip in a
zipfileset ?)


Jérôme Lacoste wrote:

> I have a trouble to delete a file during a build.
>
> The file is not read-only.

Typically this problem comes up when another process has a handle on the
file.  Most often I've encountered this problem in Windows.  So it may
be that
the Windows java zip libraries are not being nice about letting go of
the
filehandle once the zip is created/manipulated/whatever.

Glenn McAllister


Mime
View raw message