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] - don't emit CSS unless an IValuesImpl is in the app
Date Mon, 15 Jun 2015 05:27:32 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 4f532fc86 -> 9a1c48c1d


don't emit CSS unless an IValuesImpl is in the app


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

Branch: refs/heads/develop
Commit: 9a1c48c1dad1e52ab34125703903d4ab54e4e5bf
Parents: 4f532fc
Author: Alex Harui <aharui@apache.org>
Authored: Sun Jun 14 22:27:23 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Sun Jun 14 22:27:23 2015 -0700

----------------------------------------------------------------------
 .../internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java         | 2 ++
 .../org/apache/flex/compiler/internal/projects/FlexJSProject.java | 3 +++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a1c48c1/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
index 4292534..46c3062 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
@@ -501,6 +501,8 @@ public class MXMLFlexJSPublisher extends JSGoogPublisher implements
     private void appendEncodedCSS(String path, String projectName)
             throws IOException
     {
+    	if (!project.needCSS) return;
+    	
         StringBuilder appendString = new StringBuilder();
         appendString.append("\n\n");
         appendString.append(projectName);

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a1c48c1/compiler.jx/src/org/apache/flex/compiler/internal/projects/FlexJSProject.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/projects/FlexJSProject.java
b/compiler.jx/src/org/apache/flex/compiler/internal/projects/FlexJSProject.java
index b150264..e9b89af 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/projects/FlexJSProject.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/projects/FlexJSProject.java
@@ -117,6 +117,8 @@ public class FlexJSProject extends FlexProject
 
                 if (!interfacesArr.containsKey(qname))
                 {
+                	if (qname.equals("org.apache.flex.core.IValuesImpl"))
+                		needCSS = true;
                     interfacesArr.put(qname, qname);
                 }
             }
@@ -126,6 +128,7 @@ public class FlexJSProject extends FlexProject
     }
 
     public boolean needLanguage;
+    public boolean needCSS;
     
     private LinkageChecker linkageChecker;
     private ITargetSettings ts;


Mime
View raw message