Re: Features with conditional requirements
Thanks to your help, I could reproduce my issue : the bundles in my had missing requirements. In this case, the conditional is not installed, without errors. Fixing the missing imports have resolved my issue. On 2017-07-12 15:20 (+0200), Guillaume Nodet wrote: > The best way is to produce a unit test with a minimal set of features / > bundles. > You can see such a test here: > > https://github.com/apache/karaf/blob/master/features/core/src/test/java/org/apache/karaf/features/internal/region/SubsystemTest.java#L191-L210 > with the data: > > https://github.com/apache/karaf/tree/master/features/core/src/test/resources/org/apache/karaf/features/internal/region/data5 > > > > > 2017-07-12 14:47 GMT+02:00 jeremie.bre...@gmail.com < > jeremie.bre...@gmail.com>: > > > Hello, > > > > I am playing with conditionals features, but I am not able to do what I > > want. > > > > I have theses features (with Karaf 4.1.1 ): > > > > > > > > req:component.service.faultmanagement > > mvn:MyUIBundle > > > > > > > > > > ... > > > > component.service.faultmanagement > > > > > > > > When I install "ui" and "faultmanagement", I am expecting "MyUIBundle" to > > be installed. However, this is not the case. > > > > What I am doing wrong ? The resolver code is a bit complicated, how can I > > debug the behavior of such features ? > > > > Regards, > > Jérémie > > > > > > > -- > > Guillaume Nodet >
Re: Features with conditional requirements
The best way is to produce a unit test with a minimal set of features / bundles. You can see such a test here: https://github.com/apache/karaf/blob/master/features/core/src/test/java/org/apache/karaf/features/internal/region/SubsystemTest.java#L191-L210 with the data: https://github.com/apache/karaf/tree/master/features/core/src/test/resources/org/apache/karaf/features/internal/region/data5 2017-07-12 14:47 GMT+02:00 jeremie.bre...@gmail.com < jeremie.bre...@gmail.com>: > Hello, > > I am playing with conditionals features, but I am not able to do what I > want. > > I have theses features (with Karaf 4.1.1 ): > > > > req:component.service.faultmanagement > mvn:MyUIBundle > > > > > ... > > component.service.faultmanagement > > > > When I install "ui" and "faultmanagement", I am expecting "MyUIBundle" to > be installed. However, this is not the case. > > What I am doing wrong ? The resolver code is a bit complicated, how can I > debug the behavior of such features ? > > Regards, > Jérémie > > -- Guillaume Nodet
Features with conditional requirements
Hello, I am playing with conditionals features, but I am not able to do what I want. I have theses features (with Karaf 4.1.1 ): req:component.service.faultmanagement mvn:MyUIBundle ... component.service.faultmanagement When I install "ui" and "faultmanagement", I am expecting "MyUIBundle" to be installed. However, this is not the case. What I am doing wrong ? The resolver code is a bit complicated, how can I debug the behavior of such features ? Regards, Jérémie