You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jo...@apache.org on 2015/07/21 22:29:18 UTC

git commit: [flex-falcon] [refs/heads/develop] - jsc: outputs goog.addDependency() calls to a dependencies.js file, since this output type doesn't have an HTML file anymore

Repository: flex-falcon
Updated Branches:
  refs/heads/develop 9797b6b47 -> 4cb11c145


jsc: outputs goog.addDependency() calls to a dependencies.js file, since this output type doesn't have an HTML file anymore


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/4cb11c14
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/4cb11c14
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/4cb11c14

Branch: refs/heads/develop
Commit: 4cb11c145e3fe63d5aefd4cab23eca19453f632d
Parents: 9797b6b
Author: Josh Tynjala <jo...@apache.org>
Authored: Tue Jul 21 13:29:10 2015 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Tue Jul 21 13:29:10 2015 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/js/jsc/JSCPublisher.java     | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/4cb11c14/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jsc/JSCPublisher.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jsc/JSCPublisher.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jsc/JSCPublisher.java
index 2193fc3..0211db8 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jsc/JSCPublisher.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jsc/JSCPublisher.java
@@ -19,6 +19,7 @@
 
 package org.apache.flex.compiler.internal.codegen.js.jsc;
 
+import java.io.File;
 import java.io.IOException;
 import java.util.List;
 
@@ -38,6 +39,10 @@ public class JSCPublisher extends MXMLFlexJSPublisher
     protected void writeHTML(String type, String projectName, String dirPath,
             String deps, List<String> additionalHTML) throws IOException
     {
+        if ("intermediate".equals(type))
+        {
+            writeFile(dirPath + File.separator + "dependencies.js", deps, false);
+        }
         // super.writeHTML(type, projectName, dirPath, deps, additionalHTML);
     }
 }