On Thu, Feb 17, 2011 at 11:21 AM, Thomas Hallgren <[email protected]> wrote:

>  On 2011-02-17 17:09, Paul Webster wrote:
>
>
>
>  So I'm not going to get something like this to work? :
>
> provlpquery this "select(parent |
> parent.properties['org.eclipse.equinox.p2.type.group'] == true &&
> parent.requirements.exists(rc | everything.select(iu | iu.id ==
> 'org.eclipse.core.e4.contexts' && iu ~= rc)))" true
>
> PW
>
>  Yes, that should work.
>
> - thomas
>
>
> _______________________________________________
> p2-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/p2-dev
>
>

Thanx for the suggestions, but it returns "No Units found".  Here's the same
kind of query that would apply to any 3.7 or 3.6 eclipse SDK:


osgi> provlpquery this "select(parent |
parent.properties['org.eclipse.equinox.p2.type.group'] == true &&
parent.requirements.exists(rc | everything.select(iu | iu.id ==
'org.eclipse.jface' && iu ~= rc)))" true
No units found


Is the problem that requirements.exists(*) contains a select(*) which
returns a collection ... but really you want the select(*).size > 0 ?

In this case I'm trying to match (at least :-) org.eclipse.rcp.feature.group
which has "<property name='org.eclipse.equinox.p2.type.group'
value='true'/>" and under <requires/>:
<required namespace='org.eclipse.equinox.p2.iu' name='org.eclipse.jface'
range='[3.7.0.I20110208-0800,3.7.0.I20110208-0800]'/>


PW

-- 
Paul Webster
Hi floor.  Make me a sammich! - GIR
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to