activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1091865 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala
Date Wed, 13 Apr 2011 18:02:04 GMT
Author: chirino
Date: Wed Apr 13 18:02:04 2011
New Revision: 1091865

URL: http://svn.apache.org/viewvc?rev=1091865&view=rev
Log:
Report the apollo install location when starting up the broker.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala?rev=1091865&r1=1091864&r2=1091865&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Broker.scala
Wed Apr 13 18:02:04 2011
@@ -389,9 +389,13 @@ class Broker() extends BaseService {
       "%s %s (%s)".format(vm, version, vendor)
     }
 
+    val location_info = Option(System.getProperty("apollo.home")).map { home=>
+      " (at: "+new File(home).getCanonicalPath+")"
+    }.getOrElse("")
+
     console_log.info("OS     : %s", os)
     console_log.info("JVM    : %s", jvm)
-    console_log.info("Apollo : %s", Broker.version)
+    console_log.info("Apollo : %s%s", Broker.version, location_info)
 
   }
   private def check_file_limit:Unit = {



Mime
View raw message