Hi Henrik,

This should really be raised on the bndtools list, and I am cross-posting there.

> For the Service-Component header I had to fill in every component
> instead of *
> No big deal, but kind of tedious.

In a bndtools 4.0.0 workspace you shouldn’t need a Service-Component header at 
all (annotation scanning is on by default and should generate everything that 
you need).

> 2. I had to add a Service-Component header for each bundle, even though
> they didn't contain any component
> Is this a regression, or did the spec change, so this is mandatory?

Did you try deleting all occurrences of this header in the workspace? The only 
reason to use it now is to use the old dsl for generating a component 
description, which I’m not sure that anyone does any more.


> I assume this is a bug. Or am I missing a directive in one of the bnd files?

The noop.bnd should not have a build path. That only belongs in bnd.bnd. The 
Service-Component in bnd.bnd will cascade to all the others, but I would 
recommend removing it. The ~ indicates that the DS descriptor would be a 
duplicate entry, probably because the annotation scanning has already created 
the descriptor for you.

Best Regards,

Tim

> On 29 Jun 2018, at 16:44, Henrik Niehaus via osgi-dev 
> <osgi-dev@mail.osgi.org> wrote:
> 
> I updated to Eclipse Photon and bndtools 4.0.0. To port my old bndtools
> workspace I started with a clean workspace and used the OSGi template.
> (I did that, because the old one had some repo plug-ins missing and I
> couldn't figure out how to resolve that.) Then I copied over all my
> bundle projects and faced the following problems:
> 
> 1. For the Service-Component header I had to fill in every component
> instead of *
> No big deal, but kind of tedious.
> 
> 2. I had to add a Service-Component header for each bundle, even though
> they didn't contain any component
> Is this a regression, or did the spec change, so this is mandatory?
> 
> 3. I have a project with multiple bundles using the -sub header. In this
> project I get "Service-Component entry can not be located in JAR:
> OSGI-INF/test.impl.Noop.xml~" for each component. The "generated"
> directory is empty. Here is an example project:
> 
> https://github.com/hampelratte/bndtools-example.git
> 
> I assume this is a bug. Or am I missing a directive in one of the bnd files?
> 
> Best regards
> Henrik
> 
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to