karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KARAF-1718) Add support for support for conditional bundle and feature definition inside features
Date Mon, 21 Jul 2014 16:50:39 GMT

     [ https://issues.apache.org/jira/browse/KARAF-1718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Nodet resolved KARAF-1718.
------------------------------------

    Resolution: Fixed
      Assignee: Guillaume Nodet

Backported to 2.4.0

> Add support for support for conditional bundle and feature definition inside features
> -------------------------------------------------------------------------------------
>
>                 Key: KARAF-1718
>                 URL: https://issues.apache.org/jira/browse/KARAF-1718
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 2.4.0, 3.0.0
>            Reporter: Ioannis Canellos
>            Assignee: Guillaume Nodet
>         Attachments: KARAF-1718.patch.txt
>
>
> 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>



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message