tags:

views:

200

answers:

5

What do I have to do to copy a complete workspace from one computer to another and be simply able to continue working on it on the other computer?

A: 

You need to copy the whole folder which you select as your workspace at startup (or you once selected). All settings are included in there (even the opened files).

neo
+1  A: 

I use rsync for this. Works great.

Nate
+3  A: 

In general, a filesystem copy should be sufficient. If you run into problems with your projects, try removing the project from the workspace (without deleting the files) and then re-add the project, which will rebuild the metadata.

Will
Removing and adding the projects seems best (since the workspace contains absolute paths I believe?)
Veger
The workspace mostly uses relative paths. I've been successfully keeping a workspace on a flash drive, even when the flash drive gets assigned different drive letters on different computers. I'm assuming these are JDT projects we're talking about?
Will
+1  A: 

Make sure you shut down eclipse before you copy the workspace, and that the target computer has the same (or higher) eclipse version, including the same plugins.

Check that your workspace actually contains all the projects - when creating a project, it's possible to have its files situated outside the workspace.

If your projects use any external libraries installed on the system, install these on the other system in the same place (or adjust the paths).

Then, there should be no problem.

Michael Borgwardt
This is the correct answer. In addition, though, make sure you have the same plugins installed on the target computer (if you are using any additional plugins)
xcut
Another addition: copying the workspace will only work if you have no external resources (imported into the workspace but not copied during import), or these are in the same location on the source and target systems.
Fabian Steeg
Also, check your Target Platform Preferences, the default setup should be fine, but if you've edited the target, then you may need to adjust paths.
Andrew Niefer
A: 

You shouldn't have any issues with a straight filesystem copy as long as your eclipse versions match up.

If they don't, the project metadata may not load correctly

Jason M