Search in sources :

Example 6 with WsgenOptions

use of com.sun.tools.ws.wscompile.WsgenOptions in project metro-jax-ws by eclipse-ee4j.

the class WebServiceWrapperGenerator method doPostProcessWebService.

@SuppressWarnings("CallToThreadDumpStack")
protected void doPostProcessWebService(WebService webService, TypeElement d) {
    if (cm != null) {
        WsgenOptions options = builder.getOptions();
        assert options.filer != null;
        try {
            CodeWriter cw = new FilerCodeWriter(options);
            if (options.verbose)
                cw = new ProgressCodeWriter(cw, System.out);
            cm.build(cw);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
Also used : WsgenOptions(com.sun.tools.ws.wscompile.WsgenOptions) ProgressCodeWriter(com.sun.codemodel.writer.ProgressCodeWriter) IOException(java.io.IOException) FilerCodeWriter(com.sun.tools.ws.wscompile.FilerCodeWriter) ProgressCodeWriter(com.sun.codemodel.writer.ProgressCodeWriter) CodeWriter(com.sun.codemodel.CodeWriter) FilerCodeWriter(com.sun.tools.ws.wscompile.FilerCodeWriter)

Aggregations

WsgenOptions (com.sun.tools.ws.wscompile.WsgenOptions)6 ModelerException (com.sun.tools.ws.processor.modeler.ModelerException)3 IOException (java.io.IOException)2 DiagnosticCollector (javax.tools.DiagnosticCollector)2 JavaCompiler (javax.tools.JavaCompiler)2 JavaFileObject (javax.tools.JavaFileObject)2 SimpleJavaFileObject (javax.tools.SimpleJavaFileObject)2 CodeWriter (com.sun.codemodel.CodeWriter)1 ProgressCodeWriter (com.sun.codemodel.writer.ProgressCodeWriter)1 AbortException (com.sun.tools.ws.wscompile.AbortException)1 FilerCodeWriter (com.sun.tools.ws.wscompile.FilerCodeWriter)1 WsgenTool (com.sun.tools.ws.wscompile.WsgenTool)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 File (java.io.File)1 PrintStream (java.io.PrintStream)1 Field (java.lang.reflect.Field)1 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)1 Document (org.w3c.dom.Document)1 NodeList (org.w3c.dom.NodeList)1 SAXException (org.xml.sax.SAXException)1