private Launcher(String[] args) throws JSAPException { JSAP jsap = this.defineArgs(); JSAPResult arguments = jsap.parse(args); LauncherUtils.checkArguments(jsap, arguments, LauncherType.CHECKBRANCHES); this.initConfig(arguments); this.initNotifiers(); }
private Launcher(String[] args) throws JSAPException { JSAP jsap = this.defineArgs(); JSAPResult arguments = jsap.parse(args); LauncherUtils.checkArguments(jsap, arguments, LauncherType.DOCKERPOOL); this.initConfig(arguments); this.initSerializerEngines(); this.initNotifiers(); }
public Launcher(String[] args) throws JSAPException { InputStream propertyStream = getClass().getResourceAsStream("/version.properties"); Properties properties = new Properties(); if (propertyStream != null) { try { properties.load(propertyStream); } catch (IOException e) { LOGGER.error("Error while loading property file.", e); } LOGGER.info("SCANNER VERSION: "+properties.getProperty("SCANNER_VERSION")); } else { LOGGER.info("No information about SCANNER VERSION has been found."); } JSAP jsap = this.defineArgs(); JSAPResult arguments = jsap.parse(args); LauncherUtils.checkArguments(jsap, arguments, LauncherType.SCANNER); this.initConfig(arguments); // "this.config" is only available after this call, which initializes the config if (this.config.isDebug()) { Utils.setLoggersLevel(Level.DEBUG); } else { Utils.setLoggersLevel(Level.INFO); } this.initSerializerEngines(); this.initNotifiers(); }
private RTLauncher(String[] args) throws JSAPException { JSAP jsap = this.defineArgs(); JSAPResult arguments = jsap.parse(args); LauncherUtils.checkArguments(jsap, arguments, LauncherType.REALTIME); this.initConfig(arguments); this.initSerializerEngines(); this.initNotifiers(); this.initSummaryEmails(); }
LauncherUtils.checkArguments(jsap, arguments, LauncherType.PIPELINE); this.initConfig(arguments);