--- old/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsimportOptions.java 2016-09-26 02:16:01.808674070 +0300 +++ new/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/WsimportOptions.java 2016-09-26 02:16:01.716672702 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -133,6 +133,11 @@ public boolean useBaseResourceAndURLToLoadWSDL = false; /** + * Java module name in {@code module-info.java}. + */ + private String javaModule = null; + + /** * JAXB's {@link SchemaCompiler} to be used for handling the schema portion. * This object is also configured through options. */ @@ -219,6 +224,14 @@ } /** + * Gets Java module name option. + * @return Java module name option or {@code null} if this option was not set. + */ + public String getModuleName() { + return javaModule; + } + + /** * Parses arguments and fill fields of this object. * * @exception BadCommandLineException @@ -294,6 +307,9 @@ } else if (args[i].equals("-p")) { defaultPackage = requireArgument("-p", args, ++i); return 2; + } else if (args[i].equals("-m")) { + javaModule = requireArgument("-m", args, ++i); + return 2; } else if (args[i].equals("-catalog")) { String catalog = requireArgument("-catalog", args, ++i); try {