mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
fixed timestamps in created JAR files (was 1970-01-01 00:00)
This commit is contained in:
parent
37fc552476
commit
7b251f4d8e
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ public class JarUtils {
|
|||
if (!name.isEmpty()) {
|
||||
if (!name.endsWith("/")) name += "/"
|
||||
val entry = JarEntry(name)
|
||||
entry.time = foundFile.lastModified()
|
||||
entry.time = localFile.lastModified()
|
||||
try {
|
||||
outputStream.putNextEntry(entry)
|
||||
} catch(ex: ZipException) {
|
||||
|
@ -81,7 +81,7 @@ public class JarUtils {
|
|||
} else {
|
||||
val entryFileName = file.to(foundFile.path).path.replace("\\", "/")
|
||||
val entry = JarEntry(entryFileName)
|
||||
entry.time = foundFile.lastModified()
|
||||
entry.time = localFile.lastModified()
|
||||
addEntry(FileInputStream(localFile), entry, outputStream, onError)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue