activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r421790 - /incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
Date Fri, 14 Jul 2006 03:25:04 GMT
Author: jlim
Date: Thu Jul 13 20:25:03 2006
New Revision: 421790

URL: http://svn.apache.org/viewvc?rev=421790&view=rev
Log:
set value of  activemq.home system property 

Modified:
    incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java

Modified: incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java?rev=421790&r1=421789&r2=421790&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
(original)
+++ incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/Main.java
Thu Jul 13 20:25:03 2006
@@ -207,6 +207,7 @@
                         url = jarConnection.getJarFileURL();
                         URI baseURI = new URI(url.toString()).resolve("..");
                         activeMQHome = new File(baseURI).getCanonicalFile();
+                        System.setProperty("activemq.home",activeMQHome.getAbsolutePath());
                     } catch (Exception ignored) {
                     }
                 }
@@ -214,6 +215,7 @@
 
             if(activeMQHome==null){
                 activeMQHome = new File("../.");
+                System.setProperty("activemq.home",activeMQHome.getAbsolutePath());
             }
         }
         



Mime
View raw message