mirror of https://github.com/apache/activemq.git
Add some info when loading properties and extDir files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@418686 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0d9c764bf5
commit
6d9e5b5951
|
@ -237,7 +237,7 @@ public abstract class AbstractJmsClientSystem extends AbstractObjectProperties {
|
||||||
if (args == null || args.length == 0) {
|
if (args == null || args.length == 0) {
|
||||||
return props; // Empty properties
|
return props; // Empty properties
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i<args.length; i++) {
|
for (int i=0; i<args.length; i++) {
|
||||||
String arg = args[i];
|
String arg = args[i];
|
||||||
if (arg.startsWith("-D") || arg.startsWith("-d")) {
|
if (arg.startsWith("-D") || arg.startsWith("-d")) {
|
||||||
|
@ -259,6 +259,7 @@ public abstract class AbstractJmsClientSystem extends AbstractObjectProperties {
|
||||||
Properties fileProps = new Properties();
|
Properties fileProps = new Properties();
|
||||||
try {
|
try {
|
||||||
if (configFile != null) {
|
if (configFile != null) {
|
||||||
|
log.info("Loading properties file: " + configFile.getAbsolutePath());
|
||||||
fileProps.load(new FileInputStream(configFile));
|
fileProps.load(new FileInputStream(configFile));
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
|
@ -51,14 +51,14 @@ public abstract class ClassLoaderSPIConnectionFactory implements SPIConnectionFa
|
||||||
String dir = tokens.nextToken();
|
String dir = tokens.nextToken();
|
||||||
try {
|
try {
|
||||||
File f = new File(dir);
|
File f = new File(dir);
|
||||||
dir = f.getAbsolutePath();
|
log.info("Adding extension dir: " + f.getAbsolutePath());
|
||||||
urls.add(f.toURL());
|
urls.add(f.toURL());
|
||||||
|
|
||||||
File[] files = f.listFiles();
|
File[] files = f.listFiles();
|
||||||
if( files!=null ) {
|
if( files!=null ) {
|
||||||
for (int j = 0; j < files.length; j++) {
|
for (int j = 0; j < files.length; j++) {
|
||||||
if( files[j].getName().endsWith(".zip") || files[j].getName().endsWith(".jar") ) {
|
if( files[j].getName().endsWith(".zip") || files[j].getName().endsWith(".jar") ) {
|
||||||
dir = files[j].getAbsolutePath();
|
log.info("Adding extension dir: " + files[j].getAbsolutePath());
|
||||||
urls.add(files[j].toURL());
|
urls.add(files[j].toURL());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue