You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/04/05 06:54:39 UTC
git commit: [flex-falcon] [refs/heads/develop] - emit
goog.addDependency for rest of deps
Repository: flex-falcon
Updated Branches:
refs/heads/develop eb2f34dd2 -> d87235f75
emit goog.addDependency for rest of deps
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/d87235f7
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/d87235f7
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/d87235f7
Branch: refs/heads/develop
Commit: d87235f757c92b2b5480b0cad4e2b1c783e8cdc9
Parents: eb2f34d
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 4 23:49:24 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 4 23:49:24 2017 -0700
----------------------------------------------------------------------
.../apache/flex/compiler/internal/graph/GoogDepsWriter.java | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d87235f7/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
index 6065efc..5c122d4 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
@@ -182,6 +182,14 @@ public class GoogDepsWriter {
mainDeps.append(getDependencies(restOfDeps)).append("]);\n");
sb.insert(0, mainDeps);
sb.insert(0, "// generated by FalconJX\n");
+ for (String dep : restOfDeps)
+ {
+ GoogDep gd = depMap.get(dep);
+ sb.append("goog.addDependency('").append(relativePath(gd.filePath)).append("', ['")
+ .append(gd.className).append("'], [")
+ .append((gd.fileInfo.impls != null) ? getDependencies(gd.fileInfo.impls) : "")
+ .append("]);\n");
+ }
addRestOfDeps(mainDep, restOfDeps);
}
return sb.toString();