You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Heath Kesler (JIRA)" <ji...@apache.org> on 2012/08/23 04:18:42 UTC

[jira] [Created] (KARAF-1761) classes list command

Heath Kesler created KARAF-1761:
-----------------------------------

             Summary: classes list command
                 Key: KARAF-1761
                 URL: https://issues.apache.org/jira/browse/KARAF-1761
             Project: Karaf
          Issue Type: New Feature
    Affects Versions: 3.0.0
            Reporter: Heath Kesler


I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Jamie goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443998#comment-13443998 ] 

Jamie goodyear commented on KARAF-1761:
---------------------------------------

I've applied the supplied patch with thanks to Heath Kesler :)

$ svn ci
Adding         bundle/command/src/main/java/org/apache/karaf/bundle/command/Classes.java
Sending        bundle/command/src/main/resources/OSGI-INF/blueprint/shell-bundles.xml
Sending        bundle/command/src/main/resources/OSGI-INF/bundle.info
Transmitting file data ...
Committed revision 1378513.
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Heath Kesler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443158#comment-13443158 ] 

Heath Kesler commented on KARAF-1761:
-------------------------------------

Hi Jamie, I need to backport it for 2.3 also if this iteration looks good.  But I am also thinking about options that might be needed.  Like maybe a -i option to ignore java files and -n to ignore non-java files, since we can grep on the output I am not sure those are needed?

Thoughts?
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (KARAF-1761) classes list command

Posted by "Heath Kesler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Heath Kesler updated KARAF-1761:
--------------------------------

    Attachment:     (was: karaf-3.0_1761.diff)
    
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Jamie goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444002#comment-13444002 ] 

Jamie goodyear commented on KARAF-1761:
---------------------------------------

We can open an issue under Karaf 2.3.x for porting this feature :)
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Jamie goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443178#comment-13443178 ] 

Jamie goodyear commented on KARAF-1761:
---------------------------------------

I'm usually a fan of output options, having grep on the raw output as a fall back.
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (KARAF-1761) classes list command

Posted by "Heath Kesler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Heath Kesler updated KARAF-1761:
--------------------------------

    Attachment: karaf-3.0_1761.diff

this is the updated patch file with -a option to show all files 
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (KARAF-1761) classes list command

Posted by "Jamie goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear resolved KARAF-1761.
-----------------------------------

    Resolution: Fixed

Applied patch supplied by Heath Kesler.

                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Heath Kesler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443725#comment-13443725 ] 

Heath Kesler commented on KARAF-1761:
-------------------------------------

this last patch adds the option that was needed to make this complete.
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440947#comment-13440947 ] 

Andreas Pieber commented on KARAF-1761:
---------------------------------------

maybe we can also backport such a feature to 2.3 keeping our "old-version-users" happy and sound :-)
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (KARAF-1761) classes list command

Posted by "Jamie goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear reassigned KARAF-1761:
-------------------------------------

    Assignee: Jamie goodyear
    
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (KARAF-1761) classes list command

Posted by "Heath Kesler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Heath Kesler updated KARAF-1761:
--------------------------------

    Attachment: karaf-3.0_1761.diff

here is the first iteration of the new command, I tested using some of the spring bundle jars and it matches doing a jar tf on the jar file. 

This can list the files from multiple bundles using this command:

bundle:classes <bundleid> <bundleid> ...
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Jamie goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443681#comment-13443681 ] 

Jamie goodyear commented on KARAF-1761:
---------------------------------------

Hi Heath, I've tested the patch update on my local build and I'm quiet happy to include this as is. I'll note here that I've chatted with you in private and understand that an additional patch for this branch is underway. so I'll hold off applying this particular patch until the one you're working on is ready.
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Heath Kesler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442905#comment-13442905 ] 

Heath Kesler commented on KARAF-1761:
-------------------------------------

also, if no bundle is found for the bundleid then it will report the error to the console 
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (KARAF-1761) classes list command

Posted by "Jamie goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443083#comment-13443083 ] 

Jamie goodyear commented on KARAF-1761:
---------------------------------------

Thank you for the patch Heath. You mentioned this is your first iteration, do you have changes already planned for this patch?
                
> classes list command
> --------------------
>
>                 Key: KARAF-1761
>                 URL: https://issues.apache.org/jira/browse/KARAF-1761
>             Project: Karaf
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Heath Kesler
>            Assignee: Jamie goodyear
>         Attachments: karaf-3.0_1761.diff
>
>
> I think having a command to list the classes in a bundle would be useful.  Something like bundle:classes <bundleid>.  This would list out all classes within the bundle.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira