Search in sources :

Example 1 with FilerCodeWriter

use of com.sun.tools.ws.wscompile.FilerCodeWriter 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

CodeWriter (com.sun.codemodel.CodeWriter)1 ProgressCodeWriter (com.sun.codemodel.writer.ProgressCodeWriter)1 FilerCodeWriter (com.sun.tools.ws.wscompile.FilerCodeWriter)1 WsgenOptions (com.sun.tools.ws.wscompile.WsgenOptions)1 IOException (java.io.IOException)1