karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KARAF-3627) Add bundle revision information to bundle:list command
Date Fri, 24 Apr 2015 08:25:38 GMT

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

Freeman Fang resolved KARAF-3627.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.0.M3

commit fix
http://git-wip-us.apache.org/repos/asf/karaf/commit/bdd66660 for karaf-3.0.x branch
http://git-wip-us.apache.org/repos/asf/karaf/commit/2601b330 for master

> Add bundle revision information to bundle:list command
> ------------------------------------------------------
>
>                 Key: KARAF-3627
>                 URL: https://issues.apache.org/jira/browse/KARAF-3627
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 3.0.3
>            Reporter: John Ellinwood
>            Assignee: Freeman Fang
>            Priority: Critical
>              Labels: bundle, cache, shell
>             Fix For: 3.0.4, 4.0.0.M3
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> See [KARAF-3540] for why this might be useful.
> There is room for enhancing the karaf bundle:list command. OSGi can have multiple revisions
of the same bundle, or cached versions of a bundle that was uninstalled, but the bundle:list
doesn't show them.  The bundle:list command could 1) have an option to list bundles that are
pending removal / need to be refreshed, and 2) list the full bundle URI including the bundle-revision
id, or classpath id, not just the bundle ID.
> bundle revisions are different than versions.  
> For item 1)
> to see which bundles need to be refreshed or have multiple revisions loaded
> FrameworkWiring wiring = getBundleContext().getBundle(0).adapt(FrameworkWiring.class);
> Collection<Bundle> removal = wiring.getRemovalPendingBundles();
> Collection<Bundle> deps = wiring.getDependencyClosure(removal);
> For item 2)
> see the bundleRevision interface in osgi https://osgi.org/javadoc/r4v43/core/org/osgi/framework/wiring/BundleRevision.html
. like "321.2" would indicate bundle 321, revision 2. This way you can see multiple revisions
of the bundle are loaded.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message