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/06/26 15:34:49 UTC

[01/36] git commit: [flex-falcon] [refs/heads/develop] - output Language on a per-file basis

Repository: flex-falcon
Updated Branches:
  refs/heads/develop c96a7b976 -> 88faf6bd3


output Language on a per-file basis


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

Branch: refs/heads/develop
Commit: f9c92e4958387ba497debf66f2b092f9a2b2eb13
Parents: 31fd9d6
Author: Alex Harui <ah...@apache.org>
Authored: Wed May 10 22:33:33 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed May 10 22:33:33 2017 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/internal/codegen/js/JSSessionModel.java | 2 ++
 .../compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java     | 3 ++-
 .../apache/flex/compiler/internal/codegen/js/jx/AsIsEmitter.java | 2 +-
 .../compiler/internal/codegen/js/jx/FunctionCallEmitter.java     | 4 ++++
 4 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f9c92e49/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSSessionModel.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSSessionModel.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSSessionModel.java
index ca47881..3ace9e5 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSSessionModel.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSSessionModel.java
@@ -77,6 +77,8 @@ public class JSSessionModel
     }
     private Stack<Context> stack = new Stack<Context>();
 
+    public boolean needLanguage = false;
+    
     public boolean isExterns = false;
 
     public boolean inE4xFilter = false;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f9c92e49/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
