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 <j...@nanthrax.net> wrote:
> 
> 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 <alex.s...@envieta.com 
>> <mailto:alex.s...@envieta.com>> a écrit :
>> 
>> Thanks JB,
>> 
>> Can you point me to capability documentation?
>> 
>> 
>> Best regards,
>> Alex soto
>> 
>> 
>> 
>> 
>>> On Feb 26, 2020, at 2:25 PM, Jean-Baptiste Onofre <j...@nanthrax.net 
>>> <mailto:j...@nanthrax.net>> wrote:
>>> 
>>> 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 <alex.s...@envieta.com 
>>>> <mailto:alex.s...@envieta.com>> a écrit :
>>>> 
>>>> In Features XML, is it possible to add a bundle conditionally based on JDK 
>>>> version?
>>>> 
>>>> <conditional>
>>>>    <condition>???</condition>
>>>> </conditonal>
>>>> 
>>>> 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 
>>>> <https://karaf.apache.org/manual/latest/provisioning> but there is no 
>>>> mention of this.
>>>> 
>>>> Best regards,
>>>> Alex soto
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>> 
> 

Reply via email to