FELIX-4438 Set jetty.version system property injecting the correct Jetty version
into the Jetty Server class.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1572163 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java b/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java
index 04c5982..8e6d416 100644
--- a/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java
+++ b/http/jetty/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java
@@ -284,7 +284,11 @@
         // FELIX-4311: report the real version of Jetty...
         Dictionary headers = this.context.getBundle().getHeaders();
         String version = (String) headers.get("X-Jetty-Version");
-        if (version == null)
+        if (version != null)
+        {
+            System.setProperty("jetty.version", version);
+        }
+        else
         {
             version = Server.getVersion();
         }