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

Jonathan Anstey commented on KARAF-2917:
----------------------------------------

Pushed a simple "id" command to master:

To https://git-wip-us.apache.org/repos/asf/karaf.git
   63a79b5..40ae90f  master -> master

It can be used as follows:
{code}
karaf@root()> bundle:id 
mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.1.0
14
karaf@root()> bundle:id org.apache.aries.jmx.blueprint.api
14
karaf@root()> bundle:id org.apache.aries.jmx.blueprint.api/1.1.0
14
{code}

It becomes more useful when used as input for other commands. Take bundle:info 
for ex, which normally requires a bundle id:
{code}
karaf@root()> bundle:info (bundle:id 
mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.1.0)

Apache Aries JMX Blueprint API (14)
-----------------------------------
{code}

Will backport this tomorrow.


> Command to display bundle id
> ----------------------------
>
>                 Key: KARAF-2917
>                 URL: https://issues.apache.org/jira/browse/KARAF-2917
>             Project: Karaf
>          Issue Type: New Feature
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 2.4.0, 4.0.0, 3.0.2
>
>
> See thread on user list about this:
> http://karaf.922171.n3.nabble.com/Karaf-console-command-enhancements-for-osgi-tp4032774.html
> Basically it would be useful to have a simple command that can print the 
> bundle id given a symbolic name or location. I would personally find this 
> useful too :-) since we don't have a sed-like alternative to pick apart the 
> bundle:list output.



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

Reply via email to