Alessandro Mottadelli wrote:
BJ Hargrave wrote:
You can't. You can only export packages that your bundle contains. If
your bundle imports a package, then your bundle cannot also export it.
BJ Hargrave
mmmmm..... why this limitation? It would be very useful to reexport a
package if the dependencies between bundles are expressed via
require-bundle (the "normal" eclipse way).
If I have a plugin A that requires plugin B and I decide to take some
package out of B to be able to distribute them independently it would
be nice not to change the plugin A and simply reexport from B packages
that are now elsewhere.
Am I missing something?
Yes! Bundles import packages. There is no dependency of Bundle A on
Bundle B. Bundle A has dependencies on packages (say X, Y and Z).
Bundle B may initially provide all 3 of these packages. However, if
Bundle B is refactored so that it only provides packages X and Y and
Bundle C provides package Z, Bundle A doesn't need to change - but you
will need to change the set of deployed bundles to include Bundle C.