You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/09/14 18:50:16 UTC

[royale-compiler] branch develop updated: need to add known dependencies for the main class. Fixes #47

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

aharui 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 915d62e  need to add known dependencies for the main class.  Fixes #47
915d62e is described below

commit 915d62e0e7a719b9c1cb7e0316260477a62771cf
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Sep 14 11:49:54 2018 -0700

    need to add known dependencies for the main class.  Fixes #47
---
 .../java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
index 2480a34..a91bc1c 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
@@ -175,6 +175,7 @@ public class GoogDepsWriter {
 			mainDeps.append("goog.addDependency('").append(relativePath(mainDep.filePath)).append("', ['")
 								.append(mainDep.className).append("'], [");
 			ArrayList<String> restOfDeps = new ArrayList<String>();
+			restOfDeps.addAll(mainDep.deps);
 	        DependencyTypeSet dependencyTypes = DependencyTypeSet.allOf();
 			// get the list of all units not referenced by other units
 			for (GoogDep gd : depMap.values())