
上QQ阅读APP看书,第一时间看更新
There's more...
We have seen quite a few options of the jdeps command. There are a few more related to filtering the dependencies and filtering the classes to be analyzed. Apart from that, there are a few options that deal with module paths.
The following are the options that can be tried out:
- -e, -regex, --regex: These find dependencies matching the given pattern.
- -f, -filter: These exclude dependencies matching the given pattern.
- -filter:none: This allows no filtering that's applied via filter:package or filter:archive.
- -filter:package: This excludes dependencies within the same package. This is the default option. For example, if we added -filter:none to jdeps sample.jar, it would print the dependency of the package to itself.
- -filter:archive: This excludes dependencies within the same archive.
- -filter:module: This excludes dependencies in the same module.
- -P, -profile: This is used to show the profile of the package, whether it is in compact1, compact2, compact3, or full JRE.
- -R, -recursive: These recursively traverse all the runtime dependencies; they are equivalent to the -filter:none option.