On 13 Sep 2016, at 07:23, Carsten Gräf <eva...@gmail.com> wrote:Hi everybody,I've got this third-party OSGi bundle with this in its manifest file:Bundle-ClassPath ...Embed-Dependency *Embed-Transitive trueEmbedded-Artifacts ...Export-Package ...Whatever you might think about this approach, I wonder: should bndtools be able to resolve classes from the exported-packages?I got lots of "The import x.y.z cannot be resolved" errors, but the classes are there, contained in jar files (root dir), referenced inBundle-ClassPath and in Embedded-Artifacts, things _seem_ to be ok.
This is the first time I've ever seen the "Embedded-Artifacts"-Instruction and I could not find much about it (other than in the maven bundleplugin, with which you can create such "I-carry-all-my-transitive-dependencies-with-me"-bundles).So my question is: is this supported by bndtools at all?Thanks for your help (and bnd/bndtools in general ;))Carsten
--
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.
Can you clarify the following statement:On 13 Sep 2016, at 07:23, Carsten Gräf <eva...@gmail.com> wrote:Hi everybody,I've got this third-party OSGi bundle with this in its manifest file:Bundle-ClassPath ...Embed-Dependency *Embed-Transitive trueEmbedded-Artifacts ...Export-Package ...Whatever you might think about this approach, I wonder: should bndtools be able to resolve classes from the exported-packages?I got lots of "The import x.y.z cannot be resolved" errors, but the classes are there, contained in jar files (root dir), referenced inBundle-ClassPath and in Embedded-Artifacts, things _seem_ to be ok.If the classes are in the root of the bundle then we should be able to see them at build time. Otherwise no we cannot.The simple reason for this is that Java compilers don’t support nested JARs, nor to they understand the Bundle-ClassPath manifest header. This is a capability offered by OSGi at runtime only.This is the first time I've ever seen the "Embedded-Artifacts"-Instruction and I could not find much about it (other than in the maven bundleplugin, with which you can create such "I-carry-all-my-transitive-dependencies-with-me"-bundles).
So my question is: is this supported by bndtools at all?Thanks for your help (and bnd/bndtools in general ;))Carsten
--
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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
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.
--
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.
--
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.
--
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.
The bnd command line tool has a flatten option:It flattens the classpath and removes the Bundel-Classpath entries and header.
$ bnd flatten help
NAME
flatten - Flatten a bundle by expanding all entries on the
Bundle-ClassPath
SYNOPSIS
flatten <input> <output>
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-users+unsubscribe@googlegroups.com.
--
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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
------
BJ
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-users+unsubscribe@googlegroups.com.