[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

On 02/23/2010 07:04 PM, Thomas Watson wrote:

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'))");

Yes, that will work. It's actually a short notation of:

everything.select(iu | iu.providedCapabilities.exists(p | p.namespace == 'osgi.bundle')).latest()

- thomas