Return-Path: Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: (qmail 1990 invoked from network); 1 Oct 2010 11:55:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 11:55:00 -0000 Received: (qmail 49502 invoked by uid 500); 1 Oct 2010 11:55:00 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 49463 invoked by uid 500); 1 Oct 2010 11:54:59 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 49404 invoked by uid 99); 1 Oct 2010 11:54:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 11:54:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 11:54:58 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o91BsbHN019116 for ; Fri, 1 Oct 2010 11:54:38 GMT Message-ID: <7014874.495691285934077937.JavaMail.jira@thor> Date: Fri, 1 Oct 2010 07:54:37 -0400 (EDT) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Subject: [jira] Commented: (KARAF-237) print importer bundle in packages:imports In-Reply-To: <27537686.465101285782272892.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916862#action_12916862 ] Guillaume Nodet commented on KARAF-237: --------------------------------------- Not yet, but if you're fancy, we can add some. I've added a detailedDescription field to the @Command annotation which works the following way: @Command(..., detailedDescription="classpath:command.txt") Then create a file named command.txt which contains the details about a command. It will be printed when using the "--help" option or in the generated docs at http:///github.com/gnodet/karafdoc > print importer bundle in packages:imports > ----------------------------------------- > > Key: KARAF-237 > URL: https://issues.apache.org/jira/browse/KARAF-237 > Project: Karaf > Issue Type: Improvement > Reporter: Jonathan Anstey > Assignee: Jamie goodyear > Fix For: 2.2.0 > > Attachments: KARAF-237.patch > > > The packages:imports command by default spits out a list of imports for all bundles joined together so there is no information to which bundle which packages belong. Say someone wants to know which bundles import a given package. They could do packages:imports and search through but it gives nothing on which bundles those imports are occurring, just which bundles the package comes from. I'm proposing a -i option to the packages:imports command that would output the list like: > {code} > karaf@root> packages:imports -i > OPS4J Pax Url - mvn: (1) imports: System Bundle (0): org.osgi.framework; version=1.5.0 > OPS4J Pax Url - mvn: (1) imports: System Bundle (0): org.osgi.service.url; version=1.0.0 > OPS4J Pax Url - mvn: (1) imports: System Bundle (0): javax.net.ssl; version=0.0.0 > OPS4J Pax Url - mvn: (1) imports: System Bundle (0): javax.xml.parsers; version=0.0.0 > OPS4J Pax Url - mvn: (1) imports: System Bundle (0): org.w3c.dom; version=0.0.0 > OPS4J Pax Url - mvn: (1) imports: System Bundle (0): org.xml.sax; version=0.0.0 > OPS4J Pax Url - mvn: (1) imports: OPS4J Pax Logging - API (3): org.apache.commons.logging; version=1.1.1 > OPS4J Pax Url - mvn: (1) imports: OPS4J Pax Logging - API (3): org.apache.commons.logging; version=1.0.4 > OPS4J Pax Url - mvn: (1) imports: Apache Felix Configuration Admin Service (5): org.osgi.service.cm; version=1.3.0 > OPS4J Pax Url - wrap: (2) imports: System Bundle (0): org.osgi.framework; version=1.5.0 > OPS4J Pax Url - wrap: (2) imports: System Bundle (0): org.osgi.service.url; version=1.0.0 > OPS4J Pax Url - wrap: (2) imports: System Bundle (0): javax.net.ssl; version=0.0.0 > OPS4J Pax Url - wrap: (2) imports: System Bundle (0): javax.xml.transform; version=0.0.0 > OPS4J Pax Url - wrap: (2) imports: System Bundle (0): javax.xml.transform.stream; version=0.0.0 > OPS4J Pax Url - wrap: (2) imports: OPS4J Pax Logging - API (3): org.apache.commons.logging; version=1.1.1 > OPS4J Pax Url - wrap: (2) imports: OPS4J Pax Logging - API (3): org.apache.commons.logging; version=1.0.4 > OPS4J Pax Url - wrap: (2) imports: Apache Felix Configuration Admin Service (5): org.osgi.service.cm; version=1.3.0 > OPS4J Pax Logging - API (3) imports: System Bundle (0): org.osgi.framework; version=1.5.0 > OPS4J Pax Logging - API (3) imports: System Bundle (0): org.osgi.util.tracker; version=1.4.0 > OPS4J Pax Logging - API (3) imports: System Bundle (0): javax.xml.parsers; version=0.0.0 > ... > {code} > The output syntax is basically: > {code} > imports: : > {code} > If -i is not passed in, then the old behavior would hold. I'll attach a patch for this shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.