< prev index next >

jdk/src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java

Print this page

        

*** 89,99 **** if (tool.cflag || tool.iflag || tool.tflag || tool.uflag || tool.printModuleDescriptor) throw new BadArgs("error.multiple.main.operations").showUsage(true); tool.xflag = true; } }, ! new Option(false, OptionType.MAIN_OPERATION, "--print-module-descriptor", "-p") { void process(Main tool, String opt, String arg) throws BadArgs { if (tool.cflag || tool.iflag || tool.tflag || tool.uflag || tool.xflag) throw new BadArgs("error.multiple.main.operations").showUsage(true); tool.printModuleDescriptor = true; } --- 89,99 ---- if (tool.cflag || tool.iflag || tool.tflag || tool.uflag || tool.printModuleDescriptor) throw new BadArgs("error.multiple.main.operations").showUsage(true); tool.xflag = true; } }, ! new Option(false, OptionType.MAIN_OPERATION, "--print-module-descriptor", "-d") { void process(Main tool, String opt, String arg) throws BadArgs { if (tool.cflag || tool.iflag || tool.tflag || tool.uflag || tool.xflag) throw new BadArgs("error.multiple.main.operations").showUsage(true); tool.printModuleDescriptor = true; }
*** 143,153 **** } catch (PatternSyntaxException e) { throw new BadArgs("err.badpattern", arg).showUsage(true); } } }, ! new Option(true, OptionType.CREATE_UPDATE, "--modulepath", "--mp") { void process(Main jartool, String opt, String arg) { String[] dirs = arg.split(File.pathSeparator); Path[] paths = new Path[dirs.length]; int i = 0; for (String dir : dirs) { --- 143,153 ---- } catch (PatternSyntaxException e) { throw new BadArgs("err.badpattern", arg).showUsage(true); } } }, ! new Option(true, OptionType.CREATE_UPDATE, "--module-path", "-p") { void process(Main jartool, String opt, String arg) { String[] dirs = arg.split(File.pathSeparator); Path[] paths = new Path[dirs.length]; int i = 0; for (String dir : dirs) {
< prev index next >