Java Code Examples for com.sun.tools.internal.ws.wscompile.ErrorReceiver#warning()
The following examples show how to use
com.sun.tools.internal.ws.wscompile.ErrorReceiver#warning() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JwsImplGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example 2
Source File: JwsImplGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example 3
Source File: JwsImplGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example 4
Source File: JwsImplGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example 5
Source File: JwsImplGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example 6
Source File: JwsImplGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example 7
Source File: JwsImplGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example 8
Source File: JwsImplGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }