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)
======================================================================
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)
======================================================================
- duplicates
-
JDK-4225317 jar does not preserve file modification times during extract
-
- Resolved
-