views:

2671

answers:

3

After update, old Eclipse plugins remain in "plugins" folder (there are also leftovers in "features" folder).

Is there a way to remove those automatically?

A: 

Eclipse allows you to revert back to any previous configuration (go to the Help menu, then "Software Updates"). My guess is that Eclipse won't remove these old versions, or this functionality would no longer work.

If when you restart Eclipse you provide the "-clean" argument, it performs various cleanup operations, but for reasons stated above I don't think it will remove old plugins/features.

Don
+1  A: 

With Ganymede (3.4), the correct way to manage your plugins would be to drop them in the 'dropins' folder:

\[eclipse\]/dropins/eclemma1.3.1/eclipse/(plugins|features)

That plugin will be detected by the 'p2' provisioning mechanism and used, but not copied in the plugins and features directories of eclipse. It stays in the dropins folder.

When you will drop eclemma1.3.2, all you have to do is delete eclemma1.3.1 from your dropins directory, and that old version is gone.

VonC
I have Aptana, FileSync, AJDT and whatnot, all installed from update sites. They all deployed to "plugins". The only one I have in "dropins" is jadclipse.
Marko Dumic
Ok, you can try to 'move' those plugins from eclipse/plugins and eclipse/feature to dropins/FileSync/eclipse/(plugins|features) and dropins/AJDT/eclipse/... and so on. And see if you can better manage your plugins from there.
VonC
Identifying right versions and moving that many jars by hand is the task equal to the question I asked. Also, I'd loose auto-update capability.
Marko Dumic
the auto-update should be preserved, since p2 manage plugins in dropins folder the same way it monitors the one in eclipse. As for moving the right files, just get a fresh install of eclipse (not Aptana) and do a compare folder btw. eclipse/... and Aptana/...: the extra ones need to be moved ;)
VonC
This one doesn't work for me either. Wherever the plugins are, in the "dropins" or "plugins" folder, after few updates old versions start to pile up (if indeed p2 manages "dropins" as well).
Marko Dumic
p2 is all about managing 'dropins' directory, and at least that gives you only one place where you have to remove old plugins. So when you say "start to pile up", do you mean "pile up in the dropins directory" ?
VonC
+1  A: 

See one of my page at http://www.myeclipsedev.com/articles/p2cleanup.htm

Q.S. wang