Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 261FD115CF for ; Fri, 1 Aug 2014 11:00:32 +0000 (UTC) Received: (qmail 17445 invoked by uid 500); 1 Aug 2014 11:00:23 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 17408 invoked by uid 500); 1 Aug 2014 11:00:23 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 17019 invoked by uid 99); 1 Aug 2014 11:00:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2014 11:00:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id F0D389BCE42; Fri, 1 Aug 2014 11:00:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: erikdebruin@apache.org To: commits@flex.apache.org Date: Fri, 01 Aug 2014 11:00:38 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [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 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 Authored: Wed Jul 2 16:04:41 2014 +0200 Committer: Erik de Bruin 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)