How to correctly handle split packages between org.hamcrest and org.hamcrest.library version 1.3.0? #5
-
I'm concerned about how to properly generate split package information for org.hamcrest and org.hamcrest.library versions 1.3.0: Here is what the Orbit EBR versions look like:
and this:
While update the recipe to include org.hamcrest.libary, I changed it to this to produce the spit package directives:
That generates this:
and this:
Can the fact that org.hamcrest now exports Similarly for org.hamcrest.library, which looks pretty much like before, but I avoided the use of the require bundle. I think that's correct, right? I'm just concerned that I really don't understand this well and done know where to find good information about what's correct and about the implications. E.g., what happens if these directives were missing/overlooked? @HannesWell Before I mess something up, your insights would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
With For the case of
The general Dependencies main section als contains a few words about attributes and directives: In this case it makes IMHO more sense to have a
Then if one wants to import the
If the package from the library bundle shall be used, one declares:
Since the
In order to generate the suggested attributs/directive, you could probably use the following BND-instructions(have not tried it out), but the idea is to use the replacestring macro to extract the core/library suffix from the bundle-symbolic name
For PDE there is currently and open Issue and a pending PR to help the user to add mandatory attributes: |
Beta Was this translation helpful? Give feedback.
With
org.hamcrest;library=split
you export the packageorg.hamcrest
with an additional attributelibrary
whose value issplit
.Both the attribute name and its value can be chosen arbitrarily, but if you reference them in an
Import-Package
header they must match the specified names/values in the exports as …