ARTEMIS-263 - added etc folder to runtime
https://issues.apache.org/jira/browse/ARTEMIS-263
This commit is contained in:
parent
b0b567bc83
commit
2ea977db2d
|
@ -63,6 +63,18 @@ public class Artemis {
|
|||
|
||||
|
||||
ArrayList<URL> urls = new ArrayList<URL>();
|
||||
|
||||
// Without the etc on the config, things like JGroups configuration wouldn't be loaded
|
||||
if (fileInstance != null) {
|
||||
File etcFile = new File(fileInstance, "etc");
|
||||
// Adding etc to the classLoader so modules can lookup for their configs
|
||||
urls.add(etcFile.toURI().toURL());
|
||||
}
|
||||
if (fileHome != null) {
|
||||
File etcFile = new File(fileHome, "etc");
|
||||
// Adding etc to the classLoader so modules can lookup for their configs
|
||||
urls.add(etcFile.toURI().toURL());
|
||||
}
|
||||
for (File bootdir : dirs) {
|
||||
if (bootdir.exists() && bootdir.isDirectory()) {
|
||||
|
||||
|
@ -98,13 +110,6 @@ public class Artemis {
|
|||
System.setProperty("logging.configuration", fixupFileURI(loggingConfig));
|
||||
}
|
||||
|
||||
// Without the etc on the config, things like JGroups configuration wouldn't be loaded
|
||||
if (fileInstance != null) {
|
||||
File etcFile = new File(fileInstance, "etc");
|
||||
// Adding etc to the classLoader so modules can lookup for their configs
|
||||
urls.add(etcFile.toURI().toURL());
|
||||
}
|
||||
|
||||
ClassLoader originalCL = Thread.currentThread().getContextClassLoader();
|
||||
|
||||
// Now setup our classloader..
|
||||
|
|
Loading…
Reference in New Issue