Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8026255

Switch jdeps to follow traditional Java option style

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • tools
    • None
    • b113

    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

      Attachments

        Issue Links

          Activity

            People

              mchung Mandy Chung
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: