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

Jean-Baptiste Onofré deleted KARAF-3144:
----------------------------------------


> 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
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            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
(v8.3.4#803005)

Reply via email to