8301207: (jdeps) Deprecate jdeps -profile option

Reviewed-by: alanb
This commit is contained in:
Mandy Chung 2023-01-30 22:39:55 +00:00
parent 561a25e025
commit 2d7690b2e5
2 changed files with 6 additions and 2 deletions
src/jdk.jdeps/share/classes/com/sun/tools/jdeps

@ -515,6 +515,9 @@ class JdepsTask {
if (options.version || options.fullVersion) {
showVersion(options.fullVersion);
}
if (options.showProfile && !options.nowarning) {
warning("warn.deprecated.option", "-profile");
}
if (options.help || options.version || options.fullVersion) {
return EXIT_OK;
}

@ -99,8 +99,8 @@ main.opt.include=\n\
\ -p and -e which apply pattern to the dependences
main.opt.P=\
\ -P -profile Show profile containing a package
\ -P -profile Show profile containing a package. This option\n\
\ is deprecated and may be removed in a future release.
main.opt.cp=\
\ -cp <path>\n\
\ -classpath <path>\n\
@ -252,6 +252,7 @@ err.missing.dependences=\
Missing dependencies: classes not found from the module path and classpath.\n\
To suppress this error, use --ignore-missing-deps to continue.
warn.deprecated.option={0} option is deprecated and may be removed in a future release.
warn.invalid.arg=Path does not exist: {0}
warn.skipped.entry={0}
warn.split.package=split package: {0} {1}