You should be able to add a negative requirement to org.eclipse.ui.editors (or 
even org.eclipse.ui.ide) from the IU of your plugin. This needs to be done by 
adding a p2.inf to one of your feature or plugin.
The following p2.inf should work (though I have not tested it).

requires.0.namespace = org.eclipse.equinox.p2.iu
requires.0.name = org.eclipse.ui.ide
requires.0.min = 0
requires.0.max = 0

HTH

Pascal


From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]]<mailto:[mailto:[email protected]]> 
On Behalf Of Eddie Galvez
Sent: September-19-12 12:04 PM
To: [email protected]<mailto:[email protected]>
Subject: [p2-dev] Can p2.inf alter greedy attributes for a bundle you depend on?

Hello everyone,

I've got a PDE build, with p2.gathering=true, of an RCP app that uses some 
Mylyn bundles. There's a bundle (org.eclipse.mylyn.commons.ui.manifest) that 
has an optional dependency on org.eclipse.ui.editors (via MANIFEST.MF saying 
"org.eclipse.ui.editors;resolution:=optional").

I need my RCP NOT to take that optional dependency (ultimately it gets us 
org.eclipse.ui.ide and contributions to the File menu like Open File...!).

I cannot change the mylyn bundle's MANIFEST.MF to add x-greedy=false... so what 
is my solution?

Can I actually put a p2.inf (next to my rcp .product file) that instructs p2 
NOT to grab the optional dependencies that /mylyn/ is requesting?

Thank you!

-          Eddie

_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to