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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0u5
    • core-libs
    • None
    • Fix Understood
    • generic
    • generic

      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.

            Unassigned Unassigned
            bristor Dave Bristor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: