/** * @param args (1) pos-tagger file-name, (2) easy-first host, (3) easy-first port * (4) nomlex-plus file, (5) class-role-table file */ public static void main(String[] args) { try { if (args.length<5) throw new RuntimeException("args"); DemoParseAndDisplay app = new DemoParseAndDisplay(args[0], args[1],Integer.parseInt(args[2]),args[3],args[4]); app.go(); } catch(Exception e) { ExceptionUtil.outputException(e, System.out); } }
public void main(Class<?> cls, String[] args) { Logger logger = null; try { logger = mainCanThrowExceptions(cls, args); } catch (Throwable e) { ExceptionUtil.outputException(e, System.out); if (logger!=null) { ExceptionUtil.logException(e, logger); } } }
/** * @param args */ public static void main(String[] args) { try { System.out.println("Change log for: "+Version.getVersion().toString()); System.out.println(ChangeLog.logAsString()); } catch(Exception e) { ExceptionUtil.outputException(e, System.out); } }
ExceptionUtil.outputException(e, System.out);
public static void main(String[] args) { try { if (args.length<1) { System.out.println("Argument missing. Should be configuration file name"); } String configurationFileName = args[0]; new LogInitializer(configurationFileName).init(); RTESumPreProcessor application = new RTESumPreProcessor(configurationFileName); application.preprocess(); } catch(Exception e) { ExceptionUtil.outputException(e, System.out); ExceptionUtil.logException(e, logger); } }
ExceptionUtil.outputException(e, System.out); try{ExceptionUtil.logException(e, logger);}catch(Exception ex){}
ExceptionUtil.outputException(e, System.out);
public static void main(String[] args) { // The only important line in this function is // runBiuteeCustomFlow(args[0], args[1]); try { try { if (args.length != 2) { throw new BiuteeMainException("Exactly 2 arguments must be provided: <configuration path> <flow list>"); } runBiuteeCustomFlow(args[0], args[1]); } finally { if (logger!=null) { GlobalMessages.getInstance().addToLogAndExperimentManager(logger); } } } catch(Throwable t) { ExceptionUtil.outputException(t, System.out); if (logger!=null) { try{ExceptionUtil.logException(t, logger);}catch(Throwable tt){} } } }