mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
[FIXED JENKINS-13122] Last modification date of files in a zip are not the original timestamps
This commit is contained in:
1 parent
b0e1204a3a
commit
3ddd6bfc2b
2 files changed
+7
-2
No files matched your search
+5
-2
@@ -63,13 +63,16 @@ Upcoming changes</a>
|
||||
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-13097">issue 13097</a>)
|
||||
<li class=bug>
|
||||
Breadcrumb popup menu gives javascript error on Internet Explorer 8.
|
||||
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-13082">issue 13082</a>~
|
||||
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-13082">issue 13082</a>)
|
||||
<li class=bug>
|
||||
Ajax on Update Center does not work in prototype 1.7
|
||||
<li class=bug>
|
||||
'View as plain text' in Console Output is hidden by the new breadcrums bar
|
||||
<li class=bug>
|
||||
Last modification date of files in a zip are not the original timestamps
|
||||
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-13122">issue 13122</a>)
|
||||
<li class="rfe">
|
||||
Jenkins uses correct port in mDNS advertisement and shows up in Safari Bonjour bookmarks.</li>
|
||||
Jenkins uses correct port in mDNS advertisement and shows up in Safari Bonjour bookmarks.
|
||||
</ul>
|
||||
</div><!--=TRUNK-END=-->
|
||||
|
||||
|
||||
@@ -61,11 +61,13 @@ final class ZipArchiver extends Archiver {
|
||||
// Setting this bit explicitly is needed by some unzipping applications (see JENKINS-3294).
|
||||
dirZipEntry.setExternalAttributes(BITMASK_IS_DIRECTORY);
|
||||
if (mode!=-1) dirZipEntry.setUnixMode(mode);
|
||||
dirZipEntry.setTime(f.lastModified());
|
||||
zip.putNextEntry(dirZipEntry);
|
||||
zip.closeEntry();
|
||||
} else {
|
||||
ZipEntry fileZipEntry = new ZipEntry(relativePath);
|
||||
if (mode!=-1) fileZipEntry.setUnixMode(mode);
|
||||
fileZipEntry.setTime(f.lastModified());
|
||||
zip.putNextEntry(fileZipEntry);
|
||||
FileInputStream in = new FileInputStream(f);
|
||||
int len;
|
||||
|
||||
Reference in new issue
Block a user