ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Genter" <rgen...@silverlink.com>
Subject RE: CVS task failure: cannot rename
Date Sun, 30 Dec 2007 20:09:27 GMT
> From: Judy Anderson [mailto:JAnderson@rocketsoftware.com] 
> Sent: Tuesday, December 25, 2007 1:51 PM
> To: Ant Users List
> Subject: RE: CVS task failure: cannot rename
> 
> I have done some more experimentation with my problem.  It 
> only happens on binary files (flag "-kb").  CVS is doing a 
> different kind of update that involves delete/rename.  I 
> tried using <exec> on cvs with no help.
> 
> It seems that, although I can "del" such a file manually, I 
> cannot use ant's <delete> task on one.  So perhaps the 
> problem is unrelated to CVS (well, excepting that the file 
> was created by CVS.)
> 
> <delete file="c:/bt/mainline/bundle/bundle.jar"/>
> 
>    [delete] Deleting: c:\bt\mainline\bundle\bundle.jar
> 
> BUILD FAILED
> build.xml:9: Unable to delete file c:\bt\mainline\bundle\bundle.jar
> 
> So, now I wonder if there's some weirdness within Ant about 
> user permissions.  I can delete a file I created by hand.  I 
> cannot see any interesting difference in the Properties 
> dialog for either of these files in the explorer.  (The CVS 
> created files have a "Summary" tab, but my files don't.  It 
> is blank.)  I'm really mystified.  I wish that I had the 
> Windows error code that led the <delete> task to decide it 
> could not delete the file.

Judy,

Is it possible that the files in question are .jar files that are on the
classpath of other tasks that have been run during the build? If so,
it's possible that the JVM still has the .jar file open, in which case
you will not be able to delete it.
--
Rick Genter
Principal Software Engineer
Silverlink Communications
rgenter@silverlink.com
www.silverlink.com

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


Mime
View raw message