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/13 17:44:05 UTC

[34/50] git commit: [flex-falcon] [refs/heads/dual] - fix apps that don't use remove-circulars

fix apps that don't use remove-circulars


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

Branch: refs/heads/dual
Commit: fce80f5f46864e924bd14205e092f651a9aa5124
Parents: 6593d84
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 28 08:47:36 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 28 08:47:44 2017 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/internal/graph/GoogDepsWriter.java  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fce80f5f/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 c8bbe16..8efaf77 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
@@ -133,10 +133,16 @@ public class GoogDepsWriter {
 			GoogDep gd = dps.get(i);
 			if (!isGoogClass(gd.className)) 
 			{
-				sb.append("goog.addDependency('").append(relativePath(gd.filePath)).append("', ['")
+				if (removeCirculars)
+					sb.append("goog.addDependency('").append(relativePath(gd.filePath)).append("', ['")
 						.append(gd.className).append("'], [")
 						.append((gd.fileInfo.impls != null) ? getDependencies(gd.fileInfo.impls) : "")
 						.append("]);\n");
+				else
+					sb.append("goog.addDependency('").append(relativePath(gd.filePath)).append("', ['")
+					.append(gd.className).append("'], [")
+					.append(getDependencies(gd.deps))
+					.append("]);\n");					
 			}
 		}
 		if (removeCirculars)