flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [19/25] git commit: [flex-asjs] [refs/heads/tlf] - copy assets for JS side before cordova build copies the output
Date Sat, 03 Jun 2017 20:33:31 GMT
copy assets for JS side before cordova build copies the output


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

Branch: refs/heads/tlf
Commit: f15f3b833b6cde5c1454fc54f9f7236ca6ea96bb
Parents: ac36224
Author: Alex Harui <aharui@apache.org>
Authored: Thu Jun 1 11:48:22 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Jun 2 00:04:48 2017 -0700

----------------------------------------------------------------------
 examples/build_example.xml             | 15 +++++++++++++++
 examples/flexjs/MobileStocks/build.xml | 12 +-----------
 2 files changed, 16 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f15f3b83/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
index ab2c62c..90809a8 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -334,6 +334,21 @@
         </copy>
     </target>
     
+    <target name="copy-js-resources" depends="check-resources" if="has-resources">
+        <mkdir dir="${basedir}/bin/js-debug/assets" />
+        <copy todir="${basedir}/bin/js-debug/assets" >
+            <fileset dir="${basedir}/src/main/resources/assets">
+                <include name="**" />
+            </fileset>
+        </copy>
+        <mkdir dir="${basedir}/bin/js-release/assets" />
+        <copy todir="${basedir}/bin/js-release/assets" >
+            <fileset dir="${basedir}/src/main/resources/assets">
+                <include name="**" />
+            </fileset>
+        </copy>
+    </target>
+    
     <target name="run.air">
         <property name="profile" value="mobileDevice" />
         <property name="screensize" value="640x960:640x960" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f15f3b83/examples/flexjs/MobileStocks/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/build.xml b/examples/flexjs/MobileStocks/build.xml
index 397b895..5959255 100644
--- a/examples/flexjs/MobileStocks/build.xml
+++ b/examples/flexjs/MobileStocks/build.xml
@@ -37,17 +37,7 @@
     
     <include file="${basedir}/../../build_example.xml" />
 
-    <target name="main" depends="clean,build_example.compile,build_example.compile.cordova"
description="Clean build of ${example}">
-        <copy todir="${basedir}/bin-debug" >
-            <fileset dir="${basedir}">
-                <include name="*-app.xml" />
-            </fileset>
-        </copy>
-        <copy todir="${basedir}/bin-release" >
-            <fileset dir="${basedir}">
-                <include name="*-app.xml" />
-            </fileset>
-        </copy>
+    <target name="main" depends="clean,build_example.compile,build_example.copy-js-resources,build_example.compile.cordova"
description="Clean build of ${example}">
     </target>
     
     <target name="clean">


Mime
View raw message