Description
jdeps is one of the tools taking the classpath to analyze classfiles. The existing langtools CLI options follow the traditional Java-style. Given that we want to upgrade the existing JDK tools to GNU-style options in JDK 9, it'd be desirable to have jdeps follow the existing convention as the existing langtools and upgrade to GNU-style in a consistent way.
Convert the jdeps options as follows:
-cp <path> -classpath <path> Specify where to find class files.
-s -summary Print dependency summary only
-v -verbose Print all class level dependencies
-verbose:package Print package-level dependencies excluding
dependencies within the same archive
-verbose:class Print class-level dependencies excluding
dependencies within the same archive
-p <pkgname> -package <pkgname> Restrict analysis to classes in this package
(may be given multiple times).
-e <regex> -regex <regex> Restrict analysis to packages matching pattern
(-p and -e are exclusive)
-P -profile Show profile or the file containing a package
-R -recursive Recursively traverse all dependencies
-version Version information
Convert the jdeps options as follows:
-cp <path> -classpath <path> Specify where to find class files.
-s -summary Print dependency summary only
-v -verbose Print all class level dependencies
-verbose:package Print package-level dependencies excluding
dependencies within the same archive
-verbose:class Print class-level dependencies excluding
dependencies within the same archive
-p <pkgname> -package <pkgname> Restrict analysis to classes in this package
(may be given multiple times).
-e <regex> -regex <regex> Restrict analysis to packages matching pattern
(-p and -e are exclusive)
-P -profile Show profile or the file containing a package
-R -recursive Recursively traverse all dependencies
-version Version information
Attachments
Issue Links
- relates to
-
JDK-8026030 jdeps man page and other relevant docs need update per the jdeps tool enhancements
- Resolved