You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ioan Eugen Stan (JIRA)" <ji...@apache.org> on 2013/10/25 13:59:31 UTC

[jira] [Commented] (CAMEL-4931) Improve column display in camel:route-list and similar Karaf commands

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

Ioan Eugen Stan commented on CAMEL-4931:
----------------------------------------

I'm using Karaf 2.3.3 with Camel 2.11.2 and route-list still has bad alignement

> Improve column display in camel:route-list and similar Karaf commands
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-4931
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4931
>             Project: Camel
>          Issue Type: Improvement
>          Components: karaf
>    Affects Versions: 2.9.0
>         Environment: Karaf
>   Karaf version               2.2.5
>   Karaf home                  C:\Users\rgarrett\bin\apache-karaf
>   Karaf base                  C:\Users\rgarrett\bin\apache-karaf
>   OSGi Framework              org.apache.felix.framework - 3.0.9
> JVM
>   Java Virtual Machine        Java HotSpot(TM) 64-Bit Server VM version 20.4-b02
>   Version                     1.6.0_29
>   Vendor                      Sun Microsystems Inc.
>   Uptime                      3 days 16 hours
>   Total compile time          1 minute
> Threads
>   Live threads                81
>   Daemon threads              62
>   Peak                        83
>   Total started               435
> Memory
>   Current heap size           54,287 kbytes
>   Maximum heap size           466,048 kbytes
>   Committed heap size         251,904 kbytes
>   Pending objects             0
>   Garbage collector           Name = 'PS Scavenge', Collections = 198, Time = 1 minute
>   Garbage collector           Name = 'PS MarkSweep', Collections = 12, Time = 43.999 seconds
> Classes-
>   Current classes loaded      6,204
>   Total classes loaded        6,451
>   Total classes unloaded      247
> Operating system
>   Name                        Windows 7 version 6.1
>   Architecture                amd64
>   Processors                  4
>            Reporter: Reuben Garrett
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.0
>
>         Attachments: CAMEL-4391-1.patch, camel-route-list-bad-alling.png, camel-route-list.png
>
>
> Camel's shell extensions for Karaf print poorly-formatted results in some cases (particularly camel:route-list), impeding legibility and ease of use.  It appears that the fields are right-padded with spaces to 18 columns regardless of maximum actual column length.  
> I understand there's ultimately a limit to the width of the console.  However, if the width of the console can be determined, it should be filled appropriately; middle truncation might be an option for excessively long fields (e.g.: "thisIsAVeryLongField...ThatHadToBePartiallyTruncated").  
> If the console width cannot be determined, it may still be acceptable to scan for the longest field and set the entire column to its width in the interest of uniform appearance.  



--
This message was sent by Atlassian JIRA
(v6.1#6144)