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

set lastModifiedDate to date in JAR, not now()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.4.2
    • tools
    • jar
    • x86
    • windows_2000

      Name: jl125535 Date: 02/04/2004


      A DESCRIPTION OF THE REQUEST :
      When JAR extracts files and new files are created, the lastModifiedDate of the files is the current system date.
      I feel it is better to set it to the timestamp from the original file.


      JUSTIFICATION :
      JAR (zip format) files contain the original timestamp of the file that was compressed.

      To restore the original file as closely as possible when uncompressing a JAR, the lastModified timestamp should be restored to the value of the original file.
      To be downward compatible, this capability could be made into a command line switch.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      lastModified timestamp of extracted file==lastModified timestamp of original file
      ACTUAL -
      lastModified timestamp of extracted file==the time when the file was extracted (ie when JAR was invoked)

      CUSTOMER SUBMITTED WORKAROUND :
      use another tool eg Info-ZIP unzip
      (Incident Review ID: 236825)
      ======================================================================

            martin Martin Buchholz
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: