tags:

views:

132

answers:

4

I have two eclipse directories, both are Galileo. One has plugin A installed, the another has plugin B. Now I want to have just one eclipse, is it save to just copy the plugins directory from one of the eclipses to the other?

+3  A: 

Yes, it is safe. This is one way (not the preferred one) to install new plugins.

tangens
Ok, so it works. Nice. I guess I can just zip my plugins folder for backup and copy it back to restore it.
Ron
+1  A: 

Yes, but I would recommend using a "shared dropins directory" to avoid the copy altogether.

Modify tour eclipse.ini for both installation:

-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/<myPath>/mySharedDropins

Sadly, when you originally install a plugin, you cannot install it directly in the shared dropins, so at least one copy is still necessary there.

VonC
Hmm... nice info, maybe I'll need it someday. Thanks.
Ron
A: 

An alternative to modifying the .ini file is using Link Files in your Dropins folders. The link files are simply text files with the extension .link. They contain a single (I think, never tried with multiple) line of text of the form:

path=<full path to an external folder>

The folder you reference should have two sub-folders: plugins and features, where you install your plugins. You can install multiple plugins in a single location. You can drop multiple link files, which means, you can maintain sets of plugins and drop them into different Eclipse installations (which is more flexible than using a shared dropins).

More information:

zvikico
+1  A: 

You can also install one plugin from another using p2. You add the other installed Eclipse as an update site, and you can select the installed plug-in (after unchecking the categorization).

For update site you the following path: /path/to/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile

Zoltán Ujhelyi
Hey, that works! And it feels "cleaner" than copying manually.
Ron