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

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 | == $0).traverse(parent | parent.requirements.collect(rc | select(iu | iu ~= rc)).flatten())",

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

The query only returns "". 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 Nov 25 00:14:02 GMT 2015

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

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