Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] How to query feature's plugins/IUs from p2 metadata?

Could you please tell more about what is the final goal?

Relying on the shape of the metadata can only get you so far since the mapping between features and metadata is not API and could be changed in the future.

On 2010-05-25, at 6:53 AM, <Mika.Immonen@xxxxxxxxx> <Mika.Immonen@xxxxxxxxx> wrote:

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?
Best regards,
Mika Immonen, Senior Software Developer
Tieto Finland Oy, R&D Services
p2-dev mailing list

Back to the top