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

joshtynjala 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 792963d11 compiler-jx: when using --watch, needs to call 
jsPublisher.publish() after each change
792963d11 is described below

commit 792963d11c764c068da7447440b9559828cd0ab3
Author: Josh Tynjala <[email protected]>
AuthorDate: Thu Apr 7 12:41:39 2022 -0700

    compiler-jx: when using --watch, needs to call jsPublisher.publish() after 
each change
    
    This is necessary because the goog.addDependency() calls might need 
updating with new dependencies
---
 .../main/java/org/apache/royale/compiler/clients/MXMLJSCNative.java    | 3 +++
 .../src/main/java/org/apache/royale/compiler/clients/MXMLJSCNode.java  | 3 +++
 .../main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java    | 3 +++
 .../java/org/apache/royale/compiler/clients/MXMLJSCRoyaleCordova.java  | 3 +++
 4 files changed, 12 insertions(+)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNative.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNative.java
index 44e1264a6..d3034b045 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNative.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNative.java
@@ -335,6 +335,9 @@ public class MXMLJSCNative implements JSCompilerEntryPoint, 
ProblemQueryProvider
                         writeCompilationUnit(unit, outputFolder);
                     }
 
+                    // ensures that the goog.addDependency() calls are updated
+                    jsPublisher.publish(problems);
+
                     long endTime = System.nanoTime();
                     System.out.println((endTime - startTime) / 1e9 + " 
seconds");
                 }
diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNode.java 
b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNode.java
index fdad63607..8f6812832 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNode.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCNode.java
@@ -338,6 +338,9 @@ public class MXMLJSCNode implements JSCompilerEntryPoint, 
ProblemQueryProvider,
                         writeCompilationUnit(unit, outputFolder);
                     }
 
+                    // ensures that the goog.addDependency() calls are updated
+                    jsPublisher.publish(problems);
+
                     long endTime = System.nanoTime();
                     System.out.println((endTime - startTime) / 1e9 + " 
seconds");
                 }
diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java
index e7d35223f..a66ce9bd0 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyale.java
@@ -360,6 +360,9 @@ public class MXMLJSCRoyale implements JSCompilerEntryPoint, 
ProblemQueryProvider
                         writeCompilationUnit(unit, outputFolder);
                     }
 
+                    // ensures that the goog.addDependency() calls are updated
+                    jsPublisher.publish(problems);
+
                     long endTime = System.nanoTime();
                     System.out.println((endTime - startTime) / 1e9 + " 
seconds");
                 }
diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyaleCordova.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyaleCordova.java
index 69ec7e3c2..c1db3643f 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyaleCordova.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/clients/MXMLJSCRoyaleCordova.java
@@ -340,6 +340,9 @@ public class MXMLJSCRoyaleCordova implements 
JSCompilerEntryPoint, ProblemQueryP
                         writeCompilationUnit(unit, outputFolder);
                     }
 
+                    // ensures that the goog.addDependency() calls are updated
+                    jsPublisher.publish(problems);
+
                     long endTime = System.nanoTime();
                     System.out.println((endTime - startTime) / 1e9 + " 
seconds");
                 }

Reply via email to