[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Executing a P2 traverse query

The PermissiveSlicer (in org.eclipse.equinox.p2.director) does this.
Note that depending the set of repos you have enabled. this approach (like the query) may get you more than what is actually necessary.

Also you may be interested in the mirrorApplication (and ant task).

On 2010-12-09, at 5:21 PM, David Orme wrote:

Hi all,

I'm trying to execute a P2 query that can chase down all IUs resulting from starting with several features and traversing the tree of IUs and included features until all dependencies are satisfied.

I found the example of how to construct such a query at wiki.eclipse.org/Query_Language_for_p2, but can't work out how to run it against a set of inputs.

It seems that I need an IQueryable to execute against and some way to specify the set of Features to use as roots.

I've got an IQueryable, (and can successfully createIUAnyQuery() against it), but haven't been able to work out how to extend this to query for the subset that is reachable from a set of Features that are being treated as roots and are available via the IQueryable.

Any pointers to code snippets or anything else would be welcome.

Thanks in advance,

Dave Orme

p2-dev mailing list