How to automatically configure Eclipse workspace

Mateusz Kubuszok

I want to know if there is some good way to automatically configure Eclipse workspace of newly checked out project.

I've got a project where I use gradle to both build and configure all of its subprojects. Since I want to enforce some good practices I also use e.g. FindBugs plugin, and tweaked Eclipse configuration (more/better compiler warnings, formatting, favorites, save actions and so on).

I think that storing .metadata directory in git is not a good idea - a lot of settings works only for certain version and breaks after update, some settings are stored in binary files and so on.

Build-in import/export tool handles only some settings - AFAIK it leaves e.g. save actions, favorites and formatting alone and don't handle them.

Then there's Workspace Mechanic plugin that allows to record settings change - but it doesn't allow to update existing record, only create new file or override old one, which leaves me with a lot of tasks to run - and it's not bug free: several times file_export_version=3.0 line was placed in a wrong place, so some settings couldn't be imported until I fixed that manually, and few times after import installation stopped working correctly... (even though I imported settings that I just exported!).

Do you have some good, automated, portable solution? Perhaps some tweaked way of using already mentioned tools? It might be more complicated that just running one script - I just want to make sure that all of changes are applied, I didn't miss anything, I don't have to change each and every option manually and it will still work when I apply it to an upgraded Eclipse.

FlasH from Ru

There's a Workspace Preferences Transferrer that might help you. It allows you to transfer pretty much all (yeah, not just all) of the current workspace preferences to the new one when switching.

For my personal case it misses only one setting (look'n'feel) - so all in all it saves a lot of time compared to doing it manually.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

how to get workspace path in eclipse?

How to tell Eclipse Workspace?

How configure eclipse for jsp formatting?

How to change the default Eclipse startup workspace?

How do I configure eclipse to automatically refresh a project as part of it's build?

How to change workspace JRE in Eclipse

how to recover a corrupt workspace in eclipse?

How to configure Checkstyle in Eclipse for an maven project automatically

How to configure Eclipse to automatically insert import statements for classes with a single package match

Configure Eclipse workspace automatically

How to change the Eclipse default workspace?

How to delete a workspace in Eclipse?

how to configure less in eclipse?

How to configure Eclipse to automatically resolve and build multiple maven modules?

How to disable Jenkins automatically cleanup workspace?

How can I save workspace as... in eclipse?

How to configure workspace layout?

How to configure Nutch in Eclipse for SOLR

FindBugs Eclipse plugin: is there a way to set "Run automatically," and "(also on full build)" options on workspace level?

How to configure Eclipse and Android SDK

How to configure the ColdFusion Eclipse debugger

How to check if eclipse workspace is locked

How to configure workspace with egit/eclipse so my changes go to branch on fork

How to migrate entire Eclipse workspace to Android Studio?

How to configure maven in eclipse mars

How to get the plugins in Eclipse workspace

How to prevent Firefox to moves automatically from one workspace to active workspace when hit an URL on that active workspace

How to configure TFS 2018 shell extension to use the right workspace?

How to configure pymongo to automatically marshal and unmarshal protobufs