Judy Anderson | 2 Jan 2008 16:02
Favicon

RE: CVS task failure: cannot rename

Aha, indeed, the jar file was on my classpath.  In my experiments I didn't explicitly change classpath
within Ant, but I suppose it inherits from the environment.  I rebooted my machine and the problem went
away, but I may not have run the script that sets my default classpath when I ran the after-reboot test. 
Thanks for the tip.  I guess I need to rework stuff so that I make sure no CVS-controlled files are on
classpath before running the CVS tasks, and then re-add them when it's time to run the tasks that will
require the new jars.

-----Original Message-----
From: Rick Genter [mailto:rgenter <at> silverlink.com]
Sent: Sunday, December 30, 2007 3:09 PM
To: Ant Users List
Subject: RE: CVS task failure: cannot rename

> From: Judy Anderson [mailto:JAnderson <at> 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"/>
>
(Continue reading)


Gmane