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 11:04
DK  is currently offline DK Friend
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: Sat Dec 20 16:34:54 GMT 2014

Powered by FUDForum. Page generated in 0.02317 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software