From 06252eb14f60561e91e4be0b347bbd9ad2e91fb3 Mon Sep 17 00:00:00 2001 From: Paul Sandoz Date: Wed, 15 Feb 2017 09:10:51 -0800 Subject: [PATCH] 8165035: jar --help-extra should provide information on the -n/--normalize option Reviewed-by: chegar, alanb, mchung, lancea, sherman --- .../share/classes/sun/tools/jar/GNUStyleOptions.java | 2 +- .../share/classes/sun/tools/jar/resources/jar.properties | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/jdk/src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java b/jdk/src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java index a95ccd8e116..dc8c02a6731 100644 --- a/jdk/src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java +++ b/jdk/src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java @@ -118,7 +118,7 @@ class GNUStyleOptions { void process(Main jartool, String opt, String arg) { jartool.nflag = true; } - boolean isHidden() { return true; } + boolean isExtra() { return true; } }, new Option(true, OptionType.CREATE_UPDATE, "--main-class", "-e") { void process(Main jartool, String opt, String arg) { diff --git a/jdk/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties b/jdk/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties index 1228af53738..948b075e932 100644 --- a/jdk/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties +++ b/jdk/src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties @@ -238,6 +238,11 @@ main.help.opt.any.file=\ \ of the jar (i.e. META-INF/versions/VERSION/) main.help.opt.any.verbose=\ \ -v, --verbose Generate verbose output on standard output +main.help.opt.create=\ +\ Operation modifiers valid only in create mode:\n +main.help.opt.create.normalize=\ +\ -n, --normalize Normalize information in the new jar archive\n\ +\ after creation main.help.opt.create.update=\ \ Operation modifiers valid only in create and update mode:\n main.help.opt.create.update.main-class=\