Get framework version in implementation-independent way. (FELIX-1699)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@821492 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java b/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java
index 8d1bc53..8f0a6f5 100644
--- a/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java
+++ b/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java
@@ -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