Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsInstalling fragment depending on the versions of already installed bundles
https://www.eclipse.org/forums/index.php/mv/msg/497640/1077862/#msg_1077862
I have a bundle say "B1", and two fragments "F1" and "F2". The goal of those 3 artifacts is to provide a functionality on top of "B2". B2 exists in two versions 1.0 and 2.0 (API break). F1 implements the functionality of B1 against the API 1.0 version of B2 and F2 does the same against the 2.0 version. B2's API is not exported from B1, it's for internal usage only.
I would like to offer only one feature "Feat" from my update site. The problem is then how to tell to p2 to install Feat=B1+F1 if B2 is already installed (or available from the repository) in version 1.0 or Feat=B1+F2 if B2 is available in version 2.0. Previously in similar situations, I had created 2 features and I tend to think it is avoidable.
Do you know how I would achieve such a thing? To me, it's a little bit like platform filters but for already installed bundles. I suspect that "requires.#.matchExp" in p2.inf files could help, but I don't find lot of examples/documentation about it. ]]>Mikael Barbero2013-08-02T08:37:32-00:00