< prev index next >

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

Print this page
rev 14867 : 8159172: Update usage of jlink/jimage/jmod to show option patterns
Reviewed-by: mchung


 567                 log.println(bundleHelper.getMessage("plugin.opt." + name));
 568             }
 569 
 570             log.println(bundleHelper.getMessage("main.command.files"));
 571         }
 572 
 573         public void listPlugins(boolean showsImageBuilder) {
 574             log.println("\n" + bundleHelper.getMessage("main.extended.help"));
 575             List<Plugin> pluginList = PluginRepository.
 576                     getPlugins(pluginOptions.pluginsLayer);
 577             for (Plugin plugin : Utils.
 578                     getSortedPreProcessors(pluginList)) {
 579                 showPlugin(plugin, log, showsImageBuilder);
 580             }
 581 
 582             if (showsImageBuilder) {
 583                 for (Plugin plugin : Utils.getSortedPostProcessors(pluginList)) {
 584                     showPlugin(plugin, log, showsImageBuilder);
 585                 }
 586             }


 587         }
 588 
 589         private void showPlugin(Plugin plugin, PrintWriter log, boolean showsImageBuilder) {
 590             if (showsPlugin(plugin, showsImageBuilder)) {
 591                 log.println("\n" + bundleHelper.getMessage("main.plugin.name")
 592                         + ": " + plugin.getName());
 593 
 594                 // print verbose details for non-builtin plugins
 595                 if (!Utils.isBuiltin(plugin)) {
 596                     log.println(bundleHelper.getMessage("main.plugin.class")
 597                          + ": " + plugin.getClass().getName());
 598                     log.println(bundleHelper.getMessage("main.plugin.module")
 599                          + ": " + plugin.getClass().getModule().getName());
 600                     Category category = Utils.getCategory(plugin);
 601                     log.println(bundleHelper.getMessage("main.plugin.category")
 602                          + ": " + category.getName());
 603                     log.println(bundleHelper.getMessage("main.plugin.state")
 604                         + ": " + plugin.getStateDescription());
 605                 }
 606 




 567                 log.println(bundleHelper.getMessage("plugin.opt." + name));
 568             }
 569 
 570             log.println(bundleHelper.getMessage("main.command.files"));
 571         }
 572 
 573         public void listPlugins(boolean showsImageBuilder) {
 574             log.println("\n" + bundleHelper.getMessage("main.extended.help"));
 575             List<Plugin> pluginList = PluginRepository.
 576                     getPlugins(pluginOptions.pluginsLayer);
 577             for (Plugin plugin : Utils.
 578                     getSortedPreProcessors(pluginList)) {
 579                 showPlugin(plugin, log, showsImageBuilder);
 580             }
 581 
 582             if (showsImageBuilder) {
 583                 for (Plugin plugin : Utils.getSortedPostProcessors(pluginList)) {
 584                     showPlugin(plugin, log, showsImageBuilder);
 585                 }
 586             }
 587             
 588             log.println("\n" + bundleHelper.getMessage("main.extended.help.footer"));
 589         }
 590 
 591         private void showPlugin(Plugin plugin, PrintWriter log, boolean showsImageBuilder) {
 592             if (showsPlugin(plugin, showsImageBuilder)) {
 593                 log.println("\n" + bundleHelper.getMessage("main.plugin.name")
 594                         + ": " + plugin.getName());
 595 
 596                 // print verbose details for non-builtin plugins
 597                 if (!Utils.isBuiltin(plugin)) {
 598                     log.println(bundleHelper.getMessage("main.plugin.class")
 599                          + ": " + plugin.getClass().getName());
 600                     log.println(bundleHelper.getMessage("main.plugin.module")
 601                          + ": " + plugin.getClass().getModule().getName());
 602                     Category category = Utils.getCategory(plugin);
 603                     log.println(bundleHelper.getMessage("main.plugin.category")
 604                          + ": " + category.getName());
 605                     log.println(bundleHelper.getMessage("main.plugin.state")
 606                         + ": " + plugin.getStateDescription());
 607                 }
 608 


< prev index next >