1

An export of the Eclipse preferences looks a lot like a Properties file. Is this correct?

I'd like to share preferences with my team and for that, I need to filter the data (update/remove local paths, etc). Does anyone know any tools for this?

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820

3 Answers3

1

You might want to have a look at Workspace Mechanic for Eclipse:

The Workspace Mechanic automates maintenance of your Eclipse environment by tweaking preferences, adding extension locations, and so on. You can use it to:

  • Create a consistent environment among groups as large as the entire company, your local team, or even among your own many workspaces
  • Save time setting up new workspaces
  • Create tasks that ensure your favorite new preferences are applied to all your current and future workspaces. (This is one of our favorite features!)
Community
  • 1
  • 1
Tonny Madsen
  • 12,628
  • 4
  • 31
  • 70
  • +1 Unfortunately, the tool doesn't work for me (no menus/icons are added to the UI after installation). – Aaron Digulla Aug 15 '11 at 10:22
  • I have used it in a project with good result. Unfortunately, it uses workspace wide preferences, which isn't good in many circumstances where you work on multiple development projects - e.g. as a consultant... May be they fix this in a next version :-) – Tonny Madsen Aug 15 '11 at 10:25
0

Yes.

Preferences in Eclipse are implemented by org.eclipse.core.internal.preferences.EclipsePreferences. The save(IPath location) method will convert the internal structure to a Properties instance using convertToProperties() and then write the result to disk.

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
0

If you have project-specific preferences, they will be stored in the .settings directory of you project.
That means you can add them directly in your VCS and share them through version control.

There is no native tool for filter them, but if you are using a Git repo, you can add filter drivers for making sure you ignore any path-specific changes.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250