/** * Entry point for the caliper benchmark runner application; run with {@code --help} for details. */ public static void main(String[] args) { PrintWriter stdout = new PrintWriter(System.out, true); PrintWriter stderr = new PrintWriter(System.err, true); int code = 1; // pessimism! try { exitlessMain(args, stdout, stderr); code = 0; } catch (InvalidCommandException e) { e.display(stderr); code = e.exitCode(); } catch (InvalidBenchmarkException e) { e.display(stderr); } catch (InvalidConfigurationException e) { e.display(stderr); } catch (Throwable t) { t.printStackTrace(stderr); stdout.println(); stdout.println("An unexpected exception has been thrown by the caliper runner."); stdout.println("Please see https://sites.google.com/site/caliperusers/issues"); } stdout.flush(); stderr.flush(); System.exit(code); }
/** * Entry point for the caliper benchmark runner application; run with {@code --help} for details. */ public static void main(String[] args) { PrintWriter stdout = new PrintWriter(System.out, true); PrintWriter stderr = new PrintWriter(System.err, true); int code = 1; // pessimism! try { exitlessMain(args, stdout, stderr); code = 0; } catch (InvalidCommandException e) { e.display(stderr); code = e.exitCode(); } catch (InvalidBenchmarkException e) { e.display(stderr); } catch (InvalidConfigurationException e) { e.display(stderr); } catch (Throwable t) { t.printStackTrace(stderr); stdout.println(); stdout.println("An unexpected exception has been thrown by the caliper runner."); stdout.println("Please see https://sites.google.com/site/caliperusers/issues"); } stdout.flush(); stderr.flush(); System.exit(code); }