You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/03/31 05:28:53 UTC
[royale-compiler] branch develop updated: try using -1 as the
zipentry time. It shows as 1969 but maybe it will not be recomputed by the
zip library
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new f74841b try using -1 as the zipentry time. It shows as 1969 but maybe it will not be recomputed by the zip library
f74841b is described below
commit f74841bb03f1ecc30039b90d571fc040101a5c84
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Mar 30 22:28:34 2020 -0700
try using -1 as the zipentry time. It shows as 1969 but maybe it will not be recomputed by the zip library
---
compiler/src/main/java/org/apache/royale/swc/io/SWCWriter.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/compiler/src/main/java/org/apache/royale/swc/io/SWCWriter.java b/compiler/src/main/java/org/apache/royale/swc/io/SWCWriter.java
index 9c938f6..c1a1a77 100644
--- a/compiler/src/main/java/org/apache/royale/swc/io/SWCWriter.java
+++ b/compiler/src/main/java/org/apache/royale/swc/io/SWCWriter.java
@@ -86,6 +86,7 @@ public class SWCWriter extends SWCWriterBase
File outputDirectory = new File(outputFile.getAbsoluteFile().getParent());
outputDirectory.mkdirs();
+ /*
if (metadataDate != null)
{
// TODO: Perhaps parsing without modification and then serializing with a default timezone is the more solid approach.
@@ -110,7 +111,7 @@ public class SWCWriter extends SWCWriterBase
} catch (IllegalArgumentException e1) {
e1.printStackTrace();
}
- }
+ }*/
zipOutputStream = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(filename)));
zipOutputStream.setLevel(Deflater.NO_COMPRESSION);
@@ -121,7 +122,7 @@ public class SWCWriter extends SWCWriterBase
*/
private final ZipOutputStream zipOutputStream;
- private long fileDate = System.currentTimeMillis();
+ private long fileDate = -1;
@Override
void writeCatalog(final ISWC swc) throws IOException