Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » p2 Query Language traverse issue(p2QL traverse help)
p2 Query Language traverse issue [message #689779] Tue, 28 June 2011 07:04
DK  is currently offline DK
Messages: 16
Registered: June 2010
Junior Member
Hi,

I want to install a bundle and also install it's required bundles.

I am using the following p2QL query but it doesn't find any of the dependencies:

IQuery<IInstallableUnit> iQuery = QueryUtil.createQuery(
      "latest(x | x.id == $0).traverse(parent | parent.requirements.collect(rc | select(iu | iu ~= rc)).flatten())",
      "my.bundles.name");            

Set<IInstallableUnit> toInstall = repository.query(iQuery, monitor).toUnmodifiableSet();


The query only returns "my.bundles.name". It does not return any of it's required bundles.
Previous Topic:Feature install with p2 API
Next Topic:P2: How installing MSI files using p2
Goto Forum:
  


Current Time: Wed Jul 30 21:28:02 EDT 2014

Powered by FUDForum. Page generated in 0.01494 seconds