Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4.0, 3.0.0
-
None
-
None
-
None
Description
There have been many talks in the past about modifying the feature service so that it can install bundles/features/configuration when some special conditions are meet.
I am attaching a patch which allows the user to define an additional subelement under the feature element, that defines such conditions and what should be installed when the conditions are meet.
A simple example:
<feature name="scr" description="Declarative Service support" version="${project.version}" resolver="(obr)">
<feature>eventadmin</feature>
<bundle dependency="true" start-level="30">mvn:org.apache.felix/org.apache.felix.metatype/${felix.metatype.version}</bundle>
<bundle dependency="true" start-level="30">mvn:org.apache.felix/org.apache.felix.scr/${felix.scr.version}</bundle>
<bundle start-level="30">mvn:org.apache.karaf.scr/org.apache.karaf.scr.command/${project.version}</bundle>
<conditional>
<condition>management</condition>
<bundle start-level="30">mvn:org.apache.karaf.scr/org.apache.karaf.scr.management/${project.version}</bundle>
</conditional>
</feature>
Attachments
Attachments
Issue Links
- is related to
-
KARAF-1735 features autostart
- Resolved
-
KARAF-1738 features-generate-descriptor should support "install" attribute
- Resolved