ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ylan Segal" <y...@digiworks.tv>
Subject RE: "Unable to delete file" with Ant 1.4.1
Date Fri, 09 Nov 2001 22:53:52 GMT
I have encountered that deleting files in Windows sometimes fails when there
is another process using that file or sometimes the directory where that
file is stored.

Can you try to run ant again with every program closed except for the
command prompt from where you are running ant?

I attributed this problem in the past to how windows locks files, not on
ant. I can say that 99% of the times ant does delete files for me.

Just a thought.

Ylan.


> -----Original Message-----
> From: Lyle Johnson [mailto:ljohnson@resgen.com]
> Sent: Friday, November 09, 2001 4:44 PM
> To: ant-user@jakarta.apache.org
> Subject: "Unable to delete file" with Ant 1.4.1
>
>
> We've recently upgraded from Ant 1.3 to Ant 1.4.1 and have started seeing
> that the "delete" task can fail to delete files that should be deleteable:
>
> 	C:\>ant clean
> 	Buildfile: build.xml
>
> 	clean:
> 	   [delete] Deleting: C:\src\bioinfo\biocore\dist\biocore.jar
>
> 	BUILD FAILED
>
> 	c:\src\bioinfo\biocore\build.xml:31: Unable to delete file
> C:\src\bioinfo\biocore\dist\biocore.jar
>
> I've seen several references to this bug in the mailing list archives, so
> it's not just me ;) The conclusion seems to be that there is an errant Ant
> task that's not releasing its lock on the file and this causes
> the delete to
> fail. Has any progress been made in tracking this one down?
>
> ---
> J. Lyle Johnson
> Principal Software Engineer
> Bioinformatics Department
> ResGen, Invitrogen Corporation
> 2130 S. Memorial Parkway
> Huntsville, Alabama 35801
> (800) 533-4363 x74430
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message