You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2009/10/04 11:49:19 UTC
svn commit: r821492 -
/felix/trunk/shell/src/main/java/org/apache/felix/shell/impl/VersionCommandImpl.java
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