tags:

views:

482

answers:

2

I was wondering what would be the best approach you guys would take to relocate an entire Eclipse workspace? Assuming it's either versioned and exported, what would you do? Import the file? Checkout the whole thing from the repo? Thanks much in advance!

A: 

Maybe I'm missing something, but wouldn't you just start Eclipse, and either select the new workspace to use or select Switch workspace from the File menu?

matt b
I don't know, that's why I'm asking! :) I'm relocating the workspace to a whole different workstation though.
Nano Taboada
Yes. You should be able to make a copy of your workspace directory, and then just use the "Switch Workspace" menu item to point to the new location.
James Van Huis
+1  A: 

As you ask for the "best way" and already mention "versioned" I assume that you have some version control (as opposed to eclipses "Local History" involved. Basically, it's "best practice" to have version control, even when working alone. Use this and you're done.

This enables you not only to migrate to a new machine (as you mentioned in a comment to matt b's question) but to operate on both - the old and new machine - simultaneously should you discover that you rely on some external component only available in the old environment. This will also help you to get your workspace&repository clean of hardcoded library paths and rather rely on logical library names.

Olaf
Thanks much for the reply!
Nano Taboada