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

Jar tool extract should support the "-C" option

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • tools
    • jar
    • x86
    • windows_2000

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: