Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Using p2 expression or QL to query all IUs which provide a capability in a specific namespace

What if you wanted the latest version of the IU for a bundle?

new ExpressionContextQuery(IInstallableUnit.class, "latest(x | x.providedCapabilities.exists(p | p.namespace == 'osgi.bundle'))");

Tom



Inactive hide details for Thomas Hallgren ---02/23/2010 11:46:08 AM---Hi Tom,Thomas Hallgren ---02/23/2010 11:46:08 AM---Hi Tom,


From:

Thomas Hallgren <thomas@xxxxxxx>

To:

P2 developer discussions <p2-dev@xxxxxxxxxxx>

Date:

02/23/2010 11:46 AM

Subject:

Re: [p2-dev] Using p2 _expression_ or QL to query all IUs which provide a capability in a specific namespace




Hi Tom,

On 02/23/2010 05:38 PM, Thomas Watson wrote:
>
> What is the _expression_ in p2 QL for querying all IUs in a repository
> that provide a capability with a specific namespace? For example, all
> IUs providing the osgi.bundle namespace.
>
Try this:

 new ExpressionQuery(IInstallableUnit.class,
   "providedCapabilities.exists(p | p.namespace == 'osgi.bundle')");

> Is there some documentation on using the QL for querying provided
> capabilities in general?
>
All we have right now is the wiki page and it's not 100% up-to-date.
It's now next on my todo list.

http://wiki.eclipse.org/Query_Language_for_p2

HTH,
Thomas Hallgren

_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev


GIF image

GIF image


Back to the top