mirror of https://github.com/apache/activemq.git
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:
parent
02fffb44b0
commit
3a59e68649
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue