use of org.commonjava.propulsor.boot.Booter in project indy by Commonjava.
the class JaxRsBooter method main.
public static void main(final String[] args) {
setDefaultUncaughtExceptionHandler();
BootOptions boot;
try {
boot = loadFromSysProps("indy", BOOT_DEFAULTS_PROP, HOME_PROP);
} catch (final BootException e) {
e.printStackTrace();
System.err.printf("ERROR: %s", e.getMessage());
System.exit(ERR_LOAD_BOOT_OPTIONS);
return;
}
try {
if (boot.parseArgs(args)) {
Booter booter = new JaxRsBooter();
booter.runAndWait(boot);
}
} catch (final BootException e) {
e.printStackTrace();
System.err.printf("ERROR: %s", e.getMessage());
System.exit(ERR_START);
}
}
Aggregations