flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - emit goog.addDependency for rest of deps
Date Wed, 05 Apr 2017 06:54:39 GMT
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 <aharui@apache.org>
Authored: Tue Apr 4 23:49:24 2017 -0700
Committer: Alex Harui <aharui@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();


Mime
View raw message