--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
When you dynamically import packages, you generally are not picky about the package version. You dynamically import because someone else told you the class name to load. Generally your code will not have a strong dependency on the version of the package that class came in since you wont be using that type directly in your code. For example, you get the name of some codec class, you need to load the class but you may only refer to it by a super type which you have a normal package import for. This is why Bnd does not add version information to DIP.
--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There are macros like ${packageattribute;com.foo;version} but they only work on packages contained in the bundle being built. They don't tell you about packages on the -buildpath.Perhaps what you need it a post processing step which moves a set of packages from IP to DIP?
Would such a pull request be accepted in bnd 3.4?
Simon
--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It may be best to model dynamic imported packages as resolution:=dynamic which is how OSGi models them in the osgi.wiring.package namespace. Then for the manifest, the resolution:=dynamic packages are in DIP rather than IP. This will allow all the logic for imported packages to just "work" since they just have a different resolution than mandatory or optional. Devs can just add resolution:=dynamic to the packages in the bnd's files IP statement and there is no need to put a DIP statement in the bnd file. If there is a DIP in the bnd file, Bnd should add any resolution:=dynamic package from the IP statement to the specified DIP.We are trying to close down 3.4 now. If you can make a good PR in short order, we can include it but of course there are no guarantees.
Also the PR must come with a set of new tests!