set value of activemq.home system property

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@421790 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonas B. Lim 2006-07-14 03:25:03 +00:00
parent 02fffb44b0
commit 3a59e68649
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,7 @@ public class Main {
url = jarConnection.getJarFileURL(); url = jarConnection.getJarFileURL();
URI baseURI = new URI(url.toString()).resolve(".."); URI baseURI = new URI(url.toString()).resolve("..");
activeMQHome = new File(baseURI).getCanonicalFile(); activeMQHome = new File(baseURI).getCanonicalFile();
System.setProperty("activemq.home",activeMQHome.getAbsolutePath());
} catch (Exception ignored) { } catch (Exception ignored) {
} }
} }
@ -214,6 +215,7 @@ public class Main {
if(activeMQHome==null){ if(activeMQHome==null){
activeMQHome = new File("../."); activeMQHome = new File("../.");
System.setProperty("activemq.home",activeMQHome.getAbsolutePath());
} }
} }