karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-3144) osgi:ls - Sort multi values before outputting so its easier readable
Date Wed, 30 Jul 2014 13:10:38 GMT
Claus Ibsen created KARAF-3144:
----------------------------------

             Summary: 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
            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 random 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:listurl             features:listversions
features:refreshurl          features:removerepository    features:removeurl           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-commands (2.14.0.SNAPSHOT)
[  75] [Active     ] [            ] [       ] [   50] geronimo-jta_1.1_spec (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/no):
yes

camel-core (60) provides:
-------------------------
component = direct, vm, mock, bean, test, stub, validator, class, properties, direct-vm, log,
ref, xslt, browse, dataset, timer, file, controlbus, binding, seda, rest, language, dataformat
objectClass = org.apache.camel.spi.ComponentResolver
service.id = 225
----
language = ref, constant, bean, simple, file, xtokenize, property, header, xpath, tokenize
objectClass = org.apache.camel.spi.LanguageResolver
service.id = 226
----
dataformat = zip, string, serialization
objectClass = org.apache.camel.spi.DataFormatResolver
service.id = 227
----
objectClass = org.apache.camel.spi.TypeConverterLoader
service.id = 228
karaf@root>
{code}

For example as shown above with Apache Camel where we have many components / languages etc
exported.

Would be nice to have the values sorted before they are printed to the console.



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

Mime
View raw message