You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/11/04 08:56:38 UTC

git commit: [flex-falcon] [refs/heads/develop] - Added copy of 'lookupOnly exclusion' block from Falcon to FalconJX

Repository: flex-falcon
Updated Branches:
  refs/heads/develop 151c6c93e -> 639b1c9b3


Added copy of 'lookupOnly exclusion' block from Falcon to FalconJX

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: 639b1c9b36f97af2423429dabae4bd581ea90a5a
Parents: 151c6c9
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Nov 4 08:56:20 2014 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Nov 4 08:56:29 2014 +0100

----------------------------------------------------------------------
 .../compiler/internal/targets/FlexJSSWCTarget.java  | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/639b1c9b/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSSWCTarget.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSSWCTarget.java b/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSSWCTarget.java
index 0feebcd..339e3a8 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSSWCTarget.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSSWCTarget.java
@@ -250,9 +250,23 @@ public class FlexJSSWCTarget extends JSTarget implements IJSTarget
             Collection<String> classNames,
             final Collection<ICompilerProblem> problems)
     {
+        Collection<String> compilableClassNames = new ArrayList<String>();
+        for (String className : classNames)
+        {
+            Collection<XMLName> tagNames = flexProject.getTagNamesForClass(className);
+            boolean okToAdd = true;
+            for (XMLName tagName : tagNames)
+            {
+                if (flexProject.isManifestComponentLookupOnly(tagName))
+                    okToAdd = false;
+            }
+            if (okToAdd)
+                compilableClassNames.add(className);
+        }
+        
         // Class names are turned into references and then info compilation units.
         final Iterable<IResolvedQualifiersReference> references = 
-            Iterables.transform(classNames, new Function<String, IResolvedQualifiersReference>()
+            Iterables.transform(compilableClassNames, new Function<String, IResolvedQualifiersReference>()
                 {
                     @Override
                     public IResolvedQualifiersReference apply(String qualifiedName)