Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep an eclipse workspace synchronized among two machines?

I have nearly identical Linux (Fedora) machines at home and at work and I keep my files on both machines synchronized using the excellent Unison program. I have been trying to keep an eclipse workspace synchronized across the two machines but this has failed. I tried both:

  1. Synchronize just the /workspace directory, badness due to plugin upgrades
  2. Synchronize both /workspace and my .eclipse/ director.

What happens is that I work in one machine, create new projects on eclipse, etc. Then unison. Then when I go to the other machine the projects will sometimes not appear, sometimes they will appear but eclipse cannot find the files, and sometimes (rarely) it works.

I don't understand why eclipse gets so confused since I have identical workspaces, eclipse versions, and even .eclipse directories.

like image 219
Jose M Vidal Avatar asked Oct 27 '09 12:10

Jose M Vidal


2 Answers

Have considered going through a source control repository? If privacy is a concern, there are private SVN spaces available (e.g. assembla).

I understand this technique will (at least) make it possible to synchronize the projects but probably not all the settings related to a workspace. It might be an option, no?

like image 117
jldupont Avatar answered Nov 02 '22 13:11

jldupont


Take a look at Pulse. It's an Eclipse distribution that can handle synchronization of workspace preferences across users and machines. It might be what you need.

like image 35
zvikico Avatar answered Nov 02 '22 13:11

zvikico