flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject flex-asjs git commit: Update “native” ButtonExample to build with maven
Date Wed, 15 Feb 2017 09:08:01 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 28ce9868e -> e4997620c


Update “native” ButtonExample to build with maven


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

Branch: refs/heads/develop
Commit: e4997620c632432129a51893bca7eaf0f89a699c
Parents: 28ce986
Author: Carlos Rovira <carlosrovira@apache.org>
Authored: Wed Feb 15 10:07:57 2017 +0100
Committer: Carlos Rovira <carlosrovira@apache.org>
Committed: Wed Feb 15 10:07:57 2017 +0100

----------------------------------------------------------------------
 examples/native/ButtonExample/pom.xml           | 54 +++++++++++++++++++-
 .../native/ButtonExample/src/ButtonExample.as   | 34 ------------
 .../src/main/flex/ButtonExample.as              | 34 ++++++++++++
 3 files changed, 86 insertions(+), 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e4997620/examples/native/ButtonExample/pom.xml
----------------------------------------------------------------------
diff --git a/examples/native/ButtonExample/pom.xml b/examples/native/ButtonExample/pom.xml
index e2acc18..ea0080e 100644
--- a/examples/native/ButtonExample/pom.xml
+++ b/examples/native/ButtonExample/pom.xml
@@ -35,20 +35,70 @@
   <name>Apache Flex - FlexJS: Examples: Native: ButtonExample</name>
 
   <build>
+    <sourceDirectory>src/main/flex</sourceDirectory>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
     <plugins>
       <plugin>
         <groupId>org.apache.flex.flexjs.compiler</groupId>
         <artifactId>flexjs-maven-plugin</artifactId>
-        <version>${flexjs.compiler.version}</version>
         <extensions>true</extensions>
         <configuration>
           <mainClass>ButtonExample.as</mainClass>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+      </plugin>
     </plugins>
   </build>
 
   <dependencies>
-  </dependencies>
+    
+    <!-- Needed for Flash compilation -->
+    <dependency>
+      <groupId>com.adobe.flash.framework</groupId>
+      <artifactId>playerglobal</artifactId>
+      <version>20.0</version>
+      <type>swc</type>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.adobe.air.framework</groupId>
+      <artifactId>airglobal</artifactId>
+      <version>${air.version}</version>
+      <type>swc</type>
+      <scope>provided</scope>
+    </dependency>
 
+    <dependency>
+      <groupId>org.apache.flex.flexjs.typedefs</groupId>
+      <artifactId>flexjs-typedefs-gcl</artifactId>
+      <version>${flexjs.typedefs.version}</version>
+      <type>swc</type>
+      <classifier>typedefs</classifier>
+    </dependency>
+    <!--
+      By declaring this dependency here, we force the flexjs-externs-js to be
+      added to the external library path of all modules. Without this it would
+      have gone to the library path.
+    -->
+    <dependency>
+      <groupId>org.apache.flex.flexjs.typedefs</groupId>
+      <artifactId>flexjs-typedefs-js</artifactId>
+      <version>${flexjs.typedefs.version}</version>
+      <type>swc</type>
+      <classifier>typedefs</classifier>
+      <scope>runtime</scope>
+    </dependency>
+  </dependencies>
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e4997620/examples/native/ButtonExample/src/ButtonExample.as
----------------------------------------------------------------------
diff --git a/examples/native/ButtonExample/src/ButtonExample.as b/examples/native/ButtonExample/src/ButtonExample.as
deleted file mode 100644
index a3772e9..0000000
--- a/examples/native/ButtonExample/src/ButtonExample.as
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- *
- *  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
-{
-public class ButtonExample
-{
-	public function start():void
-	{
-		var button:Element = document.createElement("button");
-        button.onclick = function ():void {
-            alert("Hello browser from FalconJX!");
-        };
-        button.textContent = "Say Hello";
-        document.body.appendChild(button);
-	}
-}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e4997620/examples/native/ButtonExample/src/main/flex/ButtonExample.as
----------------------------------------------------------------------
diff --git a/examples/native/ButtonExample/src/main/flex/ButtonExample.as b/examples/native/ButtonExample/src/main/flex/ButtonExample.as
new file mode 100644
index 0000000..a3772e9
--- /dev/null
+++ b/examples/native/ButtonExample/src/main/flex/ButtonExample.as
@@ -0,0 +1,34 @@
+/*
+ *
+ *  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
+{
+public class ButtonExample
+{
+	public function start():void
+	{
+		var button:Element = document.createElement("button");
+        button.onclick = function ():void {
+            alert("Hello browser from FalconJX!");
+        };
+        button.textContent = "Say Hello";
+        document.body.appendChild(button);
+	}
+}
+}
\ No newline at end of file


Mime
View raw message