flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/6] git commit: [flex-falcon] - Add subclass of JSTarget to prepare for CSS handling
Date Sat, 20 Apr 2013 00:18:12 GMT
Updated Branches:
  refs/heads/develop 6fd38b4ad -> a82dbc12b


Add subclass of JSTarget to prepare for CSS 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/2e0b4235
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/2e0b4235
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/2e0b4235

Branch: refs/heads/develop
Commit: 2e0b4235d4363ec3a9b48f8248e1caae08c363c9
Parents: 6fd38b4
Author: Alex Harui <aharui@apache.org>
Authored: Fri Apr 19 09:41:53 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Apr 19 09:46:02 2013 -0700

----------------------------------------------------------------------
 .../internal/driver/js/flexjs/FlexJSBackend.java   |   13 ++++
 .../compiler/internal/targets/FlexJSTarget.java    |   57 +++++++++++++++
 .../flex/compiler/internal/targets/JSTarget.java   |    4 +-
 3 files changed, 72 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2e0b4235/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/FlexJSBackend.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/FlexJSBackend.java
b/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/FlexJSBackend.java
index 9a7d92e..1e06bcc 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/FlexJSBackend.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/driver/js/flexjs/FlexJSBackend.java
@@ -24,6 +24,11 @@ import java.io.FilterWriter;
 import org.apache.flex.compiler.codegen.js.IJSEmitter;
 import org.apache.flex.compiler.internal.codegen.js.flexjs.JSFlexJSEmitter;
 import org.apache.flex.compiler.internal.driver.js.goog.GoogBackend;
+import org.apache.flex.compiler.internal.targets.FlexJSTarget;
+import org.apache.flex.compiler.internal.targets.JSTarget;
+import org.apache.flex.compiler.projects.IASProject;
+import org.apache.flex.compiler.targets.ITargetProgressMonitor;
+import org.apache.flex.compiler.targets.ITargetSettings;
 
 /**
  * @author Erik de Bruin
@@ -39,4 +44,12 @@ public class FlexJSBackend extends GoogBackend
         return emitter;
     }
     
+    @Override
+    public JSTarget createTarget(IASProject project, ITargetSettings settings,
+            ITargetProgressMonitor monitor)
+    {
+        return new FlexJSTarget(project, settings, monitor);
+    }
+
+
 }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2e0b4235/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSTarget.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSTarget.java b/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSTarget.java
new file mode 100644
index 0000000..adb0a44
--- /dev/null
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/targets/FlexJSTarget.java
@@ -0,0 +1,57 @@
+/*
+ *
+ *  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.targets;
+
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.flex.compiler.driver.js.IJSApplication;
+import org.apache.flex.compiler.exceptions.BuildCanceledException;
+import org.apache.flex.compiler.internal.codegen.js.JSSharedData;
+import org.apache.flex.compiler.internal.driver.js.JSApplication;
+import org.apache.flex.compiler.internal.projects.CompilerProject;
+import org.apache.flex.compiler.problems.ICompilerProblem;
+import org.apache.flex.compiler.projects.IASProject;
+import org.apache.flex.compiler.targets.IJSTarget;
+import org.apache.flex.compiler.targets.ITargetProgressMonitor;
+import org.apache.flex.compiler.targets.ITargetReport;
+import org.apache.flex.compiler.targets.ITargetSettings;
+import org.apache.flex.compiler.units.ICompilationUnit;
+
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+
+public class FlexJSTarget extends JSTarget implements IJSTarget
+{
+    /**
+     * Initialize a JS target with the owner project and root compilation units.
+     * 
+     * @param project the owner project
+     */
+    public FlexJSTarget(IASProject project, ITargetSettings targetSettings,
+            ITargetProgressMonitor progressMonitor)
+    {
+        super(project, targetSettings, progressMonitor);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2e0b4235/compiler.jx/src/org/apache/flex/compiler/internal/targets/JSTarget.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/targets/JSTarget.java b/compiler.jx/src/org/apache/flex/compiler/internal/targets/JSTarget.java
index 084d552..adba905 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/targets/JSTarget.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/targets/JSTarget.java
@@ -43,8 +43,8 @@ import com.google.common.collect.Iterables;
 
 public class JSTarget extends Target implements IJSTarget
 {
-    private ICompilationUnit mainCU;
-    private RootedCompilationUnits rootedCompilationUnits;
+    protected ICompilationUnit mainCU;
+    protected RootedCompilationUnits rootedCompilationUnits;
 
     /**
      * Initialize a JS target with the owner project and root compilation units.


Mime
View raw message