Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Resolving requirement on A.PDE.Target.Platform
Resolving requirement on A.PDE.Target.Platform [message #571339] Wed, 18 August 2010 19:36
Tom France is currently offline Tom FranceFriend
Messages: 2
Registered: July 2010
Junior Member
Our dev team recently got bit using p2 director to headlessly build a product with dependencies on rap runtime components (emf.rap, in our case). As described in bug 307789, rap runtime components need special handling since they can break the Eclipse IDE (they export alternate and incompatible implementations of SWT interfaces). As such, features that include them have been marked with a special IU requirement with the namespace "A.PDE.Target.Platform". If you try to build a product that includes one of these restricted features, you'll get a somewhat cryptic and very IDE-centric error message ('...try unchecking 'Include Required Software'"). We looked around for a corresponding feature that provides this capability (after all, you can use these features in your target environment, so the PDE is doing something behind the scenes to resolve it) but we didn't find any. In the end, we got around the problem by including a p2.inf file in our product directory (i.e. co-located with the .product file that defines the root IU the p2 director uses). The p2.inf file adds the capability to the product IU that satisfies the corresponding requirement built into the rap runtime features. It looks like this:

provides.0.namespace = A.PDE.Target.Platform
provides.0.name = Cannot be installed into the IDE
provides.0.version = 1.0.0

(be sure not to quote the name value even though there are spaces, or you'll be bit a second time...)

I would be interested to know if this issue has been previously documented and if there is a better or more general solution to the problem. Is there another feature component that already provides this needed capability?
Previous Topic:Resolving requirement on A.PDE.Target.Platform
Next Topic:Headless Update KO with update site, KO with feature export, OK with product export
Goto Forum:
  


Current Time: Sat Dec 20 09:48:24 GMT 2014

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

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