Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDEF5109F2 for ; Tue, 5 Aug 2014 07:59:16 +0000 (UTC) Received: (qmail 17375 invoked by uid 500); 5 Aug 2014 07:59:16 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 17352 invoked by uid 500); 5 Aug 2014 07:59:16 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 17243 invoked by uid 99); 5 Aug 2014 07:59:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 07:59:16 +0000 Date: Tue, 5 Aug 2014 07:59:16 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (KARAF-3144) osgi:ls - Sort multi values before outputting so its easier readable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3144?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 reassigned KARAF-3144: ------------------------------------------- Assignee: Jean-Baptiste Onofr=C3=A9 > osgi:ls - Sort multi values before outputting so its easier readable > -------------------------------------------------------------------- > > Key: KARAF-3144 > URL: https://issues.apache.org/jira/browse/KARAF-3144 > Project: Karaf > Issue Type: Improvement > Components: karaf-shell > Affects Versions: 2.3.5 > Reporter: Claus Ibsen > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Minor > > The ls command is great to see the osgi services exported by the bundles. > But when the values is multi valued, then the data shown is listed in ran= dom order. > {code} > karaf@root> features:chooseurl camel 2.14-SNAPSHOT > adding feature url mvn:org.apache.camel.karaf/apache-camel/2.14-SNAPSHOT/= xml/features > karaf@root> features: > features:addurl features:chooseurl features:info = features:install > features:list features:listrepositories features:listur= l features:listversions > features:refreshurl features:removerepository features:remove= url features:uninstall > karaf@root> features:install camel > karaf@root> features:install camel-metrics > karaf@root> list > START LEVEL 100 , List Threshold: 50 > ID State Blueprint Spring Level Name > [ 60] [Active ] [ ] [ ] [ 50] camel-core (2.14.0.= SNAPSHOT) > [ 61] [Active ] [Created ] [ ] [ 50] camel-karaf-command= s (2.14.0.SNAPSHOT) > [ 75] [Active ] [ ] [ ] [ 50] geronimo-jta_1.1_sp= ec (1.1.1) > [ 76] [Active ] [ ] [ ] [ 50] camel-spring (2.14.= 0.SNAPSHOT) > [ 77] [Active ] [Created ] [ ] [ 50] camel-blueprint (2.= 14.0.SNAPSHOT) > [ 78] [Active ] [ ] [ ] [ 50] Metrics Core (3.0.2= ) > [ 79] [Active ] [ ] [ ] [ 50] camel-metrics (2.14= .0.SNAPSHOT) > karaf@root> ls 60 > You are about to access system bundle 60. Do you wish to continue (yes/n= o): > yes > camel-core (60) provides: > ------------------------- > component =3D direct, vm, mock, bean, test, stub, validator, class, prope= rties, direct-vm, log, ref, xslt, browse, dataset, timer, file, controlbus,= binding, seda, rest, language, dataformat > objectClass =3D org.apache.camel.spi.ComponentResolver > service.id =3D 225 > ---- > language =3D ref, constant, bean, simple, file, xtokenize, property, head= er, xpath, tokenize > objectClass =3D org.apache.camel.spi.LanguageResolver > service.id =3D 226 > ---- > dataformat =3D zip, string, serialization > objectClass =3D org.apache.camel.spi.DataFormatResolver > service.id =3D 227 > ---- > objectClass =3D org.apache.camel.spi.TypeConverterLoader > service.id =3D 228 > karaf@root> > {code} > For example as shown above with Apache Camel where we have many component= s / languages etc exported. > Would be nice to have the values sorted before they are printed to the co= nsole. -- This message was sent by Atlassian JIRA (v6.2#6252)