Exceptions, errors, problems and issues encountered during java ee development. Of course, the same exception stack trace can often be caused by many problems. I want to keep track of at least some of the possible solutions.

Friday, February 15, 2008

SVN: The system cannot find the file specified. svn: Can't move source to dest. / Eclipse : Problems encountered while deleting resources.

I have a project in my workspace whose sole purpose is to keep jars for other projects' use. The jars are built elsewhere and submitted into SVN from where I update the project. There are three routes a jar can go from there to end up in another project's build path: be copied into the LIB folder of the project, be copied into lib/ext of the server, stay in the lib project and the other project will point to it directly.
I was updating the lib project and got and SVN error:
svn: In directory 'C:\HOSADE\MyEclipse Work\DEMO\MyLib\lib'
The system cannot find the file specified.
svn: Can't move source to dest
svn: Can't move 'C:\HOSADE\MyEclipse Work\DEMO\MyLib\lib\.svn\tmp\prop-base\Delegates.jar.svn-base' to 'C:\HOSADE\MyEclipse Work\DEMO\
MyLib\lib\.svn\prop-base\Delegates.jar.svn-base': The system cannot find the file specified.
Annoying. So I tried to delete the project altogether to check it out anew from repository. Nope. Wouldn't let me (from Eclipse):
Problems encountered while deleting resources.
Could not delete MyLib/Delegates.jar

I think if a project points to a jar in that project directly it has opened it and has a hold on it so until that hold is released deleting isn't allowed. Perhaps the SVN error is also caused by that.
I disconnected the lib project from the repository and closed all projects that referred to it. Than I was able to delete.
In any case pointing to it isn't a good idea anyway - jars should go into server's lib/ext (in my case they end up there anyway).