This is an automated email from the ASF dual-hosted git repository.

orudyy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git


The following commit(s) were added to refs/heads/master by this push:
     new ca754b7  QPID-8227: [Broker-J] Set system property 'qpid.version'
ca754b7 is described below

commit ca754b799151581796d9597f0b778f67bc8c8efa
Author: Alex Rudyy <oru...@apache.org>
AuthorDate: Wed Dec 19 11:47:04 2018 +0000

    QPID-8227: [Broker-J] Set system property 'qpid.version'
---
 .../java/org/apache/qpid/server/configuration/CommonProperties.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/broker-core/src/main/java/org/apache/qpid/server/configuration/CommonProperties.java
 
b/broker-core/src/main/java/org/apache/qpid/server/configuration/CommonProperties.java
index eab1400..949216d 100644
--- 
a/broker-core/src/main/java/org/apache/qpid/server/configuration/CommonProperties.java
+++ 
b/broker-core/src/main/java/org/apache/qpid/server/configuration/CommonProperties.java
@@ -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");


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to