Repository: flex-falcon
Updated Branches:
  refs/heads/develop 177ec8e21 -> be199c5e8


try adding lookup components to catalog.xml component list


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

Branch: refs/heads/develop
Commit: be199c5e8a2fbd83bb9dfea5b2ea0205e5f71a14
Parents: 177ec8e
Author: Alex Harui <[email protected]>
Authored: Thu May 19 23:07:11 2016 -0700
Committer: Alex Harui <[email protected]>
Committed: Thu May 19 23:17:30 2016 -0700

----------------------------------------------------------------------
 .../compiler/internal/targets/SWCTarget.java    | 28 ++++++++++++++++++++
 1 file changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/be199c5e/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWCTarget.java
----------------------------------------------------------------------
diff --git 
a/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWCTarget.java
 
b/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWCTarget.java
index 7c9bae0..937d118 100644
--- 
a/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWCTarget.java
+++ 
b/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWCTarget.java
@@ -202,6 +202,33 @@ public class SWCTarget extends Target implements ISWCTarget
     {
         final Set<String> includedNamespaces = 
ImmutableSet.copyOf(targetSettings.getIncludeNamespaces());
         
+        for (String namespace : includedNamespaces)
+        {
+            // For each namespace get the set of classes. 
+            // From the classes get the the compilation units.
+            // Validate the compilation units are resolved to source
+            // files unless there are lookupOnly entries.
+            final Collection<String> includeNamespaceQualifiedNames =
+                flexProject.getQualifiedClassNamesForManifestNamespaces(
+                        Collections.singleton(namespace));
+            for (String qName : includeNamespaceQualifiedNames)
+            {
+                final Collection<XMLName> tagNames = 
flexProject.getTagNamesForClass(qName);
+                for (XMLName tagName : tagNames)
+                {
+                    if (includeComponent(tagName, includedNamespaces))
+                    {
+                        final SWCComponent component = new SWCComponent();
+                        component.setName(tagName.getName());
+                        component.setURI(tagName.getXMLNamespace());
+                        component.setQName(qName);
+                        swc.addComponent(component);                    
+                    }
+                }                
+            }
+        }
+
+        /*
         for (final IDefinition def : definitions)
         {
             final String qName = def.getQualifiedName();
@@ -219,6 +246,7 @@ public class SWCTarget extends Target implements ISWCTarget
                 }
             }
         }
+        */
     }
 
     /**

Reply via email to