[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[p2-dev] How to query feature's plugins/IUs from p2 metadata?
- From: <Mika.Immonen@xxxxxxxxx>
- Date: Tue, 25 May 2010 13:53:30 +0300
- Accept-language: en-US
- Acceptlanguage: en-US
- Delivered-to: email@example.com
- Thread-index: Acr7+PX5vvUEQqFaT0qB6Mkx8nPrMw==
- Thread-topic: How to query feature's plugins/IUs from p2 metadata?
I'd need to query plugins that belong to a certain feature (defined with <plugin>-elements on feature.xml).
My current functionality gets the requirements with org.eclipse.equinox.p2.metadata.getRequirements() method and then removes those requirements that are not found as installable units on repository.
Drawback of this approach is it lists even those requirements that are not listed as <plugin> in the feature.xml.
The query also lists feature itself not just the plugins. Features seem to have (org.eclipse.update.install.features=true) filter defined on metadata, but can I trust that all features have it and no plugin will have it?
So in short: is it possible to get a listing of <plugin> elements defined for a feature?
Mika Immonen, Senior Software Developer
Tieto Finland Oy, R&D Services