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 2019/05/21 05:43:45 UTC

[royale-compiler] branch release_practice updated: set timestamp on js.map files

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch release_practice
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/release_practice by this push:
     new 16f4edb  set timestamp on js.map files
16f4edb is described below

commit 16f4edba5282237ed1a4b684bcbfe99bfe21cfc8
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon May 20 22:43:27 2019 -0700

    set timestamp on js.map files
---
 .../src/main/java/org/apache/royale/compiler/clients/COMPJSC.java   | 6 ++++--
 .../main/java/org/apache/royale/compiler/clients/COMPJSCRoyale.java | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSC.java b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSC.java
index 96ccc4f..75e10fd 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSC.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSC.java
@@ -509,8 +509,10 @@ public class COMPJSC extends MXMLJSC
                                     cu.getQualifiedNames().get(0),
                                     isExterns ? externsOut : jsOut,
                                     false).getPath();
-                                System.out.println("Writing file: " + sourceMapFile);     	
-                                zipOutputStream.putNextEntry(new ZipEntry(sourceMapFile));
+                                System.out.println("Writing file: " + sourceMapFile);
+                                ze = new ZipEntry(sourceMapFile);
+    	                    	ze.setTime(fileDate);
+                                zipOutputStream.putNextEntry(ze);
                                 sourceMapTemp.writeTo(zipOutputStream);
                                 zipOutputStream.flush();
                                 zipOutputStream.closeEntry();
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSCRoyale.java b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSCRoyale.java
index cd5d225..3d991f1 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSCRoyale.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/COMPJSCRoyale.java
@@ -395,8 +395,10 @@ public class COMPJSCRoyale extends MXMLJSCRoyale
                                     cu.getQualifiedNames().get(0),
                                     isExterns ? externsOut : jsOut,
                                     false).getPath();
-                                System.out.println("Writing file: " + sourceMapFile);     	
-                                zipOutputStream.putNextEntry(new ZipEntry(sourceMapFile));
+                                System.out.println("Writing file: " + sourceMapFile);  
+                                ze = new ZipEntry(sourceMapFile);
+    	                    	ze.setTime(fileDate);
+                                zipOutputStream.putNextEntry(ze);
                                 sourceMapTemp.writeTo(zipOutputStream);
                                 zipOutputStream.flush();
                                 zipOutputStream.closeEntry();