Thanks for the info and yes, the JIRA helped a bit :)
I ran into it while debugging an issue with the karaf-maven-plugin.
It seems to not really handle conditionals.
Eg:
<descriptors>
<descriptor>mvn:org.apache.karaf.features/spring/3.0.3/xml/features</descriptor>
<descriptor>mvn:org.apache.karaf.features/standard/3.0.3/xml/features</descriptor>
<descriptor>mvn:org.apache.karaf.features/enterprise/3.0.3/xml/features</descriptor>
</descriptors>
<features>
<feature>webconsole</feature>
...
karaf-maven-plugin does not include the bundles that are inside the
"webconsole" conditional of "standard".
(For "features-add-to-repository" for example.)
Martin
>________________________________
> From: Achim Nierbeck <[email protected]>
>To: "[email protected]" <[email protected]>; Martin Lichtin
><[email protected]>
>Sent: Monday, March 9, 2015 1:17 PM
>Subject: Re: How does <conditional> work in feature files
>
>
>
>Conditional means, this part is conditionally installed in case the webconsole
>is already installed or in case the webconsole is just installed those bundles
>are also installed. This is for better seperation of concerns and meant as a
>trigger.
>You'll see a lot of conditionals in the current master standard feature.
>
>
>regards, Achim
>
>
>P.S. in case your missing documentation, look at the jira :-)
>
>
>2015-03-09 12:45 GMT+01:00 Martin Lichtin <[email protected]>:
>
>
>
>
>Inside Karaf's "standard" feature descriptor, there is
>>
>><conditional>
>> <condition>webconsole</condition>
>> <bundle
>> start-level="30">mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.instance/3.0.3</bundle>
>> <bundle
>> start-level="30">mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.features/3.0.3</bundle>
>> <bundle
>> start-level="30">mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.gogo/3.0.3</bundle>
>> <bundle
>> start-level="30">mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.http/3.0.3</bundle>
>></conditional>
>>
>>
>>I can't find any documentation on the <conditional> tag. Is <condition>
>>containing a feature name?
>>
>>Also I'm puzzled how this entry will affect the situation when I later on do
>>a "feature:install webconsole".
>>
>>And could these 4 bundles not just be listed as part of the "webconsole"
>>feature description?
>>
>>Thanks
>>- Martin
>>
>
>
>
>--
>
>
>Apache Member
>
>Apache Karaf <http://karaf.apache.org/> Committer & PMC
>OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
>Project Lead
>blog <http://notizblog.nierbeck.de/>
>Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
>
>Software Architect / Project Manager / Scrum Master
>
>
>
>