How to explore feature contents? [message #656128] |
Thu, 24 February 2011 10:08 |
Mikhail Kalkov Messages: 13 Registered: February 2011 |
Junior Member |
|
|
Hi all,
(1) Is there a way to see what plug-ins comprise a feature before installing it? (2) I am also wondering if there is a way to get a list of features that include a particular plug-in.
A use case for the first question is as follows: I have an installation of Eclipse Classic 3.6.1 with Eclipse SDK feature, and wonder what is there in the Eclipse Platform SDK feature. How can I know what comes with it short of installing everything? I am still puzzled and asked this question in a separate thread.
A use case for the second question is from real life as well. I want to know what feature I have to install in order to get a junit4 runtime plug-in. After extensive googling and experimenting I figured out that in Eclipse 3.5 I have to install Java Development Tools, but in Eclipse 3.6 it is enough to install "PDE JUnit Runner Support - Add-on" feature from the "EclipseRT Target Platform Components" category.
Regards,
Mikhail
[Updated on: Thu, 24 February 2011 15:20] Report message to a moderator
|
|
|
|
|
Re: How to explore feature contents? [message #1086662 is a reply to message #656214] |
Wed, 14 August 2013 14:17 |
Mikhail Kalkov Messages: 13 Registered: February 2011 |
Junior Member |
|
|
Just in case anybody stumbles upon this thread, here is how to answer the original question. First, we need to prepare the OSGi Console.
1. Start Eclipse and make sure that eventual proxy settings are properly configured (Window > Preferences > General > Network Connections).
2. Open Eclipse Console View and start a new Host OSGi Console
3. In the console type "start org.eclipse.equinox.p2.console"
Now, you can for example, run the following command to look up org.eclipse.m2e.sdk.feature in http://download.eclipse.org/technology/m2e/releases p2 repo and find all p2 installable units (IUs), which it includes (requires):
provlquery http://download.eclipse.org/technology/m2e/releases "select(latest(x|x.id=='org.eclipse.m2e.sdk.feature.feature.group').first(y|true), _, {par, iu | par.requirements.exists(rc|iu~=rc)})" true
If you want to answer the opposite question, and get the list of IUs, which require a given feature or plugin, you only need to replace par.requirements.exists(rc|iu~=rc) with iu.requirements.exists(rc|par~=rc).
The second best description of p2 query language after the source code itself, is available here: http://wiki.eclipse.org/Query_Language_for_p2
|
|
|
Powered by
FUDForum. Page generated in 0.03329 seconds