[ 
https://issues.apache.org/jira/browse/KARAF-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898815#action_12898815
 ] 

Guillaume Nodet commented on KARAF-135:
---------------------------------------

A few problems with the patch you attached:
  * calling the packages:export command without any parameters lead to a NPE
  * the bundle ID and symbolic name are only shown for the first package for 
each bundle and the header line is repeated once for each bundle

See the output:
{code}
ka...@root> packages:exports -s 1 2 3
    ID Symbolic name                             Packages                       
         
     1 org.ops4j.pax.url.mvn                     org.ops4j.pax.url.mvn          
         
    ID Symbolic name                             Packages                       
         
     2 org.ops4j.pax.url.wrap                    org.ops4j.pax.url.wrap         
         
    ID Symbolic name                             Packages                       
         
     3 org.ops4j.pax.logging.pax-logging-api     
org.apache.avalon.framework.logger      
                                                 org.apache.commons.logging     
         
                                                 org.apache.commons.logging     
         
                                                 
org.apache.commons.logging.impl         
                                                 
org.apache.commons.logging.impl         
                                                 org.apache.juli.logging        
         
                                                 org.apache.log4j               
         
                                                 org.apache.log4j.spi           
         
                                                 org.apache.log4j.xml           
         
                                                 org.knopflerfish.service.log   
         
                                                 org.ops4j.pax.logging          
         
                                                 org.ops4j.pax.logging.avalon   
         
                                                 org.ops4j.pax.logging.slf4j    
         
                                                 org.osgi.service.log           
         
                                                 org.slf4j                      
         
                                                 org.slf4j                      
         
                                                 org.slf4j.helpers              
         
                                                 org.slf4j.helpers              
         
                                                 org.slf4j.spi                  
         
                                                 org.slf4j.spi                  
         
{code}

> The package:export command should have more option to control the output
> ------------------------------------------------------------------------
>
>                 Key: KARAF-135
>                 URL: https://issues.apache.org/jira/browse/KARAF-135
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Guillaume Nodet
>         Attachments: packages-export-patch.txt
>
>
> The current output is not really easy to process or sort.
> Having the symbolic name, maybe a clean column output, more like osgi:list 
> maybe

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to