Logs.info(" -h,--help Display help information");
Logs.info(" -v,--version Display version information");
Logs.info(" -X,--debug Produce execution debug output");
- System.exit(0);
+ System.exit(Exit.SUCCESS);
}
}
private File locatePropertiesFile(Properties props, String homeKey, String relativePathFromHome, String settingsKey) {
File settingsFile = null;
- String runnerHome = props.getProperty(homeKey);
- if (runnerHome != null && !"".equals(runnerHome)) {
+ String runnerHome = props.getProperty(homeKey, "");
+ if (!"".equals(runnerHome)) {
settingsFile = new File(runnerHome, relativePathFromHome);
}
if (settingsFile == null || !settingsFile.exists()) {
- String settingsPath = props.getProperty(settingsKey);
- if (settingsPath != null && !"".equals(settingsPath)) {
+ String settingsPath = props.getProperty(settingsKey, "");
+ if (!"".equals(settingsPath)) {
settingsFile = new File(settingsPath);
}
}