Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to best migrate projects from one workspace to another?
How to best migrate projects from one workspace to another? [message #333674] Mon, 22 December 2008 17:48 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
So far I always used eclipse with a single workspace only (which
consequently has grown to huge dimensions over time). Now I just used a
more quiet day before the holidays to split that workspace into three
different ones. I did so, by first making two copies of the existing one
and then starting to delete all projects that would not belong to a
workspace from it.

Even though taking great care I couldn't recall any more what each and
every project was about and so eventually I ended up with a few projects
being in the wrong workspace. What's the easiest or best way to move a
project from one workspace to another?

Just close the project, move the directory to the other workspace and
importing it as "existing project" into the new one? Or is there some
"built-in" way to "refactor" (i.e. move) a project?
I am asking, because the second method (if existing) might be better
and, e.g., properly adjust file paths (e.g. in build or jardesc files)
while doing so while the first method definitely would NOT do that...

Michael
Re: How to best migrate projects from one workspace to another? [message #333691 is a reply to message #333674] Tue, 23 December 2008 14:43 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 12/22/2008 12:48 PM, Michael Moser wrote:
> So far I always used eclipse with a single workspace only (which
> consequently has grown to huge dimensions over time). Now I just used a
> more quiet day before the holidays to split that workspace into three
> different ones. I did so, by first making two copies of the existing one
> and then starting to delete all projects that would not belong to a
> workspace from it.

First, it is not generally a good idea to copy a workspace to a new
location; workspaces contain absolute path references and other content
that makes them non-portable. It is always better to simply start by
letting Eclipse create a new one and then using export/import to move
your preferences and projects over from the old one.
File > Export will let you move projects around very easily. But I have
to ask why, if you have that much code, aren't you using a version
control system like CVS? Even for a lone developer, it has great
benefits (one of which being that you can easily get the code into any
workspace on any computer at any time).

Hope this helps,
Eric

>
> Even though taking great care I couldn't recall any more what each and
> every project was about and so eventually I ended up with a few projects
> being in the wrong workspace. What's the easiest or best way to move a
> project from one workspace to another?
>
> Just close the project, move the directory to the other workspace and
> importing it as "existing project" into the new one? Or is there some
> "built-in" way to "refactor" (i.e. move) a project?
> I am asking, because the second method (if existing) might be better
> and, e.g., properly adjust file paths (e.g. in build or jardesc files)
> while doing so while the first method definitely would NOT do that...
>
> Michael
>
>
>
Previous Topic:Editing posibility of interactive template lost when Eclipse loses focus
Next Topic:3.4 installation as a target platform
Goto Forum:
  


Current Time: Fri Apr 19 22:41:36 GMT 2024

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

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

Back to the top