Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Cannot move project to other location
Cannot move project to other location [message #663441] Tue, 05 April 2011 06:06
Mikael Petterson is currently offline Mikael PettersonFriend
Messages: 156
Registered: July 2009
Senior Member

I am working on a plugin.
In the plugin I am trying to move the project to a new destination.

I use the following code:
IWorkspace w=ResourcesPlugin.getWorkspace();

IProject projHandle = w.getRoot().getProject(project.getName());


IProjectDescription desc=w.newProjectDescription(projHandle.getName());

//I set a new location for path.

desc.setLocation(new Path(getLocation().getLocation()));

try {


} catch (CoreException e) {

// TODO Auto-generated catch block




I get the following error in the console:

org.eclipse.core.internal.resources.ResourceException: Problems encountered while moving resources.

at org.eclipse.core.internal.resources.Project.move(Project.jav a:925)

at org.eclipse.core.internal.resources.Project.move(Project.jav a:884)

at net.sourceforge.eclipseccase.ui.wizard.share.SharingWizard$3 .run(

at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(

Contains: Resource already exists on disk: 'C:\Users\mike\tmp'.

Any ideas what's wrong?

Or is it better to copy files to new location ( using API)?

I am out of ideas...


Previous Topic:Helios 3.6.2 is slow and hangs often
Next Topic:remove command-line arguments from log file
Goto Forum:

Current Time: Wed Jan 27 17:30:36 GMT 2021

Powered by FUDForum. Page generated in 0.01865 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top