Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Howto declare IU conflicts?
Howto declare IU conflicts? [message #696581] Thu, 14 July 2011 06:34
Stephan Herrmann is currently offline Stephan Herrmann
Messages: 979
Registered: July 2009
Senior Member
Is it possible with p2 to express negative dependencies, i.e., specifying an IU that must not be installed if my IU should be installed?
If so, could that be used in the following scenario:

bundle my.base_1.0.0

patch feature A_1.0.0
- replaces my.base_1.0.0 with my.base_1.0.0.EnhancementA

patch feature B_1.0.0
- replaces my.base_1.0.0 with my.base_1.0.0.EnhancementB

Here A and B are independent enhancements, neither subsumes the other.
If a user tries to install either A or B on top of the respective other I would like to see an error saying that both features are incompatible.

Later the provider of B might create
patch feature B_1.0.1
- replaces my.base[1.0.0,1.0.0.EnhancementA] with my.base_1.0.1.EnhancementB
Updating from A_1.0.0 to B_1.0.1 should be possible.

Is something along these lines possible?

thanks,
Stephan
Previous Topic:How to provide bundle updates on an update site
Next Topic:build updatesite outside of eclipse IDE
Goto Forum:
  


Current Time: Sat Jul 26 13:32:50 EDT 2014

Powered by FUDForum. Page generated in 0.01595 seconds