public void execute(boolean exitOnFinish) throws ToolException { init(); try { parseCommandLine(); } catch (BadUsageException | IOException e) { throw new ToolException(e); } }
public void setArguments(String[] args) { if (args == null) { return; } arguments = new String[args.length]; System.arraycopy(args, 0, arguments, 0, args.length); setMode(args); if (isQuietMode()) { redirectOutput(); } }
public void execute(boolean exitOnFinish) throws ToolException { super.execute(exitOnFinish); if (hasInfoOption()) { outputInfo(); } else { if (commandDocument.hasParameter(ToolConstants.CFG_VERBOSE)) { verbose = true; outputFullCommandLine(); outputVersion(); } checkParams(errors); } }
public Bus getBus() { Bus bus = BusFactory.getDefaultBus(); OASISCatalogManager catalogManager = bus.getExtension(OASISCatalogManager.class); String catalogLocation = getCatalogURL(); if (!StringUtils.isEmpty(catalogLocation)) { try { catalogManager.loadCatalog(new URI(catalogLocation).toURL()); } catch (Exception e) { e.printStackTrace(err); throw new ToolException(new Message("FOUND_NO_FRONTEND", LOG, catalogLocation)); } } return bus; } protected String getCatalogURL() {
public void execute(boolean exitOnFinish) throws ToolException { super.execute(exitOnFinish); if (hasInfoOption()) { outputInfo(); } else { if (commandDocument.hasParameter(ToolConstants.CFG_VERBOSE)) { verbose = true; outputFullCommandLine(); outputVersion(); } checkParams(errors); } }
public Bus getBus() { Bus bus = BusFactory.getDefaultBus(); OASISCatalogManager catalogManager = bus.getExtension(OASISCatalogManager.class); String catalogLocation = getCatalogURL(); if (!StringUtils.isEmpty(catalogLocation)) { try { catalogManager.loadCatalog(new URI(catalogLocation).toURL()); } catch (Exception e) { e.printStackTrace(err); throw new ToolException(new Message("FOUND_NO_FRONTEND", LOG, catalogLocation)); } } return bus; } protected String getCatalogURL() {
public void setArguments(String[] args) { if (args == null) { return; } arguments = new String[args.length]; System.arraycopy(args, 0, arguments, 0, args.length); setMode(args); if (isQuietMode()) { redirectOutput(); } }
public void execute(boolean exitOnFinish) throws ToolException { init(); try { parseCommandLine(); } catch (BadUsageException | IOException e) { throw new ToolException(e); } }