[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] How to move directories?

From: Mark Phippard <markphip_at_gmail.com>
Date: Tue, 11 Nov 2008 15:43:15 -0500

Sorry, I re-read this yesterday and thought I had replied.

On Tue, Nov 11, 2008 at 3:34 PM, Andrei Ivanov <andrei.ivanov_at_gmail.com> wrote:
> I need some advice on moving some directories...
> I create a new directory(/eservicesq-portal/src/main/webapp/WEB-INF/web/)
> and then I try to move
> another directory(/eservicesq-portal/src/main/webapp/WEB-INF/templates/,
> which is in the repository already) into it, but I get an exception:

Did you do Team > Add on "web" first? I'd do that and commit it. I
do not think you have to, but trying to get you past this.

> java.lang.IllegalArgumentException: Element not found:
> /eservicesq-portal/src/main/webapp/WEB-INF/web/templates/.svn.
> at org.eclipse.core.internal.watson.ElementTree.elementNotFound(ElementTree.java:255)
> at org.eclipse.core.internal.watson.ElementTree.createElement(ElementTree.java:183)
> at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:861)
> at org.eclipse.core.internal.resources.Workspace.createResource(Workspace.java:816)
> at org.eclipse.core.internal.localstore.RefreshLocalVisitor.createResource(RefreshLocalVisitor.java:80)
> at org.eclipse.core.internal.localstore.RefreshLocalAliasVisitor.createResource(RefreshLocalAliasVisitor.java:37)
> at org.eclipse.core.internal.localstore.RefreshLocalVisitor.synchronizeExistence(RefreshLocalVisitor.java:216)
> at org.eclipse.core.internal.localstore.RefreshLocalVisitor.visit(RefreshLocalVisitor.java:290)
> at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:102)
> at org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:759)
> at org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:743)
> at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1479)
> at org.tigris.subversion.subclipse.core.resources.SVNMoveDeleteHook.moveFolder(SVNMoveDeleteHook.java:208)

No obvious reason this should not work.

> If I try Team / Copy I get another error:
> copy D:/@work/shadow/projects/EServicesQ/eservicesq-portal/src/main/webapp/WEB-INF/templates
> D:/@work/shadow/projects/EServicesQ/eservicesq-portal/src/main/webapp/WEB-INF/web/templates
> Path is not a working copy directory
> svn: 'D:\@work\shadow\projects\EServicesQ\eservicesq-portal\src\main\webapp\WEB-INF\web'
> is not a working copy
> The system cannot find the path specified.
> svn: Can't open file
> 'D:\@work\shadow\projects\EServicesQ\eservicesq-portal\src\main\webapp\WEB-INF\web\.svn\entries':
> The system cannot find the path specified.

It is possible the previous move messed up your working copy. Have
you tried doing Update on the whole project? Curious if SVN says
there is a problem.

The problems sound similar though. In the first example, it does not
find the templates/.svn folder and in the second it says templates is
not a working copy. Having a .svn folder is one of the things that
makes it a working copy.

Are you sure you are starting from a clean and valid working copy?

> What should I do?

I would checkout again for starters. To be sure my working copy was
valid. You could create the folder and move it using the Repository
view. Then Eclipse could not get in the way of the operation. An
update would then pull in those changes to your working copy.

I cannot think of any reason this should not work locally, but it
sounds like your working copy might have some problems in it.

Before moving folders it is a very good idea to do Team > Update on
your Project so that it is updated to HEAD revision and is not a mixed
revision working copy. These things should not mess up the move
itself, but they can get in the way of committing the move.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-11-11 21:43:30 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.