@Override public void run() { tool.run(toolArgs); } });
@Override public boolean wsimport(OutputStream logStream, Container container, String[] args) { WsimportTool tool = new WsimportTool(logStream, container); return tool.run(args); }
@Override public void run() { try { if( !new WsimportTool( System.out ).run( arguments.toArray( new String[ arguments.size() ] ) ) ) { throw new RuntimeException( "Unable to import WSDL, see output for more details" ); } } catch( Throwable throwable ) { throw new RuntimeException( "Unable to import WSDL", throwable ); } } }
@Override public boolean wsimport(OutputStream logStream, Container container, String[] args) { WsimportTool tool = new WsimportTool(logStream, container); return tool.run(args); }
@Override public boolean wsimport(OutputStream logStream, Container container, String[] args) { WsimportTool tool = new WsimportTool(logStream, container); return tool.run(args); }
@Override public boolean wsimport(OutputStream logStream, Container container, String[] args) { WsimportTool tool = new WsimportTool(logStream, container); return tool.run(args); }
protected void runWSImport(WsimportTool tool) throws Exception { tool.run(toolArgs); }
/** * Entry point for tool integration. * * <p> * This does the same as {@link #main(String[])} except * it doesn't invoke {@link System#exit(int)}. This method * also doesn't play with classloaders. It's the caller's * responsibility to set up the classloader to load all jars * needed to run the tool. * * @return * 0 if the tool runs successfully. */ public static int doMain(String[] args) throws Throwable { return new WsimportTool(System.out).run(args) ? 0 : 1; } }
/** * Entry point for tool integration. * * <p> * This does the same as {@link #main(String[])} except * it doesn't invoke {@link System#exit(int)}. This method * also doesn't play with classloaders. It's the caller's * responsibility to set up the classloader to load all jars * needed to run the tool. * * @return * 0 if the tool runs successfully. */ public static int doMain(String[] args) throws Throwable { return new WsimportTool(System.out).run(args) ? 0 : 1; } }
/** * Entry point for tool integration. * * <p> * This does the same as {@link #main(String[])} except * it doesn't invoke {@link System#exit(int)}. This method * also doesn't play with classloaders. It's the caller's * responsibility to set up the classloader to load all jars * needed to run the tool. * * @return * 0 if the tool runs successfully. */ public static int doMain(String[] args) throws Throwable { return new WsimportTool(System.out).run(args) ? 0 : 1; } }
/** * Entry point for tool integration. * * <p> * This does the same as {@link #main(String[])} except * it doesn't invoke {@link System#exit(int)}. This method * also doesn't play with classloaders. It's the caller's * responsibility to set up the classloader to load all jars * needed to run the tool. * * @return * 0 if the tool runs successfully. */ public static int doMain(String[] args) throws Throwable { return new WsimportTool(System.out).run(args) ? 0 : 1; } }
public boolean run(String[] args) { Listener listener = new Listener(); Receiver receiver = new Receiver(listener); return run(args, listener, receiver); }
@Override protected boolean runInVm(String[] arguments, OutputStream out) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); String sysPath = System.getProperty("java.class.path"); if (loader instanceof AntClassLoader) { System.setProperty("java.class.path", ((AntClassLoader) loader).getClasspath()); } WsimportTool compTool = new WsimportTool(out); if (xmlCatalog != null) { compTool.setEntityResolver(xmlCatalog); } try { return compTool.run(arguments); } finally { if (sysPath != null) { System.setProperty("java.class.path", sysPath); } } } }
public boolean run(String[] args) { Listener listener = new Listener(); Receiver receiver = new Receiver(listener); return run(args, listener, receiver); }
public boolean run(String[] args) { Listener listener = new Listener(); Receiver receiver = new Receiver(listener); return run(args, listener, receiver); }
public boolean run(String[] args) { Listener listener = new Listener(); Receiver receiver = new Receiver(listener); return run(args, listener, receiver); }
@Override protected boolean runInVm(String[] arguments, OutputStream out) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); String sysPath = System.getProperty("java.class.path"); if (loader instanceof AntClassLoader) { System.setProperty("java.class.path", ((AntClassLoader) loader).getClasspath()); } WsimportTool compTool = new WsimportTool(out); if (xmlCatalog != null) { compTool.setEntityResolver(xmlCatalog); } try { return compTool.run(arguments); } finally { if (sysPath != null) { System.setProperty("java.class.path", sysPath); } } } }
@Override protected boolean runInVm(String[] arguments, OutputStream out) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); String sysPath = System.getProperty("java.class.path"); if (loader instanceof AntClassLoader) { System.setProperty("java.class.path", ((AntClassLoader) loader).getClasspath()); } WsimportTool compTool = new WsimportTool(out); if (xmlCatalog != null) { compTool.setEntityResolver(xmlCatalog); } try { return compTool.run(arguments); } finally { if (sysPath != null) { System.setProperty("java.class.path", sysPath); } } } }
@Override protected boolean runInVm(String[] arguments, OutputStream out) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); String sysPath = System.getProperty("java.class.path"); if (loader instanceof AntClassLoader) { System.setProperty("java.class.path", ((AntClassLoader) loader).getClasspath()); } WsimportTool compTool = new WsimportTool(out); if (xmlCatalog != null) { compTool.setEntityResolver(xmlCatalog); } try { return compTool.run(arguments); } finally { if (sysPath != null) { System.setProperty("java.class.path", sysPath); } } } }
/** * Generate. * * @throws CodeGenerationException * the code generation exception */ public void generate() throws CodeGenerationException { WsimportTool importTool = new WsimportTool(new WriterOutputStream(new LogWriter(log))); ArrayList<String> args = new ArrayList<String>(); configurImportToolOptions(args); mergeOriginalArgs(args); boolean success = importTool.run(args.toArray(new String[args.size()])); if (success) { log.info("Code generation completed"); } }