QPID-8227: [Broker-J] Set system property 'qpid.version'
authorAlex Rudyy <orudyy@apache.org>
Wed, 19 Dec 2018 11:47:04 +0000 (11:47 +0000)
committerAlex Rudyy <orudyy@apache.org>
Wed, 19 Dec 2018 11:47:04 +0000 (11:47 +0000)
broker-core/src/main/java/org/apache/qpid/server/configuration/CommonProperties.java

index eab1400..949216d 100644 (file)
@@ -83,6 +83,8 @@ public class CommonProperties
 
     private static final Properties properties = new Properties();
 
+    private static final String QPID_VERSION = "qpid.version";
+
     static
     {
         Manifest jarManifest = getJarManifestFor(CommonProperties.class);
@@ -94,6 +96,7 @@ public class CommonProperties
         productName = p.getImplementationTitle() != null ? p.getImplementationTitle() : DEFAULT;
 
         String version = getImplementationVersion(p);
+        System.setProperty(QPID_VERSION, version);
 
         boolean loadFromFile = true;
         String initialProperties = System.getProperty("qpid.common_properties_file");