felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r821492 - /felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java
Date Sun, 04 Oct 2009 09:49:19 GMT
Author: rickhall
Date: Sun Oct  4 09:49:19 2009
New Revision: 821492

URL: http://svn.apache.org/viewvc?rev=821492&view=rev
Log:
Get framework version in implementation-independent way. (FELIX-1699)

Modified:
    felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java

Modified: felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java?rev=821492&r1=821491&r2=821492&view=diff
==============================================================================
--- felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java (original)
+++ felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java Sun
Oct  4 09:49:19 2009
@@ -22,6 +22,7 @@
 
 import org.apache.felix.shell.Command;
 import org.osgi.framework.BundleContext;
+import org.osgi.framework.Constants;
 
 public class VersionCommandImpl implements Command
 {
@@ -49,6 +50,6 @@
 
     public void execute(String s, PrintStream out, PrintStream err)
     {
-        out.println(m_context.getProperty("felix.version"));
+        out.println(m_context.getBundle(0).getHeaders(Constants.BUNDLE_VERSION));
     }
-}
+}
\ No newline at end of file



Mime
View raw message