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

Jar tool's command line help confusingly recommends using '/' in directory name

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 5.0u5
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      generic
    • OS:
      generic

      Description

      When the jar command is run without arguments, it prints some help, at the end including this example:

      Example 2: use an existing manifest file 'mymanifest' and archive all the
                 files in the foo/ directory into 'classes.jar':
             jar cvfm classes.jar mymanifest -C foo/ .

      Including the '/' in "foo/" is worse than confusing: On windows, it causes the resulting jar to be created as if the -C had not been given.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bristor Dave Bristor
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: