karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Stewart <timothy.stew...@gmail.com>
Subject Re: List User installed bundles in Karaf from Java
Date Tue, 02 Sep 2014 21:58:21 GMT
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

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.

View raw message