You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2011/04/20 03:15:05 UTC

[jira] [Commented] (KARAF-576) introduce start-level attribute for feature element in features.xml

    [ https://issues.apache.org/jira/browse/KARAF-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021892#comment-13021892 ] 

Freeman Fang commented on KARAF-576:
------------------------------------

Hi Achim,

Actually now for both 2.2.1 and 3.0 we have same behavior to let users specify start-level for feature level.
David don't like setStartLevel method I introduced for BundleInfo in 3.0(I agree with David here), so he refactor my change but the new functionality I introduced into 3.0 is still there, and there's is no difference for end user to specify start-level for feature between 2.2.x or 3.0, and xsd change about is part is also no difference.

Yes, this improvement is optional, but it's very useful if your feature have a lot of bundles, you can save your effort to just specify start-level for a certain feature.

So I believe we're safe to mark this issue as resolved.

Regards
Freeman

> introduce start-level attribute for feature element in features.xml
> -------------------------------------------------------------------
>
>                 Key: KARAF-576
>                 URL: https://issues.apache.org/jira/browse/KARAF-576
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Freeman Fang
>             Fix For: 2.2.1, 3.0.0
>
>
> currently we can specify start-level for a certain bundle in features.xml, in some case we want to specify all bundles in a certain feature with a certain startlevel, to avoid adding start-level for each bundle, we can introduce start-level attribute for feature element, so that each bundle have the start-level specified for hosted feature by default, it a bundle has start-level also, then it will override the one from hosted feature.
> For example,
> <feature name='myfeature' start-level="50">
>       <bundle start-level="55">bundleA</bundle>
>       <bundle>bundleB</bundle>
>       <bundle>bundleC</bundle>
> </feature>
> then  bundleA should have startlevel 55, bundleB and bundleC have startlevel 50 from the hosted myfeature.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira