Search in sources :

Example 1 with Booter

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);
    }
}
Also used : BootException(org.commonjava.propulsor.boot.BootException) BootOptions(org.commonjava.propulsor.boot.BootOptions) Booter(org.commonjava.propulsor.boot.Booter)

Aggregations

BootException (org.commonjava.propulsor.boot.BootException)1 BootOptions (org.commonjava.propulsor.boot.BootOptions)1 Booter (org.commonjava.propulsor.boot.Booter)1