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

[17/33] git commit: [flex-falcon] [refs/heads/develop] - Add output type VF2JS support.

Add output type VF2JS support.

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


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

Branch: refs/heads/develop
Commit: cdddadcf0d6b474d8db0b8de2342b4a780250a56
Parents: 1964615
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Wed Jul 2 16:04:41 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Aug 1 12:59:15 2014 +0200

----------------------------------------------------------------------
 .../src/org/apache/flex/compiler/clients/COMPJSC.java  | 13 ++++++++++---
 .../src/org/apache/flex/compiler/clients/MXMLJSC.java  | 13 +++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cdddadcf/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java b/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java
index dc45c6b..97001f7 100644
--- a/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java
+++ b/compiler.jx/src/org/apache/flex/compiler/clients/COMPJSC.java
@@ -46,11 +46,13 @@ import org.apache.flex.compiler.internal.projects.CompilerProject;
 import org.apache.flex.compiler.internal.targets.JSTarget;
 import org.apache.flex.compiler.problems.ICompilerProblem;
 import org.apache.flex.compiler.problems.InternalCompilerProblem;
-import org.apache.flex.compiler.targets.ITargetSettings;
+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.utils.FileUtils;
-import org.apache.flex.compiler.problems.UnableToBuildSWFProblem;
+
+import sun.reflect.generics.reflectiveObjects.NotImplementedException;
 
 
 /**
@@ -101,13 +103,18 @@ public class COMPJSC extends MXMLJSC
                 case AMD:
                     backend = new AMDBackend();
                     break;
+                
                 case FLEXJS:
                     backend = new MXMLFlexJSSWCBackend();
                     break;
+                
                 case GOOG:
                     backend = new GoogBackend();
                     break;
-                }
+
+                case VF2JS:
+                    throw new NotImplementedException();
+                 }
 
                 break;
             }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/cdddadcf/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
index 27c7ea9..947b95a 100644
--- a/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
+++ b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
@@ -353,6 +353,13 @@ public class MXMLJSC
 
                     break;
                 }
+
+                case VF2JS: {
+                    jsPublisher = new MXMLFlexJSPublisher(config, project);
+
+                    break;
+                }
+                
                 case AMD:
                 default: {
                     jsPublisher = new JSPublisher(config);
@@ -424,6 +431,12 @@ public class MXMLJSC
 
                     break;
                 }
+
+                case VF2JS: {
+                    //
+
+                    break;
+                }
                 }
 
                 if (jsPublisher != null)