Prepare VF2JS value for command line arg.

Signed-off-by: Erik de Bruin <[email protected]>


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

Branch: refs/heads/develop
Commit: 8307d540b601bfd723bb909ea0ee85a0f7c48f49
Parents: b02ea13
Author: Erik de Bruin <[email protected]>
Authored: Mon Jun 30 14:42:57 2014 +0200
Committer: Erik de Bruin <[email protected]>
Committed: Fri Aug 1 12:59:15 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/8307d540/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 37b3f9b..27c7ea9 100644
--- a/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
+++ b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
@@ -70,8 +70,8 @@ import 
org.apache.flex.compiler.problems.UnableToBuildSWFProblem;
 import org.apache.flex.compiler.problems.UnexpectedExceptionProblem;
 import org.apache.flex.compiler.projects.ICompilerProject;
 import org.apache.flex.compiler.targets.ITarget;
-import org.apache.flex.compiler.targets.ITargetSettings;
 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.utils.FilenameNormalization;
@@ -91,7 +91,7 @@ public class MXMLJSC
      */
     public enum JSOutputType
     {
-        FLEXJS("flexjs"), GOOG("goog"), AMD("amd");
+        AMD("amd"), FLEXJS("flexjs"), GOOG("goog"), VF2JS("vf2js");
 
         private String text;
 
@@ -175,6 +175,9 @@ public class MXMLJSC
         case GOOG:
             backend = new GoogBackend();
             break;
+        case VF2JS:
+            backend = new MXMLFlexJSBackend();
+            break;
         }
 
         final MXMLJSC mxmlc = new MXMLJSC(backend);

Reply via email to