felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccust...@apache.org
Subject svn commit: r822114 - in /felix/trunk/karaf/shell/commands: pom.xml src/main/java/org/apache/felix/karaf/shell/commands/InfoAction.java
Date Tue, 06 Oct 2009 04:03:16 GMT
Author: ccustine
Date: Tue Oct  6 04:03:16 2009
New Revision: 822114

URL: http://svn.apache.org/viewvc?rev=822114&view=rev
Log:
FELIX-1707 - Add OSGi framework information to InfoAction

Modified:
    felix/trunk/karaf/shell/commands/pom.xml
    felix/trunk/karaf/shell/commands/src/main/java/org/apache/felix/karaf/shell/commands/InfoAction.java

Modified: felix/trunk/karaf/shell/commands/pom.xml
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/shell/commands/pom.xml?rev=822114&r1=822113&r2=822114&view=diff
==============================================================================
--- felix/trunk/karaf/shell/commands/pom.xml (original)
+++ felix/trunk/karaf/shell/commands/pom.xml Tue Oct  6 04:03:16 2009
@@ -45,6 +45,11 @@
             <groupId>org.apache.felix.karaf.shell</groupId>
             <artifactId>org.apache.felix.karaf.shell.console</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
 
     <build>

Modified: felix/trunk/karaf/shell/commands/src/main/java/org/apache/felix/karaf/shell/commands/InfoAction.java
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/shell/commands/src/main/java/org/apache/felix/karaf/shell/commands/InfoAction.java?rev=822114&r1=822113&r2=822114&view=diff
==============================================================================
--- felix/trunk/karaf/shell/commands/src/main/java/org/apache/felix/karaf/shell/commands/InfoAction.java
(original)
+++ felix/trunk/karaf/shell/commands/src/main/java/org/apache/felix/karaf/shell/commands/InfoAction.java
Tue Oct  6 04:03:16 2009
@@ -55,6 +55,8 @@
         System.out.println("Karaf");
         printValue("Karaf home", maxNameLen, System.getProperty("karaf.home"));
         printValue("Karaf base", maxNameLen, System.getProperty("karaf.base"));
+        printValue("OSGi Framework", maxNameLen, bundleContext.getBundle(0).getSymbolicName()
+ " - " +
+            bundleContext.getBundle(0).getVersion());
         System.out.println();
 
         System.out.println("JVM");



Mime
View raw message