How to keep an Eclipse installation in sync between multiple platforms with Dropbox?
Asked Answered
B

2

6

Setting up Eclipse on each machine I work it a real headache and I want to keep the Eclipse files and configuration in-sync between several machines.

I want to keep Eclipse in sync on OS X, Linux and Windows so I started getting the OS X version of eclipse because it has the app needed for OS X, as for the other two platforms it's easier to launch it.

What questions/problems I have:

  • What should I not sync?
  • Where can I put JDBC jar files so they are synced too? Is there a way to load them using a relative path?

Any success stories?

Note: this is not about getting the projects themselves in sync, for this there are all blends of SCM.

Berube answered 16/4, 2012 at 14:59 Comment(0)
G
3

You can not share the Eclipse installation directory or the workspace, but the projects themselves are easy to keep in sync using a version management system like cvs, svn, git, etc. I suppose you could store your project contents in a Dropbox folder (or similar file system syncing mechanism) and then just force Refresh when you sit down at a machine that was using those projects, but I've never tried it and would be wary that human error could lead to lost work or corruption of files.

The key is that, although workspaces themselves can't be shared, projects don't have to be located physically under the workspace folder on your file system. That's because the workspace is a logical container for projects, not necessarily a physical container. When creating a project you can specify an arbitrary file system location for the project contents. The default just happens to be under the workspace location. SO on each machine you'd have a separate workspace that imported the project(s) from wherever you are syncing them on your file system. That way the workspace is a tiny container that doesn't require much ongoing maintenance on each machine. I do this locally all the time - I have multiple workspaces on my machine, some of which include the same projects as others.

Gresham answered 16/4, 2012 at 20:25 Comment(2)
The issue at hand is that so much of the configuration of Eclipse, placement of tabs, formatting, etc. is stored within the Workspace. I can relate to the OP as I have installed it on a few machines, one of which is OS X which means no workspace sharing. This is not a unique problem to Eclipse though. Many IDE's don't make it easy or possible to share their full configuration across platforms.Brought
For workspace preferences, you can use File > Export and File > Import to easily move them from one workspace to another. Even better is using project-specific settings so that they live with the project(s) and are automatically applied when the project(s) is imported or checked-out into another workspace.Gresham
B
1

Most of the configuration of Eclipse is in the Workspace. And unfortunately, all the files in it are platform specific. I've tried doing something like this myself and had no luck. Asking questions in their IRC channel didn't leave me with hope either.

Brought answered 16/4, 2012 at 15:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.