You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Timothy Stewart <ti...@gmail.com> on 2014/09/02 23:58:21 UTC

Re: List User installed bundles in Karaf from Java

There might be a better answer for you, but the only way I was able to set
bundle-specific start levels was to deploy them within a features file.

One thing you could possibly use is the Bundle-Vendor.  If you are using the
maven-bnd-plugin, it defaults to the value of organization name within the
POM, which is often set by an organizational parent POM that all projects
are derived from.  If it is being set, you could use the Bundle.getHeaders()
method to check it for each bundle and verify that it belongs to your
company.

You might also use Bundle-Category somehow, since it can be free text, but
I'm not sure maven-bnd-plugin can set it, and it is more difficult to ensure
you get a category into every project.

Just a couple thoughts.



--
View this message in context: http://karaf.922171.n3.nabble.com/List-User-installed-bundles-in-Karaf-from-Java-tp4034602p4035021.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: List User installed bundles in Karaf from Java

Posted by SapnaB <sa...@gmail.com>.
Hi Timothy,

Thanks for the tips. What I have done now is alter the bundle symbolic name
to include Project Group and Artifact IDs, which are standard across all
plugins developed by the team. Then filtering for specific plugins using
symbolic names.
But I guess Bundle-Vendor is another field I can use.

-Sapna



--
View this message in context: http://karaf.922171.n3.nabble.com/List-User-installed-bundles-in-Karaf-from-Java-tp4034602p4035162.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.