Reputation: 360
Often I would see something like :
<Import-Package>
package-a,
package-b,
package-c,
*
</Import-Package>
What I don't get is the use of the wild card *
, why bother specifying package-a, package-b ...
if at the end we use *
I think I don't correctly understand the use of the wild card ...
Upvotes: 0
Views: 894
Reputation: 9384
The wildcard means that Bnd will process the class files included in the bundle for references to types not included in the bundle. Then the necessary packages will be added to the Import-Package
header.
Explicitly listing packages can be used when a package is not visible to Bnd's type searching, for example dynamic class loading, or you need specify some attributes on the package.
Upvotes: 3