How to find a list of installed Eclipse functions from an external program?

I am preparing a Windows installer for my Eclipse plugin. I want to install it in the target eclipse product using the P2 director. At the moment, I am only targeting Eclipse 3.5.

The installer must verify that the required components / plugins are already installed. I am not sure how to do this. (Another reason for this check is to choose which other features to install, as I will link some prerequisites in the installer).

A simple solution is to study eclipse / features / and eclipse / plugins / directories, but plugins can also be installed elsewhere: the dropins directory and linked through the links directory.

I would like to get a list of installed fetures and plugins from P2 (profile?), If possible. Is there any way to do this? Any better solutions?

+6
installer eclipse p2
source share
2 answers

Look at agent P2 , he does what you need. View the source code to see how it interacts with the repository. You can use p2 director to optimize the actual installation.

Equinox Incubator also has some useful links.

+5
source share

At http://wiki.eclipse.org/Equinox_p2_Getting_Started they talk about the eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info :

The bundles.info file contains a list of all plug-ins installed on the current system. At startup, all the plugins listed in this file are provided by OSGi as the exact set of plug-ins to run. Any additional plugins in the plugins directory or elsewhere are ignored .... However, it is useful to know about this file so that you can see exactly what is installed on the system in which you are working.

Well, this is not a feature list, but the plugin list is good too.

+2
source share

All Articles