< prev index next >

src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java

Print this page

        

*** 140,152 **** if (Files.exists(path)) { throw taskHelper.newBadArgs("err.dir.exists", path); } task.options.packagedModulesPath = path; }, true, "--keep-packaged-modules"), - new Option<JlinkTask>(false, (task, opt, arg) -> { - task.options.genbom = true; - }, true, "--genbom"), new Option<JlinkTask>(true, (task, opt, arg) -> { task.options.saveoptsfile = arg; }, "--saveopts"), new Option<JlinkTask>(false, (task, opt, arg) -> { task.options.fullVersion = true; --- 140,149 ----
*** 173,183 **** EXIT_SYSERR = 3, // System error or resource exhaustion. EXIT_ABNORMAL = 4;// terminated abnormally static class OptionsValues { boolean help; - boolean genbom; String saveoptsfile; boolean version; boolean fullVersion; Path[] modulePath; Set<String> limitMods = new HashSet<>(); --- 170,179 ----
*** 273,284 **** config.getLimitmods(), config.getByteOrder(), null); // Then create the Plugin Stack ! ImagePluginStack stack = ImagePluginConfiguration.parseConfiguration(plugins, ! genBOMContent(config, plugins)); //Ask the stack to proceed; stack.operate(imageProvider); } --- 269,279 ---- config.getLimitmods(), config.getByteOrder(), null); // Then create the Plugin Stack ! ImagePluginStack stack = ImagePluginConfiguration.parseConfiguration(plugins); //Ask the stack to proceed; stack.operate(imageProvider); }
*** 295,305 **** stack.operate((ImagePluginStack stack1) -> image); } private void postProcessOnly(Path existingImage) throws Exception { ! PluginsConfiguration config = taskHelper.getPluginsConfig(null, false); ExecutableImage img = DefaultImageBuilder.getExecutableImage(existingImage); if (img == null) { throw taskHelper.newBadArgs("err.existing.image.invalid"); } postProcessImage(img, config.getPlugins()); --- 290,300 ---- stack.operate((ImagePluginStack stack1) -> image); } private void postProcessOnly(Path existingImage) throws Exception { ! PluginsConfiguration config = taskHelper.getPluginsConfig(null); ExecutableImage img = DefaultImageBuilder.getExecutableImage(existingImage); if (img == null) { throw taskHelper.newBadArgs("err.existing.image.invalid"); } postProcessImage(img, config.getPlugins());
*** 325,336 **** options.endian, options.packagedModulesPath); // Then create the Plugin Stack ImagePluginStack stack = ImagePluginConfiguration. ! parseConfiguration(taskHelper.getPluginsConfig(options.output, options.genbom), ! genBOMContent()); //Ask the stack to proceed stack.operate(imageProvider); } --- 320,330 ---- options.endian, options.packagedModulesPath); // Then create the Plugin Stack ImagePluginStack stack = ImagePluginConfiguration. ! parseConfiguration(taskHelper.getPluginsConfig(options.output)); //Ask the stack to proceed stack.operate(imageProvider); }
< prev index next >