Thanks!
> On Feb 27, 2020, at 10:49 AM, Jean-Baptiste Onofre wrote:
>
> Hi,
>
> That’s an issue in the bundle (JAXB is affected AFAIR) itself (already
> reported). I have to implement a workaround to avoid this with JDK 9+.
>
> About condition, they are evaluated at runtime by the
Hi,
That’s an issue in the bundle (JAXB is affected AFAIR) itself (already
reported). I have to implement a workaround to avoid this with JDK 9+.
About condition, they are evaluated at runtime by the resolver. Thanks to that,
if later you install a condition feature, then the inner resources
Thank you JB,
I have made the changes you suggested, but the behavior is very strange; the
first time I run, I get this error:
java.lang.ArrayIndexOutOfBoundsException: 19
at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:576)
at
Hi Alex,
Can you try this condition:
req:osgi.ee;filter:="((osgi.ee=JavaSE)(!(version>=1.8)))"
And also remove the dependency flag.
Regards
JB
> Le 27 févr. 2020 à 15:42, Alex Soto a écrit :
>
> Perhaps I am still doing something wrong, or not understanding how the
> condition works.
> I
Perhaps I am still doing something wrong, or not understanding how the
condition works.
I have this in my features.xml:
req:osgi.ee;filter:="((osgi.ee=JavaSE)(version>=9))"
Thanks Guillaume, it?s what I was looking for. Regards JBLe mer. 26 f?vr. 2020 ? 21:31, Guillaume Nodet a ?crit :This should be doable using something like in the test
Ok that?s possible using java.se capability condition. Let me find an example. Regards JBLe mer. 26 f?vr. 2020 ? 20:49, Alex Soto a ?crit :The use case is: I wish my solution to be able to run in various Java versions.For example, if deployed in Java 8, I do not need to provide JAXB jars, but I
Thank you Guillaume,
I am doing something like this:
req:osgi.ee;filter:="((osgi.ee=JavaSE)(!(version>=9)))"
mvn:jakarta.xml.bind/jakarta.xml.bind-api/${jaxb.version}
This should be doable using something like in the test
https://github.com/apache/karaf/blob/master/features/core/src/test/resources/org/apache/karaf/features/internal/service/f06.xml#L30-L33
Le mer. 26 févr. 2020 à 19:53, Alex Soto a écrit :
> In Features XML, is it possible to add a bundle
The use case is: I wish my solution to be able to run in various Java versions.
For example, if deployed in Java 8, I do not need to provide JAXB jars, but I
do for JDK11.
> On Feb 26, 2020, at 2:30 PM, Jean-Baptiste Onofre wrote:
>
> Hi Alex,
>
> Can you quickly explain what you are
Hi Alex,
Can you quickly explain what you are looking for ?
You can to install a feature matching a condition, where the condition is a
bundle or a capability (provided by another bundle or feature) ?
Regards
JB
> Le 26 févr. 2020 à 20:27, Alex Soto a écrit :
>
> Thanks JB,
>
> Can you
Thanks JB,
Can you point me to capability documentation?
Best regards,
Alex soto
> On Feb 26, 2020, at 2:25 PM, Jean-Baptiste Onofre wrote:
>
> Hi,
>
> No, a condition is actually another feature.
>
> So, the content of the feature will be installed only if the condition
> feature is
Hi,
No, a condition is actually another feature.
So, the content of the feature will be installed only if the condition feature
is installed (or when it will be installed).
In your case, you can maybe use a capability ?
Regards
JB
> Le 26 févr. 2020 à 19:53, Alex Soto a écrit :
>
> In
In Features XML, is it possible to add a bundle conditionally based on JDK
version?
???
BTW, I could not find documentation about what can be put in the condition tag.
I looked here https://karaf.apache.org/manual/latest/provisioning
14 matches
Mail list logo