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

Jar tool extract should support the "-C" option

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
      jar
    • CPU:
      x86
    • OS:
      windows_2000

      Description

      A DESCRIPTION OF THE REQUEST :
      The -C option to change the directory is not supported when extracting files from a JAR file.

      e.g.:
       jar xf test.jar -C c:\temp *

      JUSTIFICATION :
      It would make scripts clearer, that have to unpack and repack JAR/WAR files.

      The x (extract) command would work analogous to the c (create) command.

      I assume that Implementing the -C option for the extract command would be easy.

        Attachments

          Activity

            People

            Assignee:
            sherman Xueming Shen
            Reporter:
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: