public static void printUsage(JSAP jsap, LauncherType launcherType) { String moduleName = "repairnator-"+launcherType.name().toLowerCase(); System.err.println("Usage: java <"+moduleName+" name> [option(s)]"); System.err.println(); System.err.println("Options: "); System.err.println(); System.err.println(jsap.getHelp()); if (launcherType == LauncherType.PIPELINE) { System.err.println("The environment variable " + Utils.M2_HOME + " should be set and refer to the path of your maven home installation."); System.err.println("For using Nopol, you must add tools.jar in your classpath from your installed jdk"); } System.exit(-1); }
private void initNotifiers() { if (this.config.isNotifyEndProcess()) { List<NotifierEngine> notifierEngines = LauncherUtils.initNotifierEngines(LOGGER); this.endProcessNotifier = new EndProcessNotifier(notifierEngines, LauncherType.CHECKBRANCHES.name().toLowerCase()+" (runid: "+this.config.getRunId()+")"); } }
private void initNotifiers() { if (this.config.isNotifyEndProcess()) { List<NotifierEngine> notifierEngines = LauncherUtils.initNotifierEngines(LOGGER); this.endProcessNotifier = new EndProcessNotifier(notifierEngines, LauncherType.SCANNER.name().toLowerCase()+" (runid: "+this.config.getRunId()+")"); } }
private void initNotifiers() { if (this.config.isNotifyEndProcess()) { List<NotifierEngine> notifierEngines = LauncherUtils.initNotifierEngines(LOGGER); this.endProcessNotifier = new EndProcessNotifier(notifierEngines, LauncherType.DOCKERPOOL.name().toLowerCase()+" (runid: "+this.config.getRunId()+")"); } }
private void initNotifiers() { if (this.config.isNotifyEndProcess()) { List<NotifierEngine> notifierEngines = LauncherUtils.initNotifierEngines(LOGGER); this.endProcessNotifier = new EndProcessNotifier(notifierEngines, LauncherType.REALTIME.name().toLowerCase()+" (runid: "+this.config.getRunId()+")"); } }