jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsimportOptions.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
131 * -XuseBaseResourceAndURLToLoadWSDL |
131 * -XuseBaseResourceAndURLToLoadWSDL |
132 */ |
132 */ |
133 public boolean useBaseResourceAndURLToLoadWSDL = false; |
133 public boolean useBaseResourceAndURLToLoadWSDL = false; |
134 |
134 |
135 /** |
135 /** |
|
136 * Java module name in {@code module-info.java}. |
|
137 */ |
|
138 private String javaModule = null; |
|
139 |
|
140 /** |
136 * JAXB's {@link SchemaCompiler} to be used for handling the schema portion. |
141 * JAXB's {@link SchemaCompiler} to be used for handling the schema portion. |
137 * This object is also configured through options. |
142 * This object is also configured through options. |
138 */ |
143 */ |
139 private SchemaCompiler schemaCompiler = XJC.createSchemaCompiler(); |
144 private SchemaCompiler schemaCompiler = XJC.createSchemaCompiler(); |
140 |
145 |
217 } |
222 } |
218 return allPlugins; |
223 return allPlugins; |
219 } |
224 } |
220 |
225 |
221 /** |
226 /** |
|
227 * Gets Java module name option. |
|
228 * @return Java module name option or {@code null} if this option was not set. |
|
229 */ |
|
230 public String getModuleName() { |
|
231 return javaModule; |
|
232 } |
|
233 |
|
234 /** |
222 * Parses arguments and fill fields of this object. |
235 * Parses arguments and fill fields of this object. |
223 * |
236 * |
224 * @exception BadCommandLineException |
237 * @exception BadCommandLineException |
225 * thrown when there's a problem in the command-line arguments |
238 * thrown when there's a problem in the command-line arguments |
226 */ |
239 */ |
291 } else if (args[i].equals("-XdisableSSLHostnameVerification")) { |
304 } else if (args[i].equals("-XdisableSSLHostnameVerification")) { |
292 disableSSLHostnameVerification = true; |
305 disableSSLHostnameVerification = true; |
293 return 1; |
306 return 1; |
294 } else if (args[i].equals("-p")) { |
307 } else if (args[i].equals("-p")) { |
295 defaultPackage = requireArgument("-p", args, ++i); |
308 defaultPackage = requireArgument("-p", args, ++i); |
|
309 return 2; |
|
310 } else if (args[i].equals("-m")) { |
|
311 javaModule = requireArgument("-m", args, ++i); |
296 return 2; |
312 return 2; |
297 } else if (args[i].equals("-catalog")) { |
313 } else if (args[i].equals("-catalog")) { |
298 String catalog = requireArgument("-catalog", args, ++i); |
314 String catalog = requireArgument("-catalog", args, ++i); |
299 try { |
315 try { |
300 if (entityResolver == null) { |
316 if (entityResolver == null) { |