--- old/jdk/src/jdk.jlink/share/classes/jdk/tools/jmod/JmodTask.java 2016-10-12 19:19:35.000000000 -0700 +++ new/jdk/src/jdk.jlink/share/classes/jdk/tools/jmod/JmodTask.java 2016-10-12 19:19:35.000000000 -0700 @@ -165,6 +165,8 @@ List cmds; List configs; List libs; + List headerFiles; + List manPages; ModuleFinder moduleFinder; Version moduleVersion; String mainClass; @@ -346,6 +348,9 @@ final List libs = options.libs; final List configs = options.configs; final List classpath = options.classpath; + final List headerFiles = options.headerFiles; + final List manPages = options.manPages; + final Version moduleVersion = options.moduleVersion; final String mainClass = options.mainClass; final String osName = options.osName; @@ -369,6 +374,9 @@ processSection(out, Section.NATIVE_CMDS, cmds); processSection(out, Section.NATIVE_LIBS, libs); processSection(out, Section.CONFIG, configs); + processSection(out, Section.HEADER_FILES, headerFiles); + processSection(out, Section.MAN_PAGES, manPages); + } /** @@ -1195,6 +1203,12 @@ = parser.acceptsAll(Set.of("h", "help"), getMessage("main.opt.help")) .forHelp(); + OptionSpec headerFiles + = parser.accepts("header-files", getMessage("main.opt.header-files")) + .withRequiredArg() + .withValuesSeparatedBy(File.pathSeparatorChar) + .withValuesConvertedBy(DirPathConverter.INSTANCE); + OptionSpec libs = parser.accepts("libs", getMessage("main.opt.libs")) .withRequiredArg() @@ -1206,6 +1220,12 @@ .withRequiredArg() .describedAs(getMessage("main.opt.main-class.arg")); + OptionSpec manPages + = parser.accepts("man-pages", getMessage("main.opt.man-pages")) + .withRequiredArg() + .withValuesSeparatedBy(File.pathSeparatorChar) + .withValuesConvertedBy(DirPathConverter.INSTANCE); + OptionSpec modulePath = parser.acceptsAll(Set.of("p", "module-path"), getMessage("main.opt.module-path")) @@ -1272,6 +1292,10 @@ options.excludes = opts.valuesOf(excludes); if (opts.has(libs)) options.libs = opts.valuesOf(libs); + if (opts.has(headerFiles)) + options.headerFiles = opts.valuesOf(headerFiles); + if (opts.has(manPages)) + options.manPages = opts.valuesOf(manPages); if (opts.has(modulePath)) { Path[] dirs = opts.valuesOf(modulePath).toArray(new Path[0]); options.moduleFinder = ModuleFinder.of(dirs);