Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » P2 query to get list of plugins contained in a feature
P2 query to get list of plugins contained in a feature [message #1406860] Mon, 11 August 2014 09:39 Go to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 199
Registered: July 2009
Location: Graz, Austria
Senior Member
I am trying to write a browser for P2 repositories. Currently I am able to retrieve a list of IUs from a repo. Is there a way to get a list of contained plugins from a IU of type feature.group?
I would like to extract plugin names & version info if possible.

thanks
Christian
Re: P2 query to get list of plugins contained in a feature [message #1406869 is a reply to message #1406860] Mon, 11 August 2014 10:13 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
First, check https://github.com/ifedorenko/p2-browser
It may already solve some of your problems.

Otherwise you need to resolve the requirement and look at the capabilities provided by the IU to see if it is a bundle. For the name, you can look at the properties. There is a helper in p2 code that help deal with getting the translation.
Re: P2 query to get list of plugins contained in a feature [message #1406899 is a reply to message #1406869] Mon, 11 August 2014 11:54 Go to previous messageGo to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 199
Registered: July 2009
Location: Graz, Austria
Senior Member
Thanks for the link. I already checked it out, but Igors browser does not go far enough for my intentions.

I was playing around with the requirements, but features consist of plug-ins, included featuers and dependencies.
So i can distinguish between included features and plugins by looking at the required IU. but how can I distinguish between included plug-ins and plug-in dependencies?
Somewhere on the newsgroups I found a hint to check for the version (exact version = plug-in, range or no version = dependency), which might give a hint but will not be a bullet-proof solution, right?
Re: P2 query to get list of plugins contained in a feature [message #1407232 is a reply to message #1406899] Tue, 12 August 2014 06:40 Go to previous message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 199
Registered: July 2009
Location: Graz, Austria
Senior Member
Pascal: could you point me to the helper class to resolve properties like %name?
Thanks
Previous Topic:How to load all bundle in a directory with config.ini?
Next Topic:org/eclipse/osgi/internal/resolver missing in Luna
Goto Forum:
  


Current Time: Mon Nov 19 22:02:50 GMT 2018

Powered by FUDForum. Page generated in 0.02966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top