index 2d7b257..d07cf4f 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
@@ -215,7 +215,7 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
                     if (project instanceof FlexJSProject)
                     {
                         FlexJSProject flexJSProject = (FlexJSProject) project;
-                        boolean needLanguage = flexJSProject.needLanguage;
+                        boolean needLanguage = getModel().needLanguage;
                         if (needLanguage && !foundLanguage)
                         {
                             StringBuilder appendString = new StringBuilder();
@@ -941,6 +941,7 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
         ICompilerProject project = getWalker().getProject();;
         if (project instanceof FlexJSProject)
         	((FlexJSProject)project).needLanguage = true;
+        getModel().needLanguage = true;
         write(JSFlexJSEmitterTokens.CLOSURE_FUNCTION_NAME);
         write(ASEmitterTokens.PAREN_OPEN);
     }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f9c92e49/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/AsIsEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/AsIsEmitter.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/AsIsEmitter.java
index c99d4d9..3260ef9 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/AsIsEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/AsIsEmitter.java
@@ -131,7 +131,7 @@ public class AsIsEmitter extends JSSubEmitter
         ICompilerProject project = this.getProject();
         if (project instanceof FlexJSProject)
         	((FlexJSProject)project).needLanguage = true;
-        
+        getEmitter().getModel().needLanguage = true;
         if (node instanceof IBinaryOperatorNode)
         {
             IBinaryOperatorNode binaryOperatorNode = (IBinaryOperatorNode) node; 

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f9c92e49/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FunctionCallEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FunctionCallEmitter.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FunctionCallEmitter.java
index d125eeb..5a8a64e 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FunctionCallEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/FunctionCallEmitter.java
@@ -128,6 +128,7 @@ public class FunctionCallEmitter extends JSSubEmitter implements ISubEmitter<IFu
                         ICompilerProject project = this.getProject();
                         if (project instanceof FlexJSProject)
                             ((FlexJSProject) project).needLanguage = true;
+                        getEmitter().getModel().needLanguage = true;
                         write(JSFlexJSEmitterTokens.LANGUAGE_QNAME);
                         write(ASEmitterTokens.MEMBER_ACCESS);
                         if (isInt)
@@ -190,6 +191,7 @@ public class FunctionCallEmitter extends JSSubEmitter implements ISubEmitter<IFu
                         ICompilerProject project = this.getProject();
                         if (project instanceof FlexJSProject)
                             ((FlexJSProject) project).needLanguage = true;
+                        getEmitter().getModel().needLanguage = true;
                         startMapping(node.getNameNode());
                         write(JSFlexJSEmitterTokens.LANGUAGE_QNAME);
                         write(ASEmitterTokens.MEMBER_ACCESS);
@@ -205,6 +207,7 @@ public class FunctionCallEmitter extends JSSubEmitter implements ISubEmitter<IFu
                             ICompilerProject project = this.getProject();
                             if (project instanceof FlexJSProject)
                                 ((FlexJSProject) project).needLanguage = true;
+                            getEmitter().getModel().needLanguage = true;
                             write(JSFlexJSEmitterTokens.LANGUAGE_QNAME);
                             write(ASEmitterTokens.MEMBER_ACCESS);
                             write("sortOn");
@@ -228,6 +231,7 @@ public class FunctionCallEmitter extends JSSubEmitter implements ISubEmitter<IFu
 	                			{
 		                            if (project instanceof FlexJSProject)
 		                                ((FlexJSProject) project).needLanguage = true;
+		                            getEmitter().getModel().needLanguage = true;
 		                            write(JSFlexJSEmitterTokens.LANGUAGE_QNAME);
 		                            write(ASEmitterTokens.MEMBER_ACCESS);
 		                            write("sort");


[35/36] git commit: [flex-falcon] [refs/heads/develop] - fix release target

Posted by ah...@apache.org.
fix release target


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

Branch: refs/heads/develop
Commit: 4d1cff9255b9a35ebd5bbae7f5d050e9403cba6e
Parents: a7bcf12
Author: Alex Harui <ah...@apache.org>
Authored: Sun Jun 25 23:27:31 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Sun Jun 25 23:27:31 2017 -0700

----------------------------------------------------------------------
 releasecandidate.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/4d1cff92/releasecandidate.xml
----------------------------------------------------------------------
diff --git a/releasecandidate.xml b/releasecandidate.xml
index d6c581f..d9fafda 100644
--- a/releasecandidate.xml
+++ b/releasecandidate.xml
@@ -475,7 +475,7 @@ ${my.name}
 			<arg value="${dist.dev}/flex/falcon/${release.version}/rc${rc}" />
             <arg value="${dist.release}/flex/falcon/${release.version}" />
 		</exec>
-		<exec executable="${svn}" dir="${dist.release}/flex/falcon" failonerror="true" >
+		<exec executable="${svn}" dir="${dist.release}/.." failonerror="true" >
 			<arg value="commit" />
 			<arg value="--username" />
 			<arg value="${apache.username}" />


[27/36] git commit: [flex-falcon] [refs/heads/develop] - fix where we find Git

Posted by ah...@apache.org.
fix where we find Git


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

Branch: refs/heads/develop
Commit: 78e85147dd36fb266c9e0f714433871ca9692d65
Parents: 833705e
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 8 19:41:52 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 8 19:41:52 2017 -0700

----------------------------------------------------------------------
 releasecandidate.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/78e85147/releasecandidate.xml
----------------------------------------------------------------------
diff --git a/releasecandidate.xml b/releasecandidate.xml
index 7c2c43a..8f3fe3c 100644
--- a/releasecandidate.xml
+++ b/releasecandidate.xml
@@ -153,7 +153,7 @@
 		property="git" value="${env.ProgramFiles}/Git/bin/git.exe" />
     <available file="${env.ProgramFiles(x86)}/Git/bin/git.exe"
 		type="file"
-		property="git" value="${env.ProgramFiles}/Git/bin/git.exe" />
+		property="git" value="${env.ProgramFiles(x86)}/Git/bin/git.exe" />
     <available file="/usr/local/git/bin/git"
 		type="file"
 		property="git" value="/usr/local/git/bin/git" />


[15/36] git commit: [flex-falcon] [refs/heads/develop] - FLEX-35086 - Update RELEASE_NOTES_JS

Posted by ah...@apache.org.
FLEX-35086 - Update RELEASE_NOTES_JS


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

Branch: refs/heads/develop
Commit: 96147830f7c9fae8cc2df65f36ae855bfabb44d2
Parents: 18d9650
Author: piotrz <pi...@apache.org>
Authored: Mon May 22 08:25:02 2017 +0200
Committer: piotrz <pi...@apache.org>
Committed: Mon May 22 08:25:02 2017 +0200

----------------------------------------------------------------------
 RELEASE_NOTES_JX | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/96147830/RELEASE_NOTES_JX
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES_JX b/RELEASE_NOTES_JX
index 851646f..4b1fe5d 100644
--- a/RELEASE_NOTES_JX
+++ b/RELEASE_NOTES_JX
@@ -9,8 +9,13 @@ This release includes Maven artifacts.
 
 In addition, lots of bug fixes and small improvements are included in this release. 
 
+New Features
+=================
+-FLEX-35186 Generate source maps for MXML files
+
 Bug Fixes
 ---------
+-FLEX-35300 Could not find file for class: Error
 -FLEX-35239 Runtime error when setting a property to a constant value
 -FLEX-35236 Binding is not working when [Bindable] is set for the class
 -FLEX-35231 [FalconJX] Context Lost on Event Listeners


[08/36] git commit: [flex-falcon] [refs/heads/develop] - improve FB integration. Get a better list of source files so we can compare timestamps so we know when to recompile. Also don't fail if just warnings. FB seemed to keep requesting compiles when

Posted by ah...@apache.org.
improve FB integration.  Get a better list of source files so we can compare timestamps so we know when to recompile.  Also don't fail if just warnings.  FB seemed to keep requesting compiles when we failed with just warnings and never ask for the Report.  But if you fail with errors it doesn't keep requesting compiles.  Go figure


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

Branch: refs/heads/develop
Commit: ad8fb20ee552f44c3c717824af0da9d140ec6425
Parents: eadadca
Author: Alex Harui <ah...@apache.org>
Authored: Sun May 14 21:59:30 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Sun May 14 21:59:30 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/flex2/compiler/Source.java          | 12 ++++++++++++
 .../src/main/java/flex2/tools/oem/Application.java    | 14 ++++++++++++--
 .../main/java/flex2/tools/oem/internal/OEMReport.java |  2 +-
 3 files changed, 25 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ad8fb20e/flex-compiler-oem/src/main/java/flex2/compiler/Source.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/main/java/flex2/compiler/Source.java b/flex-compiler-oem/src/main/java/flex2/compiler/Source.java
index 91a1ce6..3869b40 100644
--- a/flex-compiler-oem/src/main/java/flex2/compiler/Source.java
+++ b/flex-compiler-oem/src/main/java/flex2/compiler/Source.java
@@ -19,6 +19,8 @@
 
 package flex2.compiler;
 
+import java.io.File;
+
 import flex2.compiler.io.VirtualFile;
 
 /**
@@ -118,6 +120,16 @@ public final class Source implements Comparable<Source>
         return file.getNameForReporting();
     }
     
+    public String getSourceFileName()
+    {
+    	String s = getName();
+    	if (relativePath.length() > 0)
+    		s += relativePath;
+    	s += File.separator;
+    	s += shortName;
+        return s;
+    }
+    
     public boolean exists()
     {
         return file.getLastModified() > 0;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ad8fb20e/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java b/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java
index 0d9a307..11b14aa 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/oem/Application.java
@@ -43,6 +43,7 @@ import org.apache.flex.swf.ISWF;
 import org.apache.flex.swf.types.RGB;
 
 import flash.swf.tags.SetBackgroundColor;
+import flex2.compiler.CompilerException;
 import flex2.compiler.Source;
 import flex2.compiler.SourceList;
 import flex2.compiler.io.FileUtil;
@@ -635,7 +636,7 @@ public class Application implements Builder
             mxmljsc.noLink = true;
             //int returnValue = mxmlc.mainCompileOnly(constructCommandLine2(tempOEMConfiguration.configuration), null);
             int returnValue = mxmljsc.mainNoExit(constructCommandLine(oemConfiguration), null, true);
-            if (returnValue == 0)
+            if (returnValue == 0 || returnValue == 2)
                 returnValue = OK;
             else
                 returnValue = FAIL;
@@ -673,8 +674,10 @@ public class Application implements Builder
         ApplicationCompilerConfiguration acc = ((ApplicationCompilerConfiguration)config.configuration);
         sources = new ArrayList<Source>();
         VirtualFile[] sourcePaths = acc.getCompilerConfiguration().getSourcePath();
+
         List<String> sourceFiles = mxmljsc.getSourceList();
         String mainFile = mxmljsc.getMainSource();
+        VirtualFile mainVirtualFile = null;
         for (String sourceFile : sourceFiles)
         {
             for (VirtualFile sourcePath : sourcePaths)
@@ -689,10 +692,17 @@ public class Application implements Builder
                     boolean isRoot = sourceFile.equals(mainFile);
                     Source source = new Source(sourcePath, relPath, shortName, null, false, isRoot);
                     sources.add(source);
-                    break;
+                    if (pathName.equals(mainFile))
+                    	mainVirtualFile = sourcePath;
                 }
             }
         }
+        try {
+			sourceList = new SourceList(new ArrayList<VirtualFile>(), sourcePaths, mainVirtualFile, new String[0]);
+		} catch (CompilerException e2) {
+			// TODO Auto-generated catch block
+			e2.printStackTrace();
+		}
         ProblemQuery pq = mxmljsc.getProblemQuery();
         List<ICompilerProblem> probs = pq.getProblems();
         for (ICompilerProblem prob : probs)

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ad8fb20e/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMReport.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMReport.java b/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMReport.java
index 21b1d73..e628e08 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMReport.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMReport.java
@@ -530,7 +530,7 @@ public class OEMReport implements Report
 		// use this version for now
 		for (Source s : sources)
 		{
-			sourceNames.add(s.getName());
+			sourceNames.add(s.getSourceFileName());
 		}
 		/*
 		// AJH not sure why all this is needed


[33/36] git commit: [flex-falcon] [refs/heads/develop] - prepare Maven build for next RC by changing 0.8.0-SNAPSHOT to 0.8.0

Posted by ah...@apache.org.
prepare Maven build for next RC by changing 0.8.0-SNAPSHOT to 0.8.0


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

Branch: refs/heads/develop
Commit: cf07c624b722494976de2fe66ccaebe44d301b2f
Parents: e90ea20
Author: piotrz <pi...@apache.org>
Authored: Fri Jun 16 08:02:52 2017 +0200
Committer: piotrz <pi...@apache.org>
Committed: Fri Jun 16 08:02:52 2017 +0200

----------------------------------------------------------------------
 compiler-jx/pom.xml            | 8 ++++----
 compiler-test-utils/pom.xml    | 4 ++--
 compiler/pom.xml               | 6 +++---
 debugger/pom.xml               | 6 +++---
 flex-compiler-oem/pom.xml      | 8 ++++----
 flexjs-ant-tasks/pom.xml       | 4 ++--
 flexjs-maven-extension/pom.xml | 2 +-
 flexjs-maven-plugin/pom.xml    | 4 ++--
 pom.xml                        | 2 +-
 9 files changed, 22 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/compiler-jx/pom.xml
----------------------------------------------------------------------
diff --git a/compiler-jx/pom.xml b/compiler-jx/pom.xml
index 8c451e5..d7b9bac 100644
--- a/compiler-jx/pom.xml
+++ b/compiler-jx/pom.xml
@@ -23,11 +23,11 @@
   <parent>
     <groupId>org.apache.flex.flexjs.compiler</groupId>
     <artifactId>flexjs-compiler-parent</artifactId>
-    <version>0.8.0-SNAPSHOT</version>
+    <version>0.8.0</version>
   </parent>
 
   <artifactId>compiler-jx</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
 
   <name>Apache Flex - FlexJS: Compiler: Compiler-JX</name>
 
@@ -80,7 +80,7 @@
     <dependency>
       <groupId>org.apache.flex.flexjs.compiler</groupId>
       <artifactId>compiler</artifactId>
-      <version>0.8.0-SNAPSHOT</version>
+      <version>0.8.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.commons</groupId>
@@ -112,7 +112,7 @@
     <dependency>
       <groupId>org.apache.flex.flexjs.compiler</groupId>
       <artifactId>compiler-test-utils</artifactId>
-      <version>0.8.0-SNAPSHOT</version>
+      <version>0.8.0</version>
       <scope>test</scope>
     </dependency>
     <dependency>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/compiler-test-utils/pom.xml
----------------------------------------------------------------------
diff --git a/compiler-test-utils/pom.xml b/compiler-test-utils/pom.xml
index 1d75ac5..a36fe53 100644
--- a/compiler-test-utils/pom.xml
+++ b/compiler-test-utils/pom.xml
@@ -23,11 +23,11 @@
   <parent>
     <groupId>org.apache.flex.flexjs.compiler</groupId>
     <artifactId>flexjs-compiler-parent</artifactId>
-    <version>0.8.0-SNAPSHOT</version>
+    <version>0.8.0</version>
   </parent>
 
   <artifactId>compiler-test-utils</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
 
   <name>Apache Flex - FlexJS: Compiler: Test Utils</name>
   <description>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/compiler/pom.xml
----------------------------------------------------------------------
diff --git a/compiler/pom.xml b/compiler/pom.xml
index 985622e..2183257 100644
--- a/compiler/pom.xml
+++ b/compiler/pom.xml
@@ -23,11 +23,11 @@
   <parent>
     <groupId>org.apache.flex.flexjs.compiler</groupId>
     <artifactId>flexjs-compiler-parent</artifactId>
-    <version>0.8.0-SNAPSHOT</version>
+    <version>0.8.0</version>
   </parent>
 
   <artifactId>compiler</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
 
   <name>Apache Flex - FlexJS: Compiler: Compiler</name>
   <description>The Apache Flex Falcon Compiler</description>
@@ -414,7 +414,7 @@
     <dependency>
       <groupId>org.apache.flex.flexjs.compiler</groupId>
       <artifactId>compiler-test-utils</artifactId>
-      <version>0.8.0-SNAPSHOT</version>
+      <version>0.8.0</version>
       <scope>test</scope>
     </dependency>
     <dependency>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/debugger/pom.xml
----------------------------------------------------------------------
diff --git a/debugger/pom.xml b/debugger/pom.xml
index 27a9a31..b65a158 100644
--- a/debugger/pom.xml
+++ b/debugger/pom.xml
@@ -23,11 +23,11 @@
   <parent>
     <groupId>org.apache.flex.flexjs.compiler</groupId>
     <artifactId>flexjs-compiler-parent</artifactId>
-    <version>0.8.0-SNAPSHOT</version>
+    <version>0.8.0</version>
   </parent>
 
   <artifactId>debugger</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
 
   <name>Apache Flex - FlexJS: Compiler: Debugger</name>
 
@@ -82,7 +82,7 @@ Do all the JBurg code generation.
     <dependency>
       <groupId>org.apache.flex.flexjs.compiler</groupId>
       <artifactId>compiler</artifactId>
-      <version>0.8.0-SNAPSHOT</version>
+      <version>0.8.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.flex.compiler</groupId>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/flex-compiler-oem/pom.xml
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/pom.xml b/flex-compiler-oem/pom.xml
index e36f59d..7999d30 100644
--- a/flex-compiler-oem/pom.xml
+++ b/flex-compiler-oem/pom.xml
@@ -23,11 +23,11 @@
   <parent>
     <groupId>org.apache.flex.flexjs.compiler</groupId>
     <artifactId>flexjs-compiler-parent</artifactId>
-    <version>0.8.0-SNAPSHOT</version>
+    <version>0.8.0</version>
   </parent>
 
   <artifactId>flex-compiler-oem</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
 
   <name>Apache Flex - FlexJS: Compiler: OEM Layer</name>
 
@@ -35,12 +35,12 @@
     <dependency>
       <groupId>org.apache.flex.flexjs.compiler</groupId>
       <artifactId>compiler</artifactId>
-      <version>0.8.0-SNAPSHOT</version>
+      <version>0.8.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.flex.flexjs.compiler</groupId>
       <artifactId>compiler-jx</artifactId>
-      <version>0.8.0-SNAPSHOT</version>
+      <version>0.8.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.flex.compiler</groupId>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/flexjs-ant-tasks/pom.xml
----------------------------------------------------------------------
diff --git a/flexjs-ant-tasks/pom.xml b/flexjs-ant-tasks/pom.xml
index f85ef03..023ae22 100644
--- a/flexjs-ant-tasks/pom.xml
+++ b/flexjs-ant-tasks/pom.xml
@@ -23,11 +23,11 @@
   <parent>
     <groupId>org.apache.flex.flexjs.compiler</groupId>
     <artifactId>flexjs-compiler-parent</artifactId>
-    <version>0.8.0-SNAPSHOT</version>
+    <version>0.8.0</version>
   </parent>
 
   <artifactId>flexjs-ant-tasks</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
 
   <name>Apache Flex - FlexJS: FlexJS Ant Tasks</name>
 

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/flexjs-maven-extension/pom.xml
----------------------------------------------------------------------
diff --git a/flexjs-maven-extension/pom.xml b/flexjs-maven-extension/pom.xml
index 3a719fc..de35ce1 100644
--- a/flexjs-maven-extension/pom.xml
+++ b/flexjs-maven-extension/pom.xml
@@ -30,7 +30,7 @@
 
   <groupId>org.apache.flex.flexjs.compiler</groupId>
   <artifactId>flexjs-maven-extension</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
   <packaging>jar</packaging>
 
   <name>Apache Flex - FlexJS: FlexJS Maven Extension</name>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/flexjs-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/flexjs-maven-plugin/pom.xml b/flexjs-maven-plugin/pom.xml
index a4bcdc6..e6f3de5 100644
--- a/flexjs-maven-plugin/pom.xml
+++ b/flexjs-maven-plugin/pom.xml
@@ -23,11 +23,11 @@
   <parent>
     <groupId>org.apache.flex.flexjs.compiler</groupId>
     <artifactId>flexjs-compiler-parent</artifactId>
-    <version>0.8.0-SNAPSHOT</version>
+    <version>0.8.0</version>
   </parent>
 
   <artifactId>flexjs-maven-plugin</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
   <packaging>maven-plugin</packaging>
 
   <name>Apache Flex - FlexJS: FlexJS Maven Plugin</name>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cf07c624/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index de4d206..9ef3c7a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
 
   <groupId>org.apache.flex.flexjs.compiler</groupId>
   <artifactId>flexjs-compiler-parent</artifactId>
-  <version>0.8.0-SNAPSHOT</version>
+  <version>0.8.0</version>
   <packaging>pom</packaging>
 
   <name>Apache Flex - FlexJS: Compiler: Parent</name>


[10/36] git commit: [flex-falcon] [refs/heads/develop] - revert appending library-path to js-library-path and swc-library-path

Posted by ah...@apache.org.
revert appending library-path to js-library-path and swc-library-path


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

Branch: refs/heads/develop
Commit: d210ac57c1a2d3bd8f87c664d8453fdc702c623c
Parents: 55ca0b2
Author: Alex Harui <ah...@apache.org>
Authored: Mon May 15 15:12:46 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon May 15 15:12:46 2017 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/projects/FlexJSProject.java    | 10 ++++++----
 .../flex/compiler/internal/projects/FlexProject.java      | 10 ++++++----
 2 files changed, 12 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d210ac57/compiler-jx/src/main/java/org/apache/flex/compiler/internal/projects/FlexJSProject.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/projects/FlexJSProject.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/projects/FlexJSProject.java
index a726d38..8dc88b0 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/projects/FlexJSProject.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/projects/FlexJSProject.java
@@ -392,8 +392,9 @@ public class FlexJSProject extends FlexProject
     public List<String> getCompilerExternalLibraryPath(Configuration config)
     {
     	List<String> list = ((JSConfiguration)config).getCompilerJsExternalLibraryPath();
-        list.addAll(config.getCompilerExternalLibraryPath());
-    	return list;
+        if (list != null && list.size() > 0)
+        	return list;
+        return config.getCompilerExternalLibraryPath();
     }
 
     /**
@@ -402,8 +403,9 @@ public class FlexJSProject extends FlexProject
     public List<String> getCompilerLibraryPath(Configuration config)
     {
     	List<String> list = ((JSConfiguration)config).getCompilerJsLibraryPath();
-        list.addAll(config.getCompilerLibraryPath());
-    	return list;
+        if (list != null && list.size() > 0)
+        	return list;
+        return config.getCompilerLibraryPath();
     }
     
     /**

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d210ac57/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java b/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java
index b01eed5..6a8ffd9 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java
@@ -2340,8 +2340,9 @@ public class FlexProject extends ASProject implements IFlexProject
     public List<String> getCompilerExternalLibraryPath(Configuration config)
     {
     	List<String> list = config.getCompilerSwfExternalLibraryPath();
-        list.addAll(config.getCompilerExternalLibraryPath());
-    	return list;
+        if (list != null && list.size() > 0)
+        	return list;
+        return config.getCompilerExternalLibraryPath();
     }
 
     /**
@@ -2350,8 +2351,9 @@ public class FlexProject extends ASProject implements IFlexProject
     public List<String> getCompilerLibraryPath(Configuration config)
     {
     	List<String> list = config.getCompilerSwfLibraryPath();
-        list.addAll(config.getCompilerLibraryPath());
-    	return list;
+        if (list != null && list.size() > 0)
+        	return list;
+        return config.getCompilerLibraryPath();
     }
 
     /**


[25/36] git commit: [flex-falcon] [refs/heads/develop] - FLEX-35323 compiler: fixed issue in BindingDestinationMaker where setting a dynmaic property with binding would result in a NullPointerException.

Posted by ah...@apache.org.
FLEX-35323 compiler: fixed issue in BindingDestinationMaker where setting a dynmaic property with binding would result in a NullPointerException.

Dynamic properties are public, and the InstructionList is only created for non-public properties. We can simply check that the definition is null or not to fix this issue.


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

Branch: refs/heads/develop
Commit: 57a56977f5f75fb8c41144cf035d78eadd9a75d0
Parents: 74d1487
Author: Josh Tynjala <jo...@apache.org>
Authored: Wed Jun 7 09:36:13 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Wed Jun 7 09:36:13 2017 -0700

----------------------------------------------------------------------
 .../databinding/BindingDestinationMaker.java    | 21 ++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/57a56977/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingDestinationMaker.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingDestinationMaker.java b/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingDestinationMaker.java
index 0e78d5d..89ad6a2 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingDestinationMaker.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingDestinationMaker.java
@@ -128,15 +128,20 @@ public class BindingDestinationMaker
         {
             IMXMLPropertySpecifierNode psn = (IMXMLPropertySpecifierNode)parent;
             IDefinition d = psn.getDefinition();
-            Binding b = host.getInstanceScope().getBinding(d);
-            INamespaceReference ns = psn.getDefinition().getNamespaceReference();
-            if (ns != NamespaceDefinition.getPublicNamespaceDefinition())
+            //it's possible for the definition to be null if we're dealing with
+            //a dynamic property on a class like Object -JT
+            if (d != null)
             {
-                InstructionList insns = new InstructionList();
-                insns.addInstruction(OP_getlocal0);
-                insns.addInstruction(OP_getlocal1);
-                insns.addInstruction(OP_setproperty, b.getName());
-                ret = new InstructionListNode(insns);    // Wrap the IL in a node and return it
+                Binding b = host.getInstanceScope().getBinding(d);
+                INamespaceReference ns = d.getNamespaceReference();
+                if (ns != NamespaceDefinition.getPublicNamespaceDefinition())
+                {
+                    InstructionList insns = new InstructionList();
+                    insns.addInstruction(OP_getlocal0);
+                    insns.addInstruction(OP_getlocal1);
+                    insns.addInstruction(OP_setproperty, b.getName());
+                    ret = new InstructionListNode(insns);    // Wrap the IL in a node and return it
+                }
             }
         }
         return ret;   


[03/36] git commit: [flex-falcon] [refs/heads/develop] - update jar list

Posted by ah...@apache.org.
update jar 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/b6b713a1
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/b6b713a1
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/b6b713a1

Branch: refs/heads/develop
Commit: b6b713a165352cbbcc46db8f9543c790d9d5e384
Parents: 7c48ace
Author: Alex Harui <ah...@apache.org>
Authored: Thu May 11 10:44:02 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu May 11 10:44:02 2017 -0700

----------------------------------------------------------------------
 ApproveFalcon.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b6b713a1/ApproveFalcon.xml
----------------------------------------------------------------------
diff --git a/ApproveFalcon.xml b/ApproveFalcon.xml
index b732e29..49d5677 100644
--- a/ApproveFalcon.xml
+++ b/ApproveFalcon.xml
@@ -189,7 +189,7 @@
         <delete file="jars.txt" />
         <!-- this is a comma-delimited, no spaces, no-line-breaks list used to decide which jars
          to skip in the rat-check of the binaries and which jars to examine before approval -->
-        <property name="jars-list" value="compiler/lib/falcon-flexTasks.jar,compiler/lib/compc.jar,compiler/lib/compiler.jar,compiler/lib/falcon-asc.jar,compiler/lib/falcon-compc.jar,compiler/lib/falcon-flexTasks.jar,compiler/lib/falcon-mxmlc.jar,compiler/lib/falcon-optimizer.jar,compiler/lib/falcon-swfdump.jar,compiler/lib/fdb.jar,compiler/lib/flex-compiler-oem.jar,js/lib/compc.jar,js/lib/externc.jar,js/lib/jsc.jar,js/lib/mxmlc.jar"/>
+        <property name="jars-list" value="compiler/lib/compc.jar,compiler/lib/compiler.jar,compiler/lib/falcon-asc.jar,compiler/lib/falcon-compc.jar,compiler/lib/falcon-mxmlc.jar,compiler/lib/falcon-optimizer.jar,compiler/lib/falcon-swfdump.jar,compiler/lib/fdb.jar,compiler/lib/flex-compiler-oem.jar,js/lib/asdoc.jar,js/lib/falcon-flexTasks.jar,js/lib/compc.jar,js/lib/externc.jar,js/lib/jsc.jar,js/lib/mxmlc.jar"/>
         <echo file="${basedir}/jars.txt" message="${jars-list}"/>
         <echo file="${basedir}/jarexcludes.txt" message="${jars-list}"/>
         <replaceregexp file="${basedir}/jarexcludes.txt" match="," flags="g" replace="${line.separator}" />


[22/36] git commit: [flex-falcon] [refs/heads/develop] - remove org.json dependency

Posted by ah...@apache.org.
remove org.json dependency


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

Branch: refs/heads/develop
Commit: 3e8c099a095c345b7a68c165f7e7f59ef2688ed5
Parents: 530dfed
Author: Alex Harui <ah...@apache.org>
Authored: Tue May 30 12:48:18 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 30 12:49:49 2017 -0700

----------------------------------------------------------------------
 compiler-jx/.classpath | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/3e8c099a/compiler-jx/.classpath
----------------------------------------------------------------------
diff --git a/compiler-jx/.classpath b/compiler-jx/.classpath
index d249dbd..79c17cd 100644
--- a/compiler-jx/.classpath
+++ b/compiler-jx/.classpath
@@ -9,7 +9,6 @@
 	<classpathentry kind="lib" path="lib/google/closure-compiler/compiler.jar"/>
 	<classpathentry kind="lib" path="lib/commons-io.jar"/>
 	<classpathentry kind="lib" path="lib/args4j.jar"/>
-	<classpathentry kind="lib" path="lib/org.json.jar"/>
 	<classpathentry kind="lib" path="lib/guava.jar"/>
 	<classpathentry kind="lib" path="lib/flex-tool-api.jar"/>
 	<classpathentry kind="lib" path="lib/junit-4.10.jar"/>


[29/36] git commit: [flex-falcon] [refs/heads/develop] - make temp dir on windows

Posted by ah...@apache.org.
make temp dir on windows


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

Branch: refs/heads/develop
Commit: 85c4376e455e116ef087e2a728d318aea05f59dd
Parents: ed36067
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 8 21:47:47 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 8 21:47:47 2017 -0700

----------------------------------------------------------------------
 build.xml | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/85c4376e/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 5a55219..3a4b664 100644
--- a/build.xml
+++ b/build.xml
@@ -283,6 +283,7 @@
     <target name="stage-source"
         description="Package source files required to build in zip file" >
         <antcall target="clean-temp"/>
+        <mkdir dir="${basedir}/temp"/>
 
         <copy todir="${basedir}/temp" includeEmptyDirs="false">
             <fileset dir="${basedir}">


[06/36] git commit: [flex-falcon] [refs/heads/develop] - update SWF product info version

Posted by ah...@apache.org.
update SWF product info version


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

Branch: refs/heads/develop
Commit: 8122f9f5c5829195a13601b1f2fdd9b9a0605354
Parents: 9a95845
Author: Alex Harui <ah...@apache.org>
Authored: Thu May 11 11:51:41 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu May 11 11:51:41 2017 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/flex/compiler/common/VersionInfo.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/8122f9f5/compiler/src/main/java/org/apache/flex/compiler/common/VersionInfo.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/common/VersionInfo.java b/compiler/src/main/java/org/apache/flex/compiler/common/VersionInfo.java
index 99a4194..8fadbd9 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/common/VersionInfo.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/common/VersionInfo.java
@@ -31,8 +31,8 @@ import org.apache.flex.utils.Trace;
  */
 public class VersionInfo
 {
-    public static final String FLEX_MAJOR_VERSION = "4";
-    public static final String FLEX_MINOR_VERSION = "7";
+    public static final String FLEX_MAJOR_VERSION = "0";
+    public static final String FLEX_MINOR_VERSION = "8";
     public static final String FLEX_NANO_VERSION  = "0";
     
 	/**


[02/36] git commit: [flex-falcon] [refs/heads/develop] - remove dependency on org.json

Posted by ah...@apache.org.
remove dependency on org.json


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

Branch: refs/heads/develop
Commit: 7c48aceba231127219f80c0248e2c7a8e2ffb252
Parents: f9c92e4
Author: Alex Harui <ah...@apache.org>
Authored: Wed May 10 23:22:51 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed May 10 23:22:51 2017 -0700

----------------------------------------------------------------------
 README_JX                                    |  1 -
 compiler-jx/src/main/resources/downloads.xml | 15 ---------------
 2 files changed, 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7c48aceb/README_JX
----------------------------------------------------------------------
diff --git a/README_JX b/README_JX
index cd1cc1e..7cd70a6 100644
--- a/README_JX
+++ b/README_JX
@@ -73,7 +73,6 @@ Software Dependencies
 	args4j = http://search.maven.org/remotecontent?filepath=args4j/args4j/2.0.28/args4j-2.0.28.jar
         Google Closure Compiler - http://github.com/google/closure-compiler/archive/v	20151015.zip
         commons-io - https://repo1.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.tar.gz
-	org.json = http://search.maven.org/remotecontent?filepath=org/codeartisans/org.json/20131017/org.json-20131017.jar
 
 
 Using the Binary Distribution

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7c48aceb/compiler-jx/src/main/resources/downloads.xml
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/resources/downloads.xml b/compiler-jx/src/main/resources/downloads.xml
index 97491f7..9885ede 100644
--- a/compiler-jx/src/main/resources/downloads.xml
+++ b/compiler-jx/src/main/resources/downloads.xml
@@ -119,21 +119,6 @@
       <param name="dest.filename" value="${guava.name}.jar"/>
     </antcall>
 
-    <!--  org.json -->
-    <property name="org.json.name" value="org.json"/>
-    <property name="org.json.version" value="20131017"/>
-    <!-- property name="org.json.version" value="20130213"/ -->
-    <antcall target="download-dependency">
-      <param name="name" value="${org.json.name}"/>
-      <param name="src.server" value="${maven.search.url}"/>
-      <param name="src.folder" value="org/codeartisans/org.json/${org.json.version}"/>
-      <param name="src.filename" value="org.json-${org.json.version}.jar"/>
-      <param name="src.checksum" value="f1aa9ffeda57b9117e79407acc860e74"/>
-      <!-- param name="src.checksum" value="e0593b60af743a63f9678399d275272a"/ --><!-- version 20130213 -->
-      <param name="dest.folder" value=""/>
-      <param name="dest.filename" value="${org.json.name}.jar"/>
-    </antcall>
-
     <!--  flex-tool-api -->
     <property name="flexToolApi.name" value="flex-tool-api"/>
     <property name="flexToolApi.version" value="1.0.0"/>


[12/36] git commit: [flex-falcon] [refs/heads/develop] - fix issues with library projects in FB

Posted by ah...@apache.org.
fix issues with library projects in FB


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

Branch: refs/heads/develop
Commit: b36ee0336b9a0e0cd3be8114bd007d047f7213f0
Parents: 61b2283
Author: Alex Harui <ah...@apache.org>
Authored: Wed May 17 16:32:15 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed May 17 16:36:27 2017 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/clients/COMPJSC.java   |  3 ++
 .../flex/compiler/clients/COMPJSCFlex.java      | 38 +++++++++++++
 .../apache/flex/compiler/clients/MXMLJSC.java   |  4 +-
 .../src/main/java/flex2/tools/oem/Library.java  | 57 +++++++++++++++++---
 .../tools/oem/internal/OEMConfiguration.java    | 15 ++++++
 .../java/flex2/tools/oem/internal/OEMUtil.java  | 40 ++++++++++++++
 6 files changed, 148 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b36ee033/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java
index f13ee22..8b82cb8 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java
@@ -202,6 +202,7 @@ public class COMPJSC extends MXMLJSC
 	                case SWF:
 	                	System.out.println("COMPC");
 	                    COMPC compc = new COMPC();
+	                    mxmlc = compc;
 	                    compc.configurationClass = JSGoogCompcConfiguration.class;
 	                    result = compc.mainNoExit(removeJSArgs(args));
 	                    if (result != 0)
@@ -213,6 +214,7 @@ public class COMPJSC extends MXMLJSC
 	                case JS_FLEX:
 	                	System.out.println("COMPCJSCFlex");
 	                	COMPJSCFlex flex = new COMPJSCFlex();
+	                	lastCompiler = flex;
 	                    result = flex.mainNoExit(removeASArgs(args), problems.getProblems(), false);
 	                    if (result != 0)
 	                    {
@@ -221,6 +223,7 @@ public class COMPJSC extends MXMLJSC
 	                    break;
 	                case JS_NATIVE:
 	                	COMPJSCNative jsc = new COMPJSCNative();
+	                	lastCompiler = jsc;
 	                    result = jsc.mainNoExit(removeASArgs(args), problems.getProblems(), false);
 	                    if (result != 0)
 	                    {

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b36ee033/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSCFlex.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSCFlex.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSCFlex.java
index c403bbc..3744a67 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSCFlex.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSCFlex.java
@@ -29,8 +29,10 @@ import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Enumeration;
+import java.util.LinkedList;
 import java.util.List;
 import java.util.Set;
+import java.util.TreeSet;
 import java.util.zip.Deflater;
 import java.util.zip.ZipEntry;
 import java.util.zip.ZipFile;
@@ -64,6 +66,7 @@ import org.apache.flex.compiler.problems.UnableToBuildSWFProblem;
 import org.apache.flex.compiler.targets.ITarget.TargetType;
 import org.apache.flex.compiler.targets.ITargetSettings;
 import org.apache.flex.compiler.units.ICompilationUnit;
+import org.apache.flex.compiler.units.ICompilationUnit.UnitType;
 import org.apache.flex.swc.io.SWCReader;
 
 /**
@@ -525,4 +528,39 @@ public class COMPJSCFlex extends MXMLJSCFlex
     {
         return TargetType.SWC;
     }
+
+    @Override
+    public List<String> getSourceList()
+    {
+        ArrayList<String> list = new ArrayList<String>();
+        LinkedList<ICompilerProblem> problemList = new LinkedList<ICompilerProblem>();
+        try
+        {
+            Collection<ICompilerProblem> errors = new ArrayList<ICompilerProblem>();
+            Collection<ICompilationUnit> roots = ((FlexJSSWCTarget)target).getReachableCompilationUnits(errors);
+            Collection<ICompilationUnit> units = project.getReachableCompilationUnitsInSWFOrder(roots);
+            for (ICompilationUnit unit : units)
+            {
+                UnitType ut = unit.getCompilationUnitType();
+                if (ut == UnitType.AS_UNIT || ut == UnitType.MXML_UNIT)
+                {
+                    list.add(unit.getAbsoluteFilename());
+                }
+            }
+        }
+        catch (InterruptedException e)
+        {
+            // TODO Auto-generated catch block
+            e.printStackTrace();
+        }
+        
+        return list;
+    }
+
+    @Override
+    public String getMainSource()
+    {
+        return null;
+    }
+
 }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b36ee033/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
index 0916598..1f14259 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
@@ -261,8 +261,8 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
     protected ITargetSettings targetSettings;
     protected IJSApplication jsTarget;
     private IJSPublisher jsPublisher;
-    private MXMLC mxmlc;
-    private JSCompilerEntryPoint lastCompiler;
+    protected MXMLC mxmlc;
+    protected JSCompilerEntryPoint lastCompiler;
     public boolean noLink;
     public OutputStream err;
 	public Class<? extends Configuration> configurationClass = JSGoogConfiguration.class;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b36ee033/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java b/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java
index bdcb3be..182c325 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java
@@ -37,13 +37,16 @@ import java.util.TreeSet;
 import java.lang.annotation.Annotation;
 import java.net.URI;
 
-import org.apache.flex.compiler.clients.COMPC;
+import org.apache.flex.compiler.clients.COMPJSC;
 import org.apache.flex.compiler.clients.problems.ProblemFormatter;
 import org.apache.flex.compiler.clients.problems.ProblemQuery;
 import org.apache.flex.compiler.problems.CompilerProblemSeverity;
 import org.apache.flex.compiler.problems.ICompilerProblem;
 import org.apache.flex.compiler.problems.annotations.DefaultSeverity;
 
+import flex2.compiler.CompilerException;
+import flex2.compiler.Source;
+import flex2.compiler.SourceList;
 import flex2.compiler.common.CompilerConfiguration;
 import flex2.compiler.config.ConfigurationException;
 import flex2.compiler.io.FileUtil;
@@ -55,6 +58,9 @@ import flex2.compiler.util.CompilerMessage;
 import flex2.compiler.util.MimeMappings;
 import flex2.compiler.util.PerformanceData;
 import flex2.compiler.util.ThreadLocalToolkit;
+import flex2.linker.SimpleMovie;
+import flex2.tools.oem.internal.ApplicationCompilerConfiguration;
+import flex2.tools.oem.internal.LibraryCompilerConfiguration;
 import flex2.tools.oem.internal.OEMConfiguration;
 import flex2.tools.oem.internal.OEMReport;
 import flex2.tools.oem.internal.OEMUtil;
@@ -249,6 +255,10 @@ public class Library implements Builder, Cloneable
     private CompilerControl cc;
     private ApplicationCache applicationCache;
     private LibraryCache libraryCache;
+    
+    private List<Source> compiledSources;
+    private SourceList sourceList;
+
 
     // clean() would null out the following variables
     //LibraryData data;
@@ -746,10 +756,10 @@ public class Library implements Builder, Cloneable
     public Report getReport()
     {
         //OEMUtil.setupLocalizationManager();
-        return new OEMReport(null,
-                             null,
+        return new OEMReport(compiledSources,
                              null,
                              null,
+                             sourceList,
                              configurationReport,
                              messages, files);
     }
@@ -904,14 +914,47 @@ public class Library implements Builder, Cloneable
               true /* cleanConfig */,
               false /* cleanMessages */,
               false /* cleanThreadLocals */);
-        COMPC compc = new COMPC();
-        int returnValue = compc.mainNoExit(constructCommandLine(oemConfiguration));
-        if (returnValue == 0)
+        COMPJSC compc = new COMPJSC();
+        int returnValue = compc.mainNoExit(constructCommandLine(oemConfiguration), null, true);
+        if (returnValue == 0 || returnValue == 2)
             returnValue = OK;
         else
             returnValue = FAIL;
 
-        convertMessages(compc.getProblems());
+        LibraryCompilerConfiguration acc = ((LibraryCompilerConfiguration)tempOEMConfiguration.configuration);
+        VirtualFile[] sourcePaths = acc.getCompilerConfiguration().getSourcePath();
+
+        compiledSources = new ArrayList<Source>();
+        List<String> sourceFiles = compc.getSourceList();
+        String mainFile = compc.getMainSource();
+        VirtualFile mainVirtualFile = null;
+        for (String sourceFile : sourceFiles)
+        {
+            for (VirtualFile sourcePath : sourcePaths)
+            {
+                String pathName = sourcePath.getName();
+                if (sourceFile.indexOf(pathName) == 0)
+                {
+                    String relPath = sourceFile.substring(pathName.length());
+                    int lastSep = relPath.lastIndexOf(File.separator);
+                    String shortName = relPath.substring(lastSep + 1);
+                    relPath = relPath.substring(0, lastSep);
+                    boolean isRoot = sourceFile.equals(mainFile);
+                    Source source = new Source(sourcePath, relPath, shortName, null, false, isRoot);
+                    compiledSources.add(source);
+                    if (mainFile != null && pathName.equals(mainFile))
+                    	mainVirtualFile = sourcePath;
+                }
+            }
+        }
+        try {
+			sourceList = new SourceList(new ArrayList<VirtualFile>(), sourcePaths, mainVirtualFile, new String[0]);
+		} catch (CompilerException e2) {
+			// TODO Auto-generated catch block
+			e2.printStackTrace();
+		}
+
+        convertMessages(compc.getProblemQuery());
         
         clean(returnValue != OK, false, false);
         return returnValue;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b36ee033/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMConfiguration.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMConfiguration.java b/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMConfiguration.java
index f141fd8..eef9c03 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMConfiguration.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMConfiguration.java
@@ -1163,6 +1163,21 @@ public class OEMConfiguration implements Configuration, ConfigurationConstants,
 	 * 
 	 * @param paths an array of <code>java.io.File</code> (<code>File.isDirectory()</code> must return <code>true</code>).
 	 */
+	public File[] getSourcePath()
+	{
+		if (args.containsKey(COMPILER_SOURCE_PATH))
+			return (File[]) args.get(COMPILER_SOURCE_PATH);
+		if (more.containsKey(COMPILER_SOURCE_PATH))
+			return (File[]) more.get(COMPILER_SOURCE_PATH);
+		return null;
+	}
+
+	/**
+	 * Sets a list of path elements that form the roots of ActionScript class hierarchies.
+	 * This is equivalent to using <code>mxmlc/compc --compiler.source-path</code>.
+	 * 
+	 * @param paths an array of <code>java.io.File</code> (<code>File.isDirectory()</code> must return <code>true</code>).
+	 */
 	public void setSourcePath(File[] paths)
 	{
 		args.put(COMPILER_SOURCE_PATH, paths);

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b36ee033/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMUtil.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMUtil.java b/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMUtil.java
index b6e1d5b..d791e10 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMUtil.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/oem/internal/OEMUtil.java
@@ -243,6 +243,8 @@ public class OEMUtil
     private static LibraryCompilerConfiguration processCOMPCCConfiguration(org.apache.flex.compiler.config.Configuration config)
     {
         LibraryCompilerConfiguration acc = new LibraryCompilerConfiguration();
+        ConfigurationPathResolver resolver = new ConfigurationPathResolver(); 
+	    acc.setConfigPathResolver(resolver);
         acc.setBackgroundColor(config.getDefaultBackgroundColor());
         acc.setDebug(config.debug());
         acc.setFrameRate(config.getDefaultFrameRate());
@@ -251,7 +253,45 @@ public class OEMUtil
         acc.setSwfVersion(config.getSwfVersion());
         acc.setScriptRecursionLimit(config.getScriptRecursionLimit());
         acc.setScriptTimeLimit(config.getScriptTimeLimit());
+        CompilerConfiguration cc = acc.getCompilerConfiguration();
         
+        List<String> externalLibraries = config.getCompilerExternalLibraryPath();
+        String[] extlibs = new String[externalLibraries.size()];
+        externalLibraries.toArray(extlibs);
+        try
+        {
+            cc.cfgExternalLibraryPath(null, extlibs);
+        }
+        catch (ConfigurationException e)
+        {
+            // TODO Auto-generated catch block
+            e.printStackTrace();
+        }
+        List<String> libraries = config.getCompilerLibraryPath();
+        String[] libs = new String[libraries.size()];
+        libraries.toArray(libs);
+        try
+        {
+            cc.cfgLibraryPath(null, libs);
+        }
+        catch (ConfigurationException e)
+        {
+            // TODO Auto-generated catch block
+            e.printStackTrace();
+        }
+        List<String> sources = config.getCompilerSourcePath();
+        String[] srcs = new String[sources.size()];
+        sources.toArray(srcs);
+        try
+        {
+            cc.cfgSourcePath(null, srcs);
+        }
+        catch (ConfigurationException e)
+        {
+            // TODO Auto-generated catch block
+            e.printStackTrace();
+        }
+	    
         return acc;
     }
 	


[18/36] git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: moved conversion of node module names with dashes to camel case from ExternCConfiguration into a utility class so that it may be used elsewhere

Posted by ah...@apache.org.
compiler-jx: moved conversion of node module names with dashes to camel case from ExternCConfiguration into a utility class so that it may be used elsewhere


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

Branch: refs/heads/develop
Commit: 693af591303e6b514d4eee042fb76abed6487fda
Parents: 80990a8
Author: Josh Tynjala <jo...@apache.org>
Authored: Fri May 26 14:58:56 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Fri May 26 14:58:56 2017 -0700

----------------------------------------------------------------------
 .../compiler/clients/ExternCConfiguration.java  | 11 +-----
 .../apache/flex/compiler/utils/NodeJSUtils.java | 41 ++++++++++++++++++++
 2 files changed, 43 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/693af591/compiler-jx/src/main/java/org/apache/flex/compiler/clients/ExternCConfiguration.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/ExternCConfiguration.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/ExternCConfiguration.java
index d3118e9..67bc814 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/ExternCConfiguration.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/ExternCConfiguration.java
@@ -38,6 +38,7 @@ import org.apache.flex.compiler.internal.config.annotations.Arguments;
 import org.apache.flex.compiler.internal.config.annotations.Config;
 import org.apache.flex.compiler.internal.config.annotations.InfiniteArguments;
 import org.apache.flex.compiler.internal.config.annotations.Mapping;
+import org.apache.flex.compiler.utils.NodeJSUtils;
 import org.apache.flex.utils.FilenameNormalization;
 
 public class ExternCConfiguration extends Configuration
@@ -324,15 +325,7 @@ public class ExternCConfiguration extends Configuration
         for (String module : namedModules)
         {
             //convert to camel case
-            String camelCaseModule = module;
-            int moduleIndex = camelCaseModule.indexOf("-");
-            while (moduleIndex != -1 && moduleIndex < camelCaseModule.length() - 1)
-            {
-                camelCaseModule = camelCaseModule.substring(0, moduleIndex)
-                        + camelCaseModule.substring(moduleIndex + 1, moduleIndex + 2).toUpperCase()
-                        + camelCaseModule.substring(moduleIndex + 2);
-                moduleIndex = camelCaseModule.indexOf("-");
-            }
+            String camelCaseModule = NodeJSUtils.convertFromDashesToCamelCase(module);
             if(basePackageName.length() == 0)
             {
                 if (classReference.getBaseName().equals(camelCaseModule))

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/693af591/compiler-jx/src/main/java/org/apache/flex/compiler/utils/NodeJSUtils.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/utils/NodeJSUtils.java b/compiler-jx/src/main/java/org/apache/flex/compiler/utils/NodeJSUtils.java
new file mode 100644
index 0000000..608b3ac
--- /dev/null
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/utils/NodeJSUtils.java
@@ -0,0 +1,41 @@
+/*
+ *
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+
+package org.apache.flex.compiler.utils;
+
+public class NodeJSUtils
+{
+    /**
+     * Converts the name of a node module with dashes into a version in camel
+     * case so that it can be a valid identifier.
+     */
+    public static String convertFromDashesToCamelCase(String moduleNameWithDashes)
+    {
+        String camelCaseModule = moduleNameWithDashes;
+        int moduleIndex = camelCaseModule.indexOf("-");
+        while (moduleIndex != -1 && moduleIndex < camelCaseModule.length() - 1)
+        {
+            camelCaseModule = camelCaseModule.substring(0, moduleIndex)
+                    + camelCaseModule.substring(moduleIndex + 1, moduleIndex + 2).toUpperCase()
+                    + camelCaseModule.substring(moduleIndex + 2);
+            moduleIndex = camelCaseModule.indexOf("-");
+        }
+        return camelCaseModule;
+    }
+}


[13/36] git commit: [flex-falcon] [refs/heads/develop] - handle early exits where source files and mainCU are not available

Posted by ah...@apache.org.
handle early exits where source files and mainCU are not available


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

Branch: refs/heads/develop
Commit: f5a9cc40a78aa20937aa8c72fa0ffd9712447d85
Parents: b36ee03
Author: Alex Harui <ah...@apache.org>
Authored: Wed May 17 23:34:10 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed May 17 23:34:10 2017 -0700

----------------------------------------------------------------------
 .../org/apache/flex/compiler/clients/MXMLC.java |  1 +
 .../src/main/java/flex2/tools/oem/Library.java  | 50 ++++++++++----------
 2 files changed, 27 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f5a9cc40/compiler/src/main/java/org/apache/flex/compiler/clients/MXMLC.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/clients/MXMLC.java b/compiler/src/main/java/org/apache/flex/compiler/clients/MXMLC.java
index d77db73..473f48d 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/clients/MXMLC.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/clients/MXMLC.java
@@ -1141,6 +1141,7 @@ public class MXMLC implements FlexTool
     
     public String getMainSource()
     {
+    	if (mainCU == null) return "";
         return mainCU.getAbsoluteFilename();
     }
     

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f5a9cc40/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java b/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java
index 182c325..e6f4eb8 100644
--- a/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java
+++ b/flex-compiler-oem/src/main/java/flex2/tools/oem/Library.java
@@ -928,32 +928,34 @@ public class Library implements Builder, Cloneable
         List<String> sourceFiles = compc.getSourceList();
         String mainFile = compc.getMainSource();
         VirtualFile mainVirtualFile = null;
-        for (String sourceFile : sourceFiles)
+        if (sourceFiles != null)
         {
-            for (VirtualFile sourcePath : sourcePaths)
-            {
-                String pathName = sourcePath.getName();
-                if (sourceFile.indexOf(pathName) == 0)
-                {
-                    String relPath = sourceFile.substring(pathName.length());
-                    int lastSep = relPath.lastIndexOf(File.separator);
-                    String shortName = relPath.substring(lastSep + 1);
-                    relPath = relPath.substring(0, lastSep);
-                    boolean isRoot = sourceFile.equals(mainFile);
-                    Source source = new Source(sourcePath, relPath, shortName, null, false, isRoot);
-                    compiledSources.add(source);
-                    if (mainFile != null && pathName.equals(mainFile))
-                    	mainVirtualFile = sourcePath;
-                }
-            }
+	        for (String sourceFile : sourceFiles)
+	        {
+	            for (VirtualFile sourcePath : sourcePaths)
+	            {
+	                String pathName = sourcePath.getName();
+	                if (sourceFile.indexOf(pathName) == 0)
+	                {
+	                    String relPath = sourceFile.substring(pathName.length());
+	                    int lastSep = relPath.lastIndexOf(File.separator);
+	                    String shortName = relPath.substring(lastSep + 1);
+	                    relPath = relPath.substring(0, lastSep);
+	                    boolean isRoot = sourceFile.equals(mainFile);
+	                    Source source = new Source(sourcePath, relPath, shortName, null, false, isRoot);
+	                    compiledSources.add(source);
+	                    if (mainFile != null && pathName.equals(mainFile))
+	                    	mainVirtualFile = sourcePath;
+	                }
+	            }
+	        }
+	        try {
+				sourceList = new SourceList(new ArrayList<VirtualFile>(), sourcePaths, mainVirtualFile, new String[0]);
+			} catch (CompilerException e2) {
+				// TODO Auto-generated catch block
+				e2.printStackTrace();
+			}
         }
-        try {
-			sourceList = new SourceList(new ArrayList<VirtualFile>(), sourcePaths, mainVirtualFile, new String[0]);
-		} catch (CompilerException e2) {
-			// TODO Auto-generated catch block
-			e2.printStackTrace();
-		}
-
         convertMessages(compc.getProblemQuery());
         
         clean(returnValue != OK, false, false);


[24/36] git commit: [flex-falcon] [refs/heads/develop] - added two missing bug fixes to release notes

Posted by ah...@apache.org.
added two missing bug fixes to release notes


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

Branch: refs/heads/develop
Commit: 74d148746be4e7c386399c6752180437a378a11d
Parents: ff17848
Author: Josh Tynjala <jo...@apache.org>
Authored: Tue May 30 13:25:30 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Tue May 30 13:25:30 2017 -0700

----------------------------------------------------------------------
 RELEASE_NOTES_JX | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/74d14874/RELEASE_NOTES_JX
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES_JX b/RELEASE_NOTES_JX
index 4b1fe5d..968c8ca 100644
--- a/RELEASE_NOTES_JX
+++ b/RELEASE_NOTES_JX
@@ -15,6 +15,8 @@ New Features
 
 Bug Fixes
 ---------
+-FLEX-35317 Generated require() call for Node.js modules does not produce valid code if module name includes dashes
+-FLEX-35316 -version compiler option does not show version
 -FLEX-35300 Could not find file for class: Error
 -FLEX-35239 Runtime error when setting a property to a constant value
 -FLEX-35236 Binding is not working when [Bindable] is set for the class


[17/36] git commit: [flex-falcon] [refs/heads/develop] - COMPJSC: added missing support for JSTargetType.JS_NODE

Posted by ah...@apache.org.
COMPJSC: added missing support for JSTargetType.JS_NODE


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

Branch: refs/heads/develop
Commit: 80990a86b6b23745f55ec467e9baf8a2b85d0651
Parents: 9f6266b
Author: Josh Tynjala <jo...@apache.org>
Authored: Fri May 26 14:31:34 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Fri May 26 14:31:34 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/flex/compiler/clients/COMPJSC.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/80990a86/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java
index 8b82cb8..f9fcd9c 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/COMPJSC.java
@@ -222,6 +222,7 @@ public class COMPJSC extends MXMLJSC
 	                    }
 	                    break;
 	                case JS_NATIVE:
+                    case JS_NODE:
 	                	COMPJSCNative jsc = new COMPJSCNative();
 	                	lastCompiler = jsc;
 	                    result = jsc.mainNoExit(removeASArgs(args), problems.getProblems(), false);


[31/36] git commit: [flex-falcon] [refs/heads/develop] - fix path to browser

Posted by ah...@apache.org.
fix path to browser


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

Branch: refs/heads/develop
Commit: e8e91e671ffa33ec4da3c62ec1c0269354818026
Parents: fb3ef5d
Author: Alex Harui <ah...@apache.org>
Authored: Fri Jun 9 14:31:08 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Jun 9 14:31:08 2017 -0700

----------------------------------------------------------------------
 releasecandidate.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e8e91e67/releasecandidate.xml
----------------------------------------------------------------------
diff --git a/releasecandidate.xml b/releasecandidate.xml
index 8f3fe3c..d342419 100644
--- a/releasecandidate.xml
+++ b/releasecandidate.xml
@@ -119,7 +119,7 @@
 		property="browser" value="${env.ProgramFiles}/Mozilla Firefox/firefox.exe" />
     <available file="${env.ProgramFiles(x86)}/Mozilla Firefox/firefox.exe"
 		type="file"
-		property="browser" value="${env.ProgramFiles}/Mozilla Firefox/firefox.exe" />
+		property="browser" value="${env.ProgramFiles(x86)}/Mozilla Firefox/firefox.exe" />
     <available file="/Applications/Firefox.app/Contents/MacOS/firefox"
 		type="file"
 		property="browser" value="/Applications/Firefox.app/Contents/MacOS/firefox" />


[21/36] git commit: [flex-falcon] [refs/heads/develop] - report error instead of NPE if namespace isn't right

Posted by ah...@apache.org.
report error instead of NPE if namespace isn't right


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

Branch: refs/heads/develop
Commit: 2f5a3751c54e0ef6d3dccd02de57941c0f0700c7
Parents: 3e8c099
Author: Alex Harui <ah...@apache.org>
Authored: Tue May 30 12:49:06 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 30 12:49:49 2017 -0700

----------------------------------------------------------------------
 .../flex/compiler/internal/definitions/AccessorDefinition.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2f5a3751/compiler/src/main/java/org/apache/flex/compiler/internal/definitions/AccessorDefinition.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/definitions/AccessorDefinition.java b/compiler/src/main/java/org/apache/flex/compiler/internal/definitions/AccessorDefinition.java
index aadd143..575580e 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/definitions/AccessorDefinition.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/definitions/AccessorDefinition.java
@@ -31,6 +31,7 @@ import org.apache.flex.compiler.definitions.IInterfaceDefinition;
 import org.apache.flex.compiler.definitions.INamespaceDefinition;
 import org.apache.flex.compiler.definitions.IPackageDefinition;
 import org.apache.flex.compiler.definitions.ISetterDefinition;
+import org.apache.flex.compiler.problems.UnresolvedNamespaceProblem;
 import org.apache.flex.compiler.projects.ICompilerProject;
 import org.apache.flex.compiler.scopes.IDefinitionSet;
 import org.apache.flex.compiler.tree.as.IVariableNode;
@@ -163,6 +164,11 @@ public abstract class AccessorDefinition extends FunctionDefinition implements I
                     {
                         INamespaceReference testDefRef = definition.getNamespaceReference();
                         INamespaceDefinition testNamespaceDef = testDefRef.resolveNamespaceReference(project);
+                        if (testNamespaceDef == null)
+                        {
+                        	project.getProblems().add(new UnresolvedNamespaceProblem(definition.getNode()));
+                        	return null;
+                        }
                         final boolean testBindable = ((NamespaceDefinition)testNamespaceDef).getAETNamespace().getName().equals(
                                 BindableHelper.bindableNamespaceDefinition.getAETNamespace().getName());
                         /* aharui: namespaces shouldn't have to match.  A subclass may only override


[11/36] git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: fixed the -version compiler option

Posted by ah...@apache.org.
compiler-jx: fixed the -version compiler option


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

Branch: refs/heads/develop
Commit: 61b2283322e56eb503de7099ff7e3ce9f4ab1407
Parents: d210ac5
Author: Josh Tynjala <jo...@apache.org>
Authored: Wed May 17 09:47:43 2017 -0400
Committer: Josh Tynjala <jo...@apache.org>
Committed: Wed May 17 09:47:43 2017 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/61b22833/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
index 135b0d3..0916598 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
@@ -41,6 +41,7 @@ import org.apache.flex.compiler.clients.problems.ProblemQueryProvider;
 import org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter;
 import org.apache.flex.compiler.codegen.js.IJSPublisher;
 import org.apache.flex.compiler.codegen.js.IJSWriter;
+import org.apache.flex.compiler.common.VersionInfo;
 import org.apache.flex.compiler.config.Configuration;
 import org.apache.flex.compiler.config.ConfigurationBuffer;
 import org.apache.flex.compiler.config.Configurator;
@@ -830,7 +831,10 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
             configBuffer = projectConfigurator.getConfigurationBuffer();
 
             if (configBuffer.getVar("version") != null) //$NON-NLS-1$
+            {
+                System.out.println(VersionInfo.buildMessage());
                 return false;
+            }
 
             if (problems.hasErrors())
                 return false;


[07/36] git commit: [flex-falcon] [refs/heads/develop] - don't fail if just warnings

Posted by ah...@apache.org.
don't fail if just warnings


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

Branch: refs/heads/develop
Commit: eadadcae8874aeade4369c8d58b7c1807eb29c76
Parents: 8122f9f
Author: Alex Harui <ah...@apache.org>
Authored: Sun May 14 21:56:20 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Sun May 14 21:56:20 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/flex/compiler/clients/MXMLJSC.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/eadadcae/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
index 795466e..135b0d3 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
@@ -335,7 +335,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
 	                    	result = mxmlc.mainCompileOnly(removeJSArgs(args), err);
 	                    else
 	                    	result = mxmlc.mainNoExit(removeJSArgs(args));
-	                    if (result != 0)
+	                    if (result != 0 && result != 2)
 	                    {
 	                    	problems.addAll(mxmlc.problems.getProblems());
 	                    	break targetloop;
@@ -345,7 +345,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
 	                	MXMLJSCFlex flex = new MXMLJSCFlex();
 	                	lastCompiler = flex;
 	                    result = flex.mainNoExit(removeASArgs(args), problems.getProblems(), false);
-	                    if (result != 0)
+	                    if (result != 0 && result != 2)
 	                    {
 	                    	break targetloop;
 	                    }
@@ -354,7 +354,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
 	                	MXMLJSCFlexCordova flexCordova = new MXMLJSCFlexCordova();
 	                	lastCompiler = flexCordova;
 	                    result = flexCordova.mainNoExit(removeASArgs(args), problems.getProblems(), false);
-	                    if (result != 0)
+	                    if (result != 0 && result != 2)
 	                    {
 	                    	break targetloop;
 	                    }
@@ -363,7 +363,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
 	                	MXMLJSCNode node = new MXMLJSCNode();
 	                	lastCompiler = node;
 	                    result = node.mainNoExit(removeASArgs(args), problems.getProblems(), false);
-	                    if (result != 0)
+	                    if (result != 0 && result != 2)
 	                    {
 	                    	break targetloop;
 	                    }
@@ -372,7 +372,7 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
 	                	MXMLJSCNative jsc = new MXMLJSCNative();
 	                	lastCompiler = jsc;
 	                    result = jsc.mainNoExit(removeASArgs(args), problems.getProblems(), false);
-	                    if (result != 0)
+	                    if (result != 0 && result != 2)
 	                    {
 	                    	break targetloop;
 	                    }


[04/36] git commit: [flex-falcon] [refs/heads/develop] - add 0.8.0

Posted by ah...@apache.org.
add 0.8.0


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

Branch: refs/heads/develop
Commit: e485eee41f2b4b74cec36ae928c0124036e31abb
Parents: b6b713a
Author: Alex Harui <ah...@apache.org>
Authored: Thu May 11 11:11:11 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu May 11 11:11:11 2017 -0700

----------------------------------------------------------------------
 RELEASE_NOTES | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e485eee4/RELEASE_NOTES
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES b/RELEASE_NOTES
index 422ca64..6d24f5f 100644
--- a/RELEASE_NOTES
+++ b/RELEASE_NOTES
@@ -1,3 +1,16 @@
+Apache Flex 'Falcon' Compiler 0.8.0
+=================
+Apache Flex 'Falcon' Compiler 0.8.0 is the sixth release of a next-generation
+compiler intended to someday replace the MXMLC in Apache Flex SDKs, and is the
+compiler for Apache FlexJS SDKs.
+
+The compiler is now biased towards building Apache FlexJS projects.  The Ant
+tasks now point to the cross-compiler, which can now build both SWFs and
+cross-compiler (transpile) MXML and AS to JS.
+
+Lots of bug fixes and other small improvements are included in this release.
+See the RELEASE_NOTES_JX file for a list of resolved issues.
+
 Apache Flex 'Falcon' Compiler 0.7.0
 =================
 Apache Flex 'Falcon' Compiler 0.7.0 is the fifth release of a next-generation


[36/36] git commit: [flex-falcon] [refs/heads/develop] - Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/flex-falcon into develop

Posted by ah...@apache.org.
Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/flex-falcon into develop


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

Branch: refs/heads/develop
Commit: 88faf6bd34cdfdd74083ba6323fd71eaa2c714e6
Parents: 4d1cff9 c96a7b9
Author: Alex Harui <ah...@apache.org>
Authored: Mon Jun 26 08:33:50 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Jun 26 08:33:50 2017 -0700

----------------------------------------------------------------------
 compiler-jx/pom.xml                             |  8 ++--
 .../flexjs/projects/interfaces/Test.as          |  6 +--
 compiler-test-utils/pom.xml                     |  4 +-
 compiler/pom.xml                                |  6 +--
 .../as/codegen/ABCGeneratingReducer.java        |  2 +-
 debugger/pom.xml                                |  6 +--
 flex-compiler-oem/pom.xml                       |  8 ++--
 flexjs-ant-tasks/pom.xml                        |  4 +-
 flexjs-maven-extension/pom.xml                  |  2 +-
 flexjs-maven-plugin/pom.xml                     |  4 +-
 .../resources/config/compile-app-config.xml     |  8 ++--
 .../config/compile-asdoc-js-config.xml          | 48 ++++++++++----------
 .../resources/config/compile-swf-config.xml     | 16 +++----
 pom.xml                                         |  4 +-
 14 files changed, 63 insertions(+), 63 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/88faf6bd/pom.xml
----------------------------------------------------------------------
diff --cc pom.xml
index 9ef3c7a,3425c09..5837abe
--- a/pom.xml
+++ b/pom.xml
@@@ -597,4 -591,4 +597,4 @@@
      </pluginRepository>
    </pluginRepositories>
  
--</project>
++</project>


[19/36] git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: fixed issue where require() calls generated by PackageHeaderEmitter for Node.js modules would create invalid variable names because it didn't convert from dashes to camel case

Posted by ah...@apache.org.
compiler-jx: fixed issue where require() calls generated by PackageHeaderEmitter for Node.js modules would create invalid variable names because it didn't convert from dashes to camel case


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

Branch: refs/heads/develop
Commit: 5a32df89de60f93f3da9dddbbd60788654eda875
Parents: 693af59
Author: Josh Tynjala <jo...@apache.org>
Authored: Fri May 26 15:01:17 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Fri May 26 15:01:17 2017 -0700

----------------------------------------------------------------------
 .../internal/codegen/js/jx/PackageHeaderEmitter.java   | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5a32df89/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
index 0f1d0cd..5d2c413 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/PackageHeaderEmitter.java
@@ -51,6 +51,7 @@ import org.apache.flex.compiler.targets.ITarget.TargetType;
 import org.apache.flex.compiler.tree.as.ITypeNode;
 import org.apache.flex.compiler.units.ICompilationUnit;
 import org.apache.flex.compiler.utils.NativeUtils;
+import org.apache.flex.compiler.utils.NodeJSUtils;
 
 public class PackageHeaderEmitter extends JSSubEmitter implements
         ISubEmitter<IPackageDefinition>
@@ -402,26 +403,28 @@ public class PackageHeaderEmitter extends JSSubEmitter implements
         if (externalRequiresList != null)
         {
             Collections.sort(externalRequiresList);
-            for (String imp : externalRequiresList)
+            for (String nodeJSModuleName : externalRequiresList)
             {
-                if (writtenRequires.indexOf(imp) == -1)
+                if (writtenRequires.indexOf(nodeJSModuleName) == -1)
                 {
+                    String moduleVariableName = NodeJSUtils.convertFromDashesToCamelCase(nodeJSModuleName);
                     /* var x = require('x');\n */
+                    /* var someModule = require('some-module');\n */
                     write(ASEmitterTokens.VAR);
                     write(ASEmitterTokens.SPACE);
-                    write(imp);
+                    write(moduleVariableName);
                     write(ASEmitterTokens.SPACE);
                     write(ASEmitterTokens.EQUAL);
                     write(ASEmitterTokens.SPACE);
                     write(NodeEmitterTokens.REQUIRE);
                     write(ASEmitterTokens.PAREN_OPEN);
                     write(ASEmitterTokens.SINGLE_QUOTE);
-                    write(imp);
+                    write(nodeJSModuleName);
                     write(ASEmitterTokens.SINGLE_QUOTE);
                     write(ASEmitterTokens.PAREN_CLOSE);
                     writeNewline(ASEmitterTokens.SEMICOLON);
 
-                    writtenRequires.add(imp);
+                    writtenRequires.add(nodeJSModuleName);
 
                     emitsExternalRequires = true;
                 }


[32/36] git commit: [flex-falcon] [refs/heads/develop] - Added a rat exclusion for the flex-typedefs directory which causes problems in ANT built release packages.

Posted by ah...@apache.org.
Added a rat exclusion for the flex-typedefs directory which causes problems in ANT built release packages.


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

Branch: refs/heads/develop
Commit: e90ea207b05a2cd31fbfba8f54c8e386f603fefa
Parents: e8e91e6
Author: Christofer Dutz <ch...@codecentric.de>
Authored: Tue Jun 13 08:58:25 2017 +0200
Committer: Christofer Dutz <ch...@codecentric.de>
Committed: Tue Jun 13 08:58:25 2017 +0200

----------------------------------------------------------------------
 pom.xml | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e90ea207/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 0f34fc2..de4d206 100644
--- a/pom.xml
+++ b/pom.xml
@@ -162,6 +162,12 @@
             <exclude>**/target/**</exclude>
             <!-- Stuff an Ant build might have left behind. -->
             <exclude>lib/**</exclude>
+            <!--
+                In case of an ANT based release the typedefs are included as a
+                subdirectory. We need to exclude this directory from the compiler checks
+                as the typedefs build will handle all content in that directory
+            -->
+            <exclude>flex-typedefs/**</exclude>
           </excludes>
         </configuration>
         <dependencies>


[23/36] git commit: [flex-falcon] [refs/heads/develop] - fix SWFOverride handling

Posted by ah...@apache.org.
fix SWFOverride handling


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

Branch: refs/heads/develop
Commit: ff178488cdce68ca46fa3b7aa91d180b5bbd0e61
Parents: 2f5a375
Author: Alex Harui <ah...@apache.org>
Authored: Tue May 30 12:49:42 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 30 12:49:49 2017 -0700

----------------------------------------------------------------------
 .../org/apache/flex/compiler/internal/targets/SWFTarget.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ff178488/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWFTarget.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWFTarget.java b/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWFTarget.java
index 06f932a..144ba5f 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWFTarget.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/targets/SWFTarget.java
@@ -443,6 +443,9 @@ public abstract class SWFTarget extends Target implements ISWFTarget
 	                                        {
 	                                        	String methodName = method.getMethodName();
 	                                        	if (methodName == null) continue;
+	                                        	// match getter with getter methodInfo
+	                                        	if (trait.isGetter() && method.getReturnType().getBaseName().equals(IASLanguageConstants.void_)) continue;
+	                                        	if (trait.isSetter() && (!method.getReturnType().getBaseName().equals(IASLanguageConstants.void_))) continue;
 	                                        	if (methodName.equals(trait.getName().getBaseName()))
 	                                        	{
 	                                        		String[] keys = meta.getKeys();
@@ -479,7 +482,6 @@ public abstract class SWFTarget extends Target implements ISWFTarget
 	                                                				method.setReturnType(name);
 	                                                				foundName = true;
 	                                                				changedABC = true;
-	                                                				break metas;
 	                                        					}
 	                                        				}
 	                                        				if (!foundName)
@@ -494,7 +496,6 @@ public abstract class SWFTarget extends Target implements ISWFTarget
 	                                        					namePool.add(name);
 	                                        					method.setReturnType(name);
 	                                        					changedABC = true;
-	                                            				break metas;
 	                                        				}
 	                                        			}
 	                                        			else if (keys[i].equals(IMetaAttributeConstants.NAME_SWFOVERRIDE_PARAMS))
@@ -556,9 +557,9 @@ public abstract class SWFTarget extends Target implements ISWFTarget
 		                                        				}
 		                                        			}
 	                                    					method.setParamTypes(newList);
-	                                    					break metas;
 	                                        			}
 	                                        		}
+	                                        		break metas;
 	                                        	}
 	                                        }
 	                        			}


[16/36] git commit: [flex-falcon] [refs/heads/develop] - fix an NPE

Posted by ah...@apache.org.
fix an NPE


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

Branch: refs/heads/develop
Commit: 9f6266b6fcc5603e2a132c781e0931307b324644
Parents: 9614783
Author: Alex Harui <ah...@apache.org>
Authored: Wed May 24 09:54:38 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed May 24 09:54:48 2017 -0700

----------------------------------------------------------------------
 .../org/apache/flex/compiler/internal/projects/FlexProject.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9f6266b6/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java b/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java
index 6a8ffd9..94d1f30 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java
@@ -2301,6 +2301,7 @@ public class FlexProject extends ASProject implements IFlexProject
                 }
             }
         }
+        if (func == null) return false;
 		IMetaTag[] metas = func.getAllMetaTags();
 		for (IMetaTag meta : metas)
 		{


[30/36] git commit: [flex-falcon] [refs/heads/develop] - try adding delay on windows, otherwise you get random dir creation errors

Posted by ah...@apache.org.
try adding delay on windows, otherwise you get random dir creation errors


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

Branch: refs/heads/develop
Commit: fb3ef5d791ecbb7ba01fa876aa6cc004014be3be
Parents: 85c4376
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 8 23:29:33 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 8 23:29:33 2017 -0700

----------------------------------------------------------------------
 build.xml | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fb3ef5d7/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 3a4b664..231f152 100644
--- a/build.xml
+++ b/build.xml
@@ -283,6 +283,7 @@
     <target name="stage-source"
         description="Package source files required to build in zip file" >
         <antcall target="clean-temp"/>
+        <sleep seconds="3" />
         <mkdir dir="${basedir}/temp"/>
 
         <copy todir="${basedir}/temp" includeEmptyDirs="false">


[34/36] git commit: [flex-falcon] [refs/heads/develop] - improve format and wording of email

Posted by ah...@apache.org.
improve format and wording of email


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

Branch: refs/heads/develop
Commit: a7bcf128c3701825401e9a819fd39b01a5fb075c
Parents: cf07c62
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 22 09:54:42 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 22 09:54:42 2017 -0700

----------------------------------------------------------------------
 releasecandidate.xml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a7bcf128/releasecandidate.xml
----------------------------------------------------------------------
diff --git a/releasecandidate.xml b/releasecandidate.xml
index d342419..d6c581f 100644
--- a/releasecandidate.xml
+++ b/releasecandidate.xml
@@ -406,7 +406,7 @@ a FlexJS SDK via Ant or the Installer.\n\
 \n\
 Please vote to approve this release:\n\
 +1 Approve the release\n\
--1 Veto the release (please provide specific comments to why)\n\
+-1 Disapprove the release (please provide specific comments to why)\n\
 \n\
 This vote will be open for 72 hours or until a result can be called.\n\
 \n\
@@ -435,7 +435,8 @@ package and signature files, unzipping, etc, you can instead:\n\
 1) create an empty folder,\n\
 2) download into that folder this file:\n\
 https://dist.apache.org/repos/dist/dev/flex/falcon/${release.version}/rc${rc}/ApproveFalcon.xml\n\
-3) run the script: ant -e -f ApproveFalcon.xml -Drelease.version=${release.version} -Drc=${rc}\n\
+3) run the script:\n\
+   ant -e -f ApproveFalcon.xml -Drelease.version=${release.version} -Drc=${rc}\n\
 \n\
 You are not required to use this script, and more testing of the packages\n\
 and build results are always encouraged.\n\


[28/36] git commit: [flex-falcon] [refs/heads/develop] - test commit

Posted by ah...@apache.org.
test commit


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

Branch: refs/heads/develop
Commit: ed360672c872faeb2121b03577137fc24ac3312f
Parents: 78e8514
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 8 20:55:13 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Jun 8 20:55:13 2017 -0700

----------------------------------------------------------------------
 build.xml | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ed360672/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index c6df1c3..5a55219 100644
--- a/build.xml
+++ b/build.xml
@@ -1,5 +1,4 @@
 <?xml version="1.0" ?>
-
 <!--
 
   Licensed to the Apache Software Foundation (ASF) under one or more


[09/36] git commit: [flex-falcon] [refs/heads/develop] - allow pruning of Class Selectors

Posted by ah...@apache.org.
allow pruning of Class Selectors


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

Branch: refs/heads/develop
Commit: 55ca0b2d5c6b4892afba73fcbcba2ef3bac7ce42
Parents: ad8fb20
Author: Alex Harui <ah...@apache.org>
Authored: Mon May 15 15:12:21 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon May 15 15:12:21 2017 -0700

----------------------------------------------------------------------
 .../css/semantics/CSSSemanticAnalyzer.java      | 36 +++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/55ca0b2d/compiler/src/main/java/org/apache/flex/compiler/internal/css/semantics/CSSSemanticAnalyzer.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/css/semantics/CSSSemanticAnalyzer.java b/compiler/src/main/java/org/apache/flex/compiler/internal/css/semantics/CSSSemanticAnalyzer.java
index e2f244c..d34cdee 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/css/semantics/CSSSemanticAnalyzer.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/css/semantics/CSSSemanticAnalyzer.java
@@ -36,6 +36,7 @@ import org.apache.flex.compiler.css.ICSSProperty;
 import org.apache.flex.compiler.css.ICSSPropertyValue;
 import org.apache.flex.compiler.css.ICSSRule;
 import org.apache.flex.compiler.css.ICSSSelector;
+import org.apache.flex.compiler.css.ICSSSelectorCondition;
 import org.apache.flex.compiler.definitions.IClassDefinition;
 import org.apache.flex.compiler.definitions.IDefinition;
 import org.apache.flex.compiler.definitions.metadata.IMetaTag;
@@ -385,7 +386,11 @@ public class CSSSemanticAnalyzer
             for (final ICSSSelector selector : rule.getSelectorGroup())
             {
                 if (isWildcardSelector(selector))
-                    return true;
+                {
+                	String selName = getOptionalSelectorName(selector);
+                	if (selName == null) return true;
+                    return qnames.contains(selName);
+                }
                 final String qname = resolvedSelectors.get(selector);
                 if (qnames.contains(qname))
                     return true;
@@ -514,6 +519,35 @@ public class CSSSemanticAnalyzer
     }
 
     /**
+     * Check if the selector is a optional class selector.
+     * An optional class selector is a class selector
+     * with the name opt_qname_otherstuff.
+     * 
+     * The output will not contain the selector if the
+     * class identified by qname is not in the output.
+     * 
+     * @param selector CSS selector
+     * @return True if the selector is a "optional" selector.
+     */
+    public static String getOptionalSelectorName(ICSSSelector selector)
+    {
+    	ImmutableList<ICSSSelectorCondition> conditions = selector.getConditions();
+    	if (conditions.size() == 0)
+    		return null;
+        final String elementName = conditions.get(0).getValue();
+        if (elementName == null) return null;
+        if (elementName.startsWith("opt_"))
+        {
+        	int c = elementName.indexOf("_", 4);
+        	if (c >= 0)
+        	{
+        		return elementName.substring(4, c).replace("-", ".");
+        		
+        	}
+        }
+        return null;
+    }
+    /**
      * Build a map from QNames to class definitions.
      * 
      * @param classDefinitions Class definitions.


[20/36] git commit: [flex-falcon] [refs/heads/develop] - compiler-jx: added JSNodeModule to JSTargetType

Posted by ah...@apache.org.
compiler-jx: added JSNodeModule to JSTargetType

JSNode exports a standalone script that may be run directly by Node.js. JSNodeModule exports a CommonJS module that may be imported into Node with require().


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

Branch: refs/heads/develop
Commit: 530dfed2fa1cf026bdf6352cab40c6d0b8de44f9
Parents: 5a32df8
Author: Josh Tynjala <jo...@apache.org>
Authored: Fri May 26 16:29:21 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Fri May 26 16:29:21 2017 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/clients/MXMLJSC.java   | 31 +++++++++----
 .../flex/compiler/clients/MXMLJSCNode.java      |  8 +++-
 .../compiler/clients/MXMLJSCNodeModule.java     | 30 +++++++++++++
 .../internal/codegen/js/node/NodePublisher.java | 17 +++++--
 .../driver/js/node/NodeModuleBackend.java       | 47 ++++++++++++++++++++
 5 files changed, 119 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/530dfed2/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
index 1f14259..1c72e74 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSC.java
@@ -149,8 +149,12 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
         SWF("SWF"),
         JS_FLEX("JSFlex"),
         JS_FLEX_CORDOVA("JSFlexCordova"),
+        //JS without the FlexJS framework
         JS_NATIVE("JS"),
-        JS_NODE("JSNode");
+        //Node.js application
+        JS_NODE("JSNode"),
+        //Node.js module
+        JS_NODE_MODULE("JSNodeModule");
 
         private String text;
 
@@ -361,14 +365,23 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
 	                    }
 	                    break;
 	                case JS_NODE:
-	                	MXMLJSCNode node = new MXMLJSCNode();
-	                	lastCompiler = node;
-	                    result = node.mainNoExit(removeASArgs(args), problems.getProblems(), false);
-	                    if (result != 0 && result != 2)
-	                    {
-	                    	break targetloop;
-	                    }
-	                    break;
+                        MXMLJSCNode node = new MXMLJSCNode();
+                        lastCompiler = node;
+                        result = node.mainNoExit(removeASArgs(args), problems.getProblems(), false);
+                        if (result != 0 && result != 2)
+                        {
+                            break targetloop;
+                        }
+                        break;
+                    case JS_NODE_MODULE:
+                        MXMLJSCNodeModule nodeModule = new MXMLJSCNodeModule();
+                        lastCompiler = nodeModule;
+                        result = nodeModule.mainNoExit(removeASArgs(args), problems.getProblems(), false);
+                        if (result != 0 && result != 2)
+                        {
+                            break targetloop;
+                        }
+                        break;
 	                case JS_NATIVE:
 	                	MXMLJSCNative jsc = new MXMLJSCNative();
 	                	lastCompiler = jsc;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/530dfed2/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNode.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNode.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNode.java
index 49a4013..6ae1999 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNode.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNode.java
@@ -174,10 +174,14 @@ public class MXMLJSCNode implements JSCompilerEntryPoint, ProblemQueryProvider,
     protected ITargetSettings targetSettings;
     protected IJSApplication jsTarget;
     private IJSPublisher jsPublisher;
-    
+
     public MXMLJSCNode()
     {
-        IBackend backend = new NodeBackend();
+        this(new NodeBackend());
+    }
+    
+    protected MXMLJSCNode(IBackend backend)
+    {
         workspace = new Workspace();
         workspace.setASDocDelegate(new FlexJSASDocDelegate());
         project = new FlexJSProject(workspace, backend);

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/530dfed2/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNodeModule.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNodeModule.java b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNodeModule.java
new file mode 100644
index 0000000..7b65fc1
--- /dev/null
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/clients/MXMLJSCNodeModule.java
@@ -0,0 +1,30 @@
+/*
+ *
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+
+package org.apache.flex.compiler.clients;
+
+import org.apache.flex.compiler.internal.driver.js.node.NodeModuleBackend;
+
+public class MXMLJSCNodeModule extends MXMLJSCNode
+{
+    public MXMLJSCNodeModule()
+    {
+        super(new NodeModuleBackend());
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/530dfed2/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/node/NodePublisher.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/node/NodePublisher.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/node/NodePublisher.java
index 4d0747c..4a74a65 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/node/NodePublisher.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/node/NodePublisher.java
@@ -29,6 +29,8 @@ import java.util.List;
 
 public class NodePublisher extends JSCPublisher
 {
+    public boolean exportModule = false;
+
     public NodePublisher(Configuration config, FlexJSProject project)
     {
         super(project, config);
@@ -63,9 +65,18 @@ public class NodePublisher extends JSCPublisher
     protected String getTemplateBody(String projectName)
     {
         StringBuilder bodyJS = new StringBuilder();
-        bodyJS.append("new ");
-        bodyJS.append(projectName);
-        bodyJS.append("();");
+        if (exportModule)
+        {
+            bodyJS.append("module.exports = ");
+            bodyJS.append(projectName);
+            bodyJS.append(";");
+        }
+        else
+        {
+            bodyJS.append("new ");
+            bodyJS.append(projectName);
+            bodyJS.append("();");
+        }
         return bodyJS.toString();
     }
 

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/530dfed2/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/node/NodeModuleBackend.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/node/NodeModuleBackend.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/node/NodeModuleBackend.java
new file mode 100644
index 0000000..8968894
--- /dev/null
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/node/NodeModuleBackend.java
@@ -0,0 +1,47 @@
+/*
+ *
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+
+package org.apache.flex.compiler.internal.driver.js.node;
+
+import java.util.List;
+
+import org.apache.flex.compiler.config.Configuration;
+import org.apache.flex.compiler.driver.IBackend;
+import org.apache.flex.compiler.internal.codegen.js.node.NodePublisher;
+import org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher;
+import org.apache.flex.compiler.internal.driver.js.jsc.JSCBackend;
+import org.apache.flex.compiler.internal.projects.FlexJSProject;
+import org.apache.flex.compiler.problems.ICompilerProblem;
+
+/**
+ * A concrete implementation of the {@link IBackend} API for Node.js modules.
+ *
+ * @author Josh Tynjala
+ */
+public class NodeModuleBackend extends JSCBackend
+{
+    @Override
+    public MXMLFlexJSPublisher createPublisher(FlexJSProject project,
+                                               List<ICompilerProblem> errors, Configuration config)
+    {
+        NodePublisher publisher = new NodePublisher(config, project);
+        publisher.exportModule = true;
+        return publisher;
+    }
+}


[05/36] git commit: [flex-falcon] [refs/heads/develop] - update copyright year

Posted by ah...@apache.org.
update copyright year


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

Branch: refs/heads/develop
Commit: 9a95845b6f84d37fff09185dd83200c56bdbd879
Parents: e485eee
Author: Alex Harui <ah...@apache.org>
Authored: Thu May 11 11:35:41 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu May 11 11:35:41 2017 -0700

----------------------------------------------------------------------
 NOTICE                                                             | 2 +-
 NOTICE.base                                                        | 2 +-
 NOTICE.fdb                                                         | 2 +-
 NOTICE.jx                                                          | 2 +-
 NOTICE.oem                                                         | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_da.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_de.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_en.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_es.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_fi.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_fr.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_it.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_ja.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_ko.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_nb.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_nl.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_pt.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_ru.properties   | 2 +-
 .../src/main/resources/flex/tools/debugger/cli/fdb_sv.properties   | 2 +-
 .../main/resources/flex/tools/debugger/cli/fdb_zh_CN.properties    | 2 +-
 .../main/resources/flex/tools/debugger/cli/fdb_zh_TW.properties    | 2 +-
 21 files changed, 21 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
index e9ed444..2f34c3b 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache Flex Compiler
-Copyright 2012-2016 The Apache Software Foundation
+Copyright 2012-2017 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/NOTICE.base
----------------------------------------------------------------------
diff --git a/NOTICE.base b/NOTICE.base
index 4afe0a6..5a27857 100644
--- a/NOTICE.base
+++ b/NOTICE.base
@@ -1,5 +1,5 @@
 Apache Flex Compiler
-Copyright 2012-2016 The Apache Software Foundation
+Copyright 2012-2017 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/NOTICE.fdb
----------------------------------------------------------------------
diff --git a/NOTICE.fdb b/NOTICE.fdb
index a58ab89..4962b1c 100644
--- a/NOTICE.fdb
+++ b/NOTICE.fdb
@@ -1,5 +1,5 @@
 Apache Flex Debugger
-Copyright 2012-2016 The Apache Software Foundation
+Copyright 2012-2017 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/NOTICE.jx
----------------------------------------------------------------------
diff --git a/NOTICE.jx b/NOTICE.jx
index a833bf3..9f7bf65 100644
--- a/NOTICE.jx
+++ b/NOTICE.jx
@@ -1,5 +1,5 @@
 Apache Flex Cross-Compiler
-Copyright 2012-2016 The Apache Software Foundation
+Copyright 2012-2017 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/NOTICE.oem
----------------------------------------------------------------------
diff --git a/NOTICE.oem b/NOTICE.oem
index 8240a10..735b898 100644
--- a/NOTICE.oem
+++ b/NOTICE.oem
@@ -1,5 +1,5 @@
 Apache Flex Compiler
-Copyright 2012-2016 The Apache Software Foundation
+Copyright 2012-2017 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_da.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_da.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_da.properties
index 210b0c7..a8a07c6 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_da.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_da.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=development
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Afspilleren reagerede ikke som forventet p\u00e5 kommandoen; kommandoen er afbrudt.
 notSuspendedException=Kommandoen kan ikke afgives mens afspilleren k\u00f8rer
 illegalStateException=Kommandoen fungerer ikke uden for en session.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_de.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_de.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_de.properties
index 95caf4a..4015eda 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_de.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_de.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=development
 about=Apache fdb (Flash Player Debugger) [Build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Der Player hat nicht wie erwartet auf den Befehl reagiert; der Befehl wird abgebrochen.
 notSuspendedException=Der Befehl kann nicht ausgestellt werden, w\u00e4hrend der Player ausgef\u00fchrt wird
 illegalStateException=Der Befehl ist ohne Sitzung nicht zul\u00e4ssig.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_en.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_en.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_en.properties
index 60da901..4635cd0 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_en.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_en.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=development
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Player did not respond to the command as expected; command aborted.
 notSuspendedException=Command cannot be issued while Player is running
 illegalStateException=Command not valid without a session.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_es.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_es.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_es.properties
index 284d3ca..9265038 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_es.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_es.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=desarrollo
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=El reproductor no respondi\u00f3 al comando como se esperaba; se cancel\u00f3 el comando.
 notSuspendedException=No puede emitirse el comando mientras el reproductor se est\u00e1 ejecutando.
 illegalStateException=El comando no es v\u00e1lido sin una sesi\u00f3n.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fi.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fi.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fi.properties
index b35aa24..83c685a 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fi.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fi.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=kehitys
 about=Apache fdb (Flash Player Debugger) [versio ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Soitin ei vastannut komentoon odotetulla tavalla. Komento keskeytettiin.
 notSuspendedException=Komentoa ei voi antaa, kun soitin on k\u00e4ynniss\u00e4
 illegalStateException=Komento ei kelpaa ilman istuntoa.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fr.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fr.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fr.properties
index 1fc316f..bfaedd2 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fr.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_fr.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=d\u00e9veloppement
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Le lecteur n'a pas r\u00e9pondu \u00e0 la commande comme pr\u00e9vu ; commande annul\u00e9e.
 notSuspendedException=Impossible d'\u00e9mettre la commande lorsque le lecteur est en cours d'ex\u00e9cution
 illegalStateException=Commande incorrecte sans session.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_it.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_it.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_it.properties
index 5ad1431..1860937 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_it.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_it.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=sviluppo
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Player non ha risposto al comando come previsto. Comando terminato.
 notSuspendedException=Impossibile inviare il comando mentre Player \u00e8 in esecuzione
 illegalStateException=Comando non valido senza una sessione.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ja.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ja.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ja.properties
index 0c3f39e..45381f5 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ja.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ja.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=development
 about=Apache fdb (Flash Player Debugger) [\u30d3\u30eb\u30c9 ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Player \u304c\u30b3\u30de\u30f3\u30c9\u306b\u5bfe\u3057\u3066\u4e88\u671f\u3055\u308c\u305f\u5fdc\u7b54\u3092\u3057\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u30b3\u30de\u30f3\u30c9\u51e6\u7406\u306f\u4e2d\u6b62\u3055\u308c\u307e\u3057\u305f\u3002
 notSuspendedException=Player \u306e\u5b9f\u884c\u4e2d\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093
 illegalStateException=\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u78ba\u7acb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u30b3\u30de\u30f3\u30c9\u306f\u7121\u52b9\u3067\u3059\u3002

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ko.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ko.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ko.properties
index 380c0bb..eec05cf 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ko.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ko.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=\uac1c\ubc1c
 about=Apache fdb(Flash Player Debugger) [\ube4c\ub4dc ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=\ud50c\ub808\uc774\uc5b4\uac00 \uc608\uc0c1\ub300\ub85c \uba85\ub839\uc5d0 \uc751\ub2f5\ud558\uc9c0 \uc54a\uc544 \uba85\ub839\uc774 \uc911\ub2e8\ub418\uc5c8\uc2b5\ub2c8\ub2e4.
 notSuspendedException=\ud50c\ub808\uc774\uc5b4 \uc2e4\ud589 \uc911\uc5d0 \uba85\ub839\uc744 \uc218\ud589\ud560 \uc218 \uc5c6\uc74c
 illegalStateException=\uc138\uc158\uc774 \uc5c6\uc73c\uba74 \uba85\ub839\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nb.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nb.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nb.properties
index 32726a3..6fe465a 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nb.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nb.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=utvikling
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Spilleren reagerte ikke som forventet p\u00e5 kommandoen. Kommando ble avbrutt.
 notSuspendedException=Kommandoen kan ikke gis mens spilleren kj\u00f8rer
 illegalStateException=Kommandoen er ikke gyldig uten en \u00f8kt.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nl.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nl.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nl.properties
index 204f541..936e473 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nl.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_nl.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=ontwikkeling
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Player heeft op onverwachte wijze gereageerd op de opdracht; opdracht afgebroken.
 notSuspendedException=Kan opdracht niet uitvoeren terwijl Player wordt uitgevoerd
 illegalStateException=Opdracht niet geldig zonder sessie

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_pt.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_pt.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_pt.properties
index 84c53f7..bf8cfad 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_pt.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_pt.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=desenvolvimento
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=O Player n\u00e3o respondeu ao comando como esperado; comando anulado.
 notSuspendedException=N\u00e3o \u00e9 poss\u00edvel emitir o comando enquanto o Player est\u00e1 em execu\u00e7\u00e3o
 illegalStateException=Comando inv\u00e1lido sem uma sess\u00e3o.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ru.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ru.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ru.properties
index 3fb7a50..1dfba74 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ru.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_ru.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430
 about=Apache fdb (\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a Flash Player) [\u0441\u0431\u043e\u0440\u043a\u0430 ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b \u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c; \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u043e.
 notSuspendedException=\u041a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f
 illegalStateException=\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0439 \u0431\u0435\u0437 \u0441\u0435\u0430\u043d\u0441\u0430.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_sv.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_sv.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_sv.properties
index 58d1880..e9f445b 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_sv.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_sv.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=utveckling
 about=Apache fdb (Flash Player Debugger) [build ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Spelaren svarade inte p\u00e5 kommandot som f\u00f6rv\u00e4ntat. Kommandot har avbrutits.
 notSuspendedException=Du kan inte ange kommandon n\u00e4r spelaren k\u00f6rs.
 illegalStateException=Kommandot \u00e4r inte giltigt utan session.

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_CN.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_CN.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_CN.properties
index c70870a..37451db 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_CN.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_CN.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=\u5f00\u53d1
 about=Apache fdb\uff08Flash Player \u8c03\u8bd5\u5668\uff09[\u5185\u90e8\u7248\u672c ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Player \u672a\u6309\u9884\u671f\u65b9\u5f0f\u54cd\u5e94\u547d\u4ee4\uff1b\u547d\u4ee4\u5df2\u5f02\u5e38\u7ec8\u6b62\u3002
 notSuspendedException=Player \u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u65f6\u65e0\u6cd5\u53d1\u51fa\u547d\u4ee4
 illegalStateException=\u5982\u679c\u6ca1\u6709\u4f1a\u8bdd\uff0c\u5219\u547d\u4ee4\u65e0\u6548\u3002

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a95845b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_TW.properties
----------------------------------------------------------------------
diff --git a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_TW.properties b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_TW.properties
index 54b5b2a..f5d34e4 100644
--- a/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_TW.properties
+++ b/debugger/src/main/resources/flex/tools/debugger/cli/fdb_zh_TW.properties
@@ -28,7 +28,7 @@
 
 defaultBuildName=\u958b\u767c
 about=Apache fdb (Flash Player \u9664\u932f\u7a0b\u5f0f) [\u7d44\u5efa ${build}]
-copyright=Copyright 2016 The Apache Software Foundation.
+copyright=Copyright 2017 The Apache Software Foundation.
 noResponseException=Player \u672a\u5982\u9810\u671f\u56de\u61c9\u6307\u4ee4\uff1b\u6307\u4ee4\u5df2\u4e2d\u6b62\u3002
 notSuspendedException=Player \u6b63\u5728\u57f7\u884c\u6642\u7121\u6cd5\u767c\u51fa\u6307\u4ee4
 illegalStateException=\u5982\u679c\u6c92\u6709\u5de5\u4f5c\u968e\u6bb5\uff0c\u6307\u4ee4\u5c31\u7121\u6548\u3002


[26/36] git commit: [flex-falcon] [refs/heads/develop] - updated release notes for fixed issue

Posted by ah...@apache.org.
updated release notes for fixed issue


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

Branch: refs/heads/develop
Commit: 833705e09c0e7fb9c657dfb14eb4cfe95b2cf370
Parents: 57a5697
Author: Josh Tynjala <jo...@apache.org>
Authored: Wed Jun 7 09:38:52 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Wed Jun 7 09:38:52 2017 -0700

----------------------------------------------------------------------
 RELEASE_NOTES_JX | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/833705e0/RELEASE_NOTES_JX
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES_JX b/RELEASE_NOTES_JX
index 968c8ca..f683ea8 100644
--- a/RELEASE_NOTES_JX
+++ b/RELEASE_NOTES_JX
@@ -15,6 +15,7 @@ New Features
 
 Bug Fixes
 ---------
+-FLEX-35323 NullPointerException when setting property of <fx:Object/> with binding
 -FLEX-35317 Generated require() call for Node.js modules does not produce valid code if module name includes dashes
 -FLEX-35316 -version compiler option does not show version
 -FLEX-35300 Could not find file for class: Error


[14/36] git commit: [flex-falcon] [refs/heads/develop] - add js config options

Posted by ah...@apache.org.
add js config options


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

Branch: refs/heads/develop
Commit: 18d96504c4564589c669de6f5c7a0dc20f3729df
Parents: f5a9cc4
Author: Alex Harui <ah...@apache.org>
Authored: Thu May 18 11:11:16 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu May 18 11:11:16 2017 -0700

----------------------------------------------------------------------
 .../flex2/compiler/common/Configuration.java    | 297 +++++++++++++++++++
 1 file changed, 297 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/18d96504/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java b/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java
index bfb396a..d005472 100644
--- a/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java
+++ b/flex-compiler-oem/src/main/java/flex2/compiler/common/Configuration.java
@@ -2018,7 +2018,304 @@ public class Configuration implements LinkerConfiguration, Cloneable
 		return compilerConfiguration.getAdvancedTelemetry();
 	}
 
+    //
+    // 'closure-lib' option
+    //
+    
+    private String closureLibDirName = null;
+
+    public String getClosureLibDirName()
+    {
+        return closureLibDirName;
+    }
+    
+    public void cfgClosureLib( ConfigurationValue cv, String filename )
+    {
+       	this.closureLibDirName = getOutputPath(cv, filename);
+    }
  	
+    //
+    // 'sdk-js-lib' option
+    //
+    
+    private List<String> sdkJsLibraries = new LinkedList<String>();
+    
+    public List<String> getSDKJSLib()
+    {
+        return sdkJsLibraries;
+    }
+    
+    public void cfgSDKJSLib( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+            VirtualFile f = ConfigurationPathResolver.getVirtualFile( urls[i], configResolver, cfgval );
+            if (f != null)
+            	sdkJsLibraries.add( urls[i] );
+        }
+    }
+
+    //
+    // 'external-js-lib' option
+    //
+    
+    private List<String> externalJsLibraries = new LinkedList<String>();
+    
+    public List<String> getExternalJSLib()
+    {
+        return externalJsLibraries;
+    }
+    
+    public void cfgExternalJSLib( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+            VirtualFile f = ConfigurationPathResolver.getVirtualFile( urls[i], configResolver, cfgval );
+            if (f != null)
+            	externalJsLibraries.add( urls[i] );
+        }
+    }
+
+	//
+	// 'remove-circulars' option
+	//
+	
+	private boolean removeCirculars = false;
+	
+	public boolean getRemoveCirculars()
+	{
+		return removeCirculars;
+	}
+	
+	public void setRemoveCirculars(boolean value)
+	{
+		removeCirculars = value;
+	}
+	
+	public void cfgRemoveCirculars(ConfigurationValue cv, boolean value)
+	{
+		setRemoveCirculars(value);
+	}
+	
+	//
+	// 'skip-transpile' option
+	//
+	
+	private boolean skipTranspile = false;
+	
+	public boolean getSkipTranspile()
+	{
+		return skipTranspile;
+	}
+	
+	public void setSkipTranspile(boolean value)
+	{
+		skipTranspile = value;
+	}
+	
+	public void cfgSkipTranspile(ConfigurationValue cv, boolean value)
+	{
+		setSkipTranspile(value);
+	}
+	
+    //
+    // 'js-compiler-option' option
+    //
+    
+    private List<String> jsCompilerOption = new LinkedList<String>();
+    
+    public List<String> getJsCompilerOption()
+    {
+        return jsCompilerOption;
+    }
+    
+    public void cfgJsCompilerOption( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+        	jsCompilerOption.add( urls[i] );
+        }
+    }
+
+    //
+    // 'js-output-optimization' option
+    //
+    
+    private List<String> jsOutputOptimization = new LinkedList<String>();
+    
+    public List<String> getJsOutputOptimization()
+    {
+        return jsOutputOptimization;
+    }
+    
+    public void cfgJsOutputOptimization( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+        	jsOutputOptimization.add( urls[i] );
+        }
+    }
+    
+    //
+    // 'html-template' option
+    //
+    
+    private String htmlTemplateFileName = null;
+
+    public String getHtmlTemplateFileName()
+    {
+        return htmlTemplateFileName;
+    }
+    
+    public void cfgHtmlTemplate( ConfigurationValue cv, String filename )
+    {
+       	this.htmlTemplateFileName = getOutputPath(cv, filename);
+    }
+ 	
+
+    //
+    // 'html-output-filename' option
+    //
+    
+    private String htmlOutputFileName = null;
+
+    public String getHtmlOutputFilename()
+    {
+        return htmlOutputFileName;
+    }
+    
+    public void cfgHtmlOutputFilename( ConfigurationValue cv, String filename )
+    {
+       	this.htmlOutputFileName = getOutputPath(cv, filename);
+    }
+ 	
+    //
+    // 'compiler-targets' option
+    //
+    
+    private List<String> compilerTargets = new LinkedList<String>();
+    
+    public List<String> getCompilerTargets()
+    {
+        return compilerTargets;
+    }
+    
+    public void cfgCompilerTargets( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+        	compilerTargets.add( urls[i] );
+        }
+    }
+    
+	//
+	// 'source-map' option
+	//
+	
+	private boolean sourceMap = false;
+	
+	public boolean getSourceMap()
+	{
+		return sourceMap;
+	}
+	
+	public void setSourceMap(boolean value)
+	{
+		sourceMap = value;
+	}
+	
+	public void cfgSourceMap(ConfigurationValue cv, boolean value)
+	{
+		setSkipTranspile(value);
+	}
+	
+    //
+    // 'compiler.js-external-library-path' option
+    //
+    
+    private List<String> jsExternalLibrariesPath = new LinkedList<String>();
+    
+    public List<String> getJsExternalLibraryPath()
+    {
+        return jsExternalLibrariesPath;
+    }
+    
+    public void cfgJsExternalLibraryPath( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+            VirtualFile f = ConfigurationPathResolver.getVirtualFile( urls[i], configResolver, cfgval );
+            if (f != null)
+            	jsExternalLibrariesPath.add( urls[i] );
+        }
+    }
+
+
+    //
+    // 'compiler.swf-external-library-path' option
+    //
+    
+    private List<String> swfExternalLibrariesPath = new LinkedList<String>();
+    
+    public List<String> getSwfExternalLibraryPath()
+    {
+        return swfExternalLibrariesPath;
+    }
+    
+    public void cfgSwfExternalLibraryPath( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+            VirtualFile f = ConfigurationPathResolver.getVirtualFile( urls[i], configResolver, cfgval );
+            if (f != null)
+            	swfExternalLibrariesPath.add( urls[i] );
+        }
+    }
+
+    //
+    // 'compiler.js-library-path' option
+    //
+    
+    private List<String> jsLibrariesPath = new LinkedList<String>();
+    
+    public List<String> getJsLibraryPath()
+    {
+        return jsLibrariesPath;
+    }
+    
+    public void cfgJsLibraryPath( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+            VirtualFile f = ConfigurationPathResolver.getVirtualFile( urls[i], configResolver, cfgval );
+            if (f != null)
+            	jsLibrariesPath.add( urls[i] );
+        }
+    }
+
+
+    //
+    // 'compiler.swf-library-path' option
+    //
+    
+    private List<String> swfLibrariesPath = new LinkedList<String>();
+    
+    public List<String> getSwfLibraryPath()
+    {
+        return swfLibrariesPath;
+    }
+    
+    public void cfgSwfLibraryPath( ConfigurationValue cfgval, String[] urls ) throws ConfigurationException
+    {
+        for (int i = 0; i < urls.length; ++i)
+        {
+            VirtualFile f = ConfigurationPathResolver.getVirtualFile( urls[i], configResolver, cfgval );
+            if (f != null)
+            	swfLibrariesPath.add( urls[i] );
+        }
+    }
+
+
  	@Override
  	public Configuration clone()
  	    throws CloneNotSupportedException