I am preparing windows installer for my Eclipse plugin. I want install it into target eclipse product using P2 director. I am targetting only Eclipse 3.5 for now.
Installer should check that prerequisite features/plugins are already installed. I am not sure how to do this check. (Other reason for this check is to choose what other features to install, as I will bundle some prerequisites in the installer).
Easy solution is to look into eclipse/features/ and eclipse/plugins/ directories, but plugins may be installed elsewhere too: dropins directory and linked via links directory.
I would like to get list of installed fetures and plugins from P2 (profile?), if possible. Is there any way to do this? Any better solutions?
Inside Eclipse, click on 'Help' tab in the left upper corner of the screen and then in 'About Eclipse IDE'. A pop-up window will appear. In the bottom of this window, there are two buttons 'Installation details' and 'Close'. Click on 'Installation details'.
As far as I know, Eclipse stores its plugins in its installation directory ( eclipse ). They might reside in eclipse/plugins or eclipse/dropins . You can copy the whole eclipse directory from your old box.
This needs to be done for every workspace. To remove a plug-in you need to remove the JAR file from the "plugins" directory, located in your Eclipse installation directory. Under Indigo/3.7 the "Help > About Eclipse > Installation Details > Installed Software tab > Uninstall..." option works.
Look at Help -> About Eclipse IDE. This will tell which product and version thereof that you have installed.
Have a look at the P2 agent, it does what you are after. Browse the source code to see how it interacts with the repository. You can use the p2 director to streamline the actual installation.
The Equinox Incubator also has a number of useful links
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With