Hi Robert, On 30 May 2018 at 14:25, Robert Munteanu <romb...@apache.org> wrote:
> Hi David, > > On Wed, 2018-05-30 at 13:40 +0100, David Bosschaert wrote: > > Hi Robert, > > > > It should be possible by creating a feature that is "including" > > another > > feature and specifies a number of removals. An example can be found > > at [1]. > > > > Having said that, I haven't tried this myself yet, so I'm not 100% > > sure > > it's fully implemented right now. > > Well, let's see if it works :-) > > Two questions before I start: > > 1. Is it OK if the feature to include + remove from is also present > under src/main/features or will this lead to it being processed twice? > I think it should be ok, since you're creating a new feature that includes the old feature but removes things. So as long as you refer to this new feature as your feature to use it should be fine. > 2. What is the exact format? Should an array of strings ( version > excluded ) like below work? > > "removals": { > "bundles": [ > "org.apache.sling:org.apache.sling.foo" > ] > } > > > I would assume something like this should work, but I'm not sure the code supports this yet. I think another option that could be useful here is to specify a version range, so only remove the bundle if it's in the range... Best regards, David