This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2a08fc7  Make it easier to debug examples in js faster
2a08fc7 is described below

commit 2a08fc79fce51306ddb7142a523b41c1158a8ae9
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Sat Aug 3 09:40:15 2019 +0300

    Make it easier to debug examples in js faster
---
 examples/build_example.xml | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/examples/build_example.xml b/examples/build_example.xml
index 279db85..e737ad8 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -172,7 +172,24 @@
         <antcall target="build_example.compile-js-release" />
         <antcall target="build_example.copy-app-xml" />
     </target>
-    
+
+    <target name="compile-js-debug">
+        <property name="js.release.target" value="JSRoyale" />
+        <mxmlc fork="true"
+            debug="true"
+            configname="${config_arg}"
+            swf-version="${swf.version}"
+            closure-lib="${GOOG_HOME}"
+            file="${basedir}/src/main/royale/${example}.${file_suffix}"
+            output="${basedir}/bin-release/${example}.swf">
+            <jvmarg line="${mxmlc.jvm.args}"/>
+            <arg line="${optional_arg}" />
+            <arg value="-js-dynamic-access-unknown-members=true"/>
+            <arg value="+playerglobal.version=${playerglobal.version}" />
+            <arg value="${playerglobal_arg}" />
+        </mxmlc>
+    </target>
+
     <target name="compile-js-release">
         <property name="js.release.target" value="JSRoyale" />
         <mxmlc fork="true"
@@ -190,7 +207,17 @@
         </mxmlc>
     </target>
 
+    <target name="compile-js-only-debug">
+           <available file="${basedir}/src/main/config/compile-app-config.xml"
+                   type="file"
+                   property="optional_arg" 
value="-load-config+=&quot;${basedir}/src/main/config/compile-app-config.xml&quot;"
 />
 
+           <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+           <property name="config_arg" value="royale" />
+           <property name="file_suffix" value="mxml" />
+           <property name="optional_arg" value="-define+=CONFIG::dummy,true" />
+           <antcall target="build_example.compile-js-debug" />
+    </target>
     <!-- support for skipping swf build -->
     <target name="compile-js-only">
         <available file="${basedir}/src/main/config/compile-app-config.xml"

Reply via email to