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

jar xvf prints "extracted" when it means "inflated", and vice versa

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.2.2_015
    • tools
    • jar
    • tiger
    • generic
    • generic

      "unzip" prints the messages
      "extracting" or "inflating" when unzipping a zip file.

      The jar command tried to copy this behavior, but it got the messages
      reversed.

      $ echo hi > hi
      $ jar cMf hello.jar hi
      $ jar xvf hello.jar
      extracted: hi
      $ unzip -o hello.jar
      Archive: hello.jar
        inflating: hi
      $ jar c0Mf hello.jar hi
      $ jar xvf hello.jar
       inflated: hi
      $ unzip -o hello.jar
      Archive: hello.jar
       extracting: hi

      ###@###.### 2003-05-08

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: