karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject Re: How does blacklist works?
Date Tue, 09 May 2017 06:29:16 GMT
You can blacklist features using the following syntax
  *featureName*[;type=feature][;range=*versionRange*]
Where
  * *featureName* is the name of the feature to blacklist
  * *versionRange* is an optional version range to restrict the blacklisted
features

For a bundle, this need to be
  *bundle*;[type=bundle][;url=*bundleUrl*]
or
  *bundleUrl*[;type=bundle]
Where
  * *bundle* can be anything
  * *bundleUrl* is the full url of the bundle

Guillaume

2017-05-08 23:16 GMT+02:00 Castor <ygorcastor@gmail.com>:

> I'm using Karaf 4.0.8
>
> Investigating the karaf-maven-plugin i found the following tag:
>
> <blacklistedBundles>
>       <blacklistedBundle></blacklistedBundle>
> </blacklistedBundles>
>
> For testing purposes, i created a bundle foo.bar and blacklisted it
>
> <blacklistedBundles>
>       <blacklistedBundle>org.foo.bar/*</blacklistedBundle>
> </blacklistedBundles>
>
> it generated a blacklist.properties with:
>
> #
> # Generated by the karaf assembly builder
> #
>
> # Bundles
> org.foo.bar/*
>
> But still, when i install a feature containing the blacklisted bundle, the
> bundle gets installed, i'm not sure if i got the idea of blacklist wrong,
> but i think the bundle shouldn't get installed.
>
> Am i using the blacklist in a wrong way?
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/How-does-blacklist-works-tp4050317.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet

Mime
View raw message