|
|
@ -161,14 +161,18 @@ public class Switchboard {
|
|
|
|
* @param propFile
|
|
|
|
* @param propFile
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static void load(File propFile) {
|
|
|
|
public static void load(File propFile) {
|
|
|
|
|
|
|
|
FileInputStream fis = null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
properties.load(new FileInputStream(propFile));
|
|
|
|
fis = new FileInputStream(propFile);
|
|
|
|
|
|
|
|
properties.load(fis);
|
|
|
|
} catch (final FileNotFoundException e1) {
|
|
|
|
} catch (final FileNotFoundException e1) {
|
|
|
|
log.info("error: file dispatcher.properties does not exist. Exit");
|
|
|
|
log.info("error: file dispatcher.properties does not exist. Exit");
|
|
|
|
System.exit(-1);
|
|
|
|
System.exit(-1);
|
|
|
|
} catch (final IOException e1) {
|
|
|
|
} catch (final IOException e1) {
|
|
|
|
log.info("error: file dispatcher.properties cannot be readed. Exit");
|
|
|
|
log.info("error: file dispatcher.properties cannot be readed. Exit");
|
|
|
|
System.exit(-1);
|
|
|
|
System.exit(-1);
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
if (fis != null) try { fis.close(); } catch (IOException ex) { }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|