public GenericAppRunner(String[] args) {
new ReleaseTag();
try {
String propFileName = args[0];
Properties props = new Properties();
AppConfig aConfig = null;
InputStream in = null;
// try it as a URL first, if that doens't work,
// try it as a file.
boolean isUrl = false;
java.net.URL url = null;
try {
url = new java.net.URL(propFileName);
isUrl = true;
}
catch (Exception e) {
isUrl = false;
}
if (isUrl) {
in = url.openStream();
}
else {
in = new FileInputStream(propFileName);
}
props.load(in);
in.close();
aConfig = new AppConfig(props);
}
catch (Exception e) {
logger.fatal("GenericAppRunner: Error initializing AppConfig. Exception: " + e.getMessage());
System.exit(-1);
}