This is an automated email from the ASF dual-hosted git repository.
joshtynjala 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 e7824c6 Added test target to Ant builds for JS libraries
e7824c6 is described below
commit e7824c6eb3273171cde614d8bdf40691940a0ecb
Author: Josh Tynjala <[email protected]>
AuthorDate: Wed May 22 11:34:32 2019 -0700
Added test target to Ant builds for JS libraries
Similar to SWF libraries, it checks if tests actually exist or not
---
frameworks/js/projects/AceJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/BasicJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/BindingJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/ChartsJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/CollectionsJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/CoreJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/CreateJSJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/DragDropJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/EffectsJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/ExpressJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/FlatJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/FontAwesomeJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/FormattersJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/GoogleMapsJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/GraphicsJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/HTML5JS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/HTMLJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/IconsJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/JQueryJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/JewelJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/LanguageJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/MXRoyaleJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/MaterialDesignLiteJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/MobileJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/NetworkJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/ReflectionJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/RoyaleSiteJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/RoyaleUnitJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/SparkRoyaleJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/StorageJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/TLFJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/TextJS/build.xml | 17 +++++++++++++++++
frameworks/js/projects/XMLJS/build.xml | 17 +++++++++++++++++
33 files changed, 561 insertions(+)
diff --git a/frameworks/js/projects/AceJS/build.xml
b/frameworks/js/projects/AceJS/build.xml
index b1444d2..083c2d5 100644
--- a/frameworks/js/projects/AceJS/build.xml
+++ b/frameworks/js/projects/AceJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/BasicJS/build.xml
b/frameworks/js/projects/BasicJS/build.xml
index e555ee6..90e09c3 100644
--- a/frameworks/js/projects/BasicJS/build.xml
+++ b/frameworks/js/projects/BasicJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/BindingJS/build.xml
b/frameworks/js/projects/BindingJS/build.xml
index a27186b..eac6059 100644
--- a/frameworks/js/projects/BindingJS/build.xml
+++ b/frameworks/js/projects/BindingJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/ChartsJS/build.xml
b/frameworks/js/projects/ChartsJS/build.xml
index 55bdcce..ee8d96f 100644
--- a/frameworks/js/projects/ChartsJS/build.xml
+++ b/frameworks/js/projects/ChartsJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/CollectionsJS/build.xml
b/frameworks/js/projects/CollectionsJS/build.xml
index e6569e8..86267fd 100644
--- a/frameworks/js/projects/CollectionsJS/build.xml
+++ b/frameworks/js/projects/CollectionsJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/CoreJS/build.xml
b/frameworks/js/projects/CoreJS/build.xml
index d04fd0b..c20ebc1 100644
--- a/frameworks/js/projects/CoreJS/build.xml
+++ b/frameworks/js/projects/CoreJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/CreateJSJS/build.xml
b/frameworks/js/projects/CreateJSJS/build.xml
index d262177..77de0c1 100644
--- a/frameworks/js/projects/CreateJSJS/build.xml
+++ b/frameworks/js/projects/CreateJSJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/DragDropJS/build.xml
b/frameworks/js/projects/DragDropJS/build.xml
index c786ee2..4256095 100644
--- a/frameworks/js/projects/DragDropJS/build.xml
+++ b/frameworks/js/projects/DragDropJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/EffectsJS/build.xml
b/frameworks/js/projects/EffectsJS/build.xml
index af55846..6786b39 100644
--- a/frameworks/js/projects/EffectsJS/build.xml
+++ b/frameworks/js/projects/EffectsJS/build.xml
@@ -37,6 +37,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -48,6 +60,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/ExpressJS/build.xml
b/frameworks/js/projects/ExpressJS/build.xml
index c971e9c..2fc3583 100644
--- a/frameworks/js/projects/ExpressJS/build.xml
+++ b/frameworks/js/projects/ExpressJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/FlatJS/build.xml
b/frameworks/js/projects/FlatJS/build.xml
index 859a607..a15fac5 100644
--- a/frameworks/js/projects/FlatJS/build.xml
+++ b/frameworks/js/projects/FlatJS/build.xml
@@ -37,6 +37,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -48,6 +60,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/FontAwesomeJS/build.xml
b/frameworks/js/projects/FontAwesomeJS/build.xml
index 6be0b50..7ec3919 100644
--- a/frameworks/js/projects/FontAwesomeJS/build.xml
+++ b/frameworks/js/projects/FontAwesomeJS/build.xml
@@ -37,6 +37,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -48,6 +60,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/FormattersJS/build.xml
b/frameworks/js/projects/FormattersJS/build.xml
index 6917432..4af5569 100644
--- a/frameworks/js/projects/FormattersJS/build.xml
+++ b/frameworks/js/projects/FormattersJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/GoogleMapsJS/build.xml
b/frameworks/js/projects/GoogleMapsJS/build.xml
index 6ba5f05..0da7dad 100644
--- a/frameworks/js/projects/GoogleMapsJS/build.xml
+++ b/frameworks/js/projects/GoogleMapsJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/GraphicsJS/build.xml
b/frameworks/js/projects/GraphicsJS/build.xml
index 9322990..1b5a615 100644
--- a/frameworks/js/projects/GraphicsJS/build.xml
+++ b/frameworks/js/projects/GraphicsJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/HTML5JS/build.xml
b/frameworks/js/projects/HTML5JS/build.xml
index 2d13b6f..216fc44 100644
--- a/frameworks/js/projects/HTML5JS/build.xml
+++ b/frameworks/js/projects/HTML5JS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/HTMLJS/build.xml
b/frameworks/js/projects/HTMLJS/build.xml
index 8403149..85f39b8 100644
--- a/frameworks/js/projects/HTMLJS/build.xml
+++ b/frameworks/js/projects/HTMLJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/IconsJS/build.xml
b/frameworks/js/projects/IconsJS/build.xml
index fa47e3d..9352858 100644
--- a/frameworks/js/projects/IconsJS/build.xml
+++ b/frameworks/js/projects/IconsJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/JQueryJS/build.xml
b/frameworks/js/projects/JQueryJS/build.xml
index 306717f..2baeb1e 100644
--- a/frameworks/js/projects/JQueryJS/build.xml
+++ b/frameworks/js/projects/JQueryJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/JewelJS/build.xml
b/frameworks/js/projects/JewelJS/build.xml
index 29435ee..432db36 100644
--- a/frameworks/js/projects/JewelJS/build.xml
+++ b/frameworks/js/projects/JewelJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/LanguageJS/build.xml
b/frameworks/js/projects/LanguageJS/build.xml
index d51aed9..9cdc393 100644
--- a/frameworks/js/projects/LanguageJS/build.xml
+++ b/frameworks/js/projects/LanguageJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/MXRoyaleJS/build.xml
b/frameworks/js/projects/MXRoyaleJS/build.xml
index fcfda9c..be713d1 100644
--- a/frameworks/js/projects/MXRoyaleJS/build.xml
+++ b/frameworks/js/projects/MXRoyaleJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/MaterialDesignLiteJS/build.xml
b/frameworks/js/projects/MaterialDesignLiteJS/build.xml
index e8a8252..6d44a5b 100644
--- a/frameworks/js/projects/MaterialDesignLiteJS/build.xml
+++ b/frameworks/js/projects/MaterialDesignLiteJS/build.xml
@@ -37,6 +37,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -48,6 +60,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/MobileJS/build.xml
b/frameworks/js/projects/MobileJS/build.xml
index b1cc93a..3e258ee 100644
--- a/frameworks/js/projects/MobileJS/build.xml
+++ b/frameworks/js/projects/MobileJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/NetworkJS/build.xml
b/frameworks/js/projects/NetworkJS/build.xml
index 3261460..f425fc8 100644
--- a/frameworks/js/projects/NetworkJS/build.xml
+++ b/frameworks/js/projects/NetworkJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/ReflectionJS/build.xml
b/frameworks/js/projects/ReflectionJS/build.xml
index 059eef0..d32dcec 100644
--- a/frameworks/js/projects/ReflectionJS/build.xml
+++ b/frameworks/js/projects/ReflectionJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/RoyaleSiteJS/build.xml
b/frameworks/js/projects/RoyaleSiteJS/build.xml
index 9b49b60..3d02b0d 100644
--- a/frameworks/js/projects/RoyaleSiteJS/build.xml
+++ b/frameworks/js/projects/RoyaleSiteJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/RoyaleUnitJS/build.xml
b/frameworks/js/projects/RoyaleUnitJS/build.xml
index cbbae4a..836f5a4 100644
--- a/frameworks/js/projects/RoyaleUnitJS/build.xml
+++ b/frameworks/js/projects/RoyaleUnitJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/SparkRoyaleJS/build.xml
b/frameworks/js/projects/SparkRoyaleJS/build.xml
index 25b1c09..568e2bf 100644
--- a/frameworks/js/projects/SparkRoyaleJS/build.xml
+++ b/frameworks/js/projects/SparkRoyaleJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/StorageJS/build.xml
b/frameworks/js/projects/StorageJS/build.xml
index aafdef3..a631716 100644
--- a/frameworks/js/projects/StorageJS/build.xml
+++ b/frameworks/js/projects/StorageJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/TLFJS/build.xml
b/frameworks/js/projects/TLFJS/build.xml
index 365a798..1462830 100644
--- a/frameworks/js/projects/TLFJS/build.xml
+++ b/frameworks/js/projects/TLFJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/TextJS/build.xml
b/frameworks/js/projects/TextJS/build.xml
index 4a80346..35a9e00 100644
--- a/frameworks/js/projects/TextJS/build.xml
+++ b/frameworks/js/projects/TextJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">
diff --git a/frameworks/js/projects/XMLJS/build.xml
b/frameworks/js/projects/XMLJS/build.xml
index 423821a..6285ffe 100644
--- a/frameworks/js/projects/XMLJS/build.xml
+++ b/frameworks/js/projects/XMLJS/build.xml
@@ -36,6 +36,18 @@
<target name="main" depends="clean,check-compiler,compile"
description="Full build of ${ant.project.name}.swc">
</target>
+ <target name="check-for-tests" >
+ <condition property="skip-tests" >
+ <not>
+ <available file="${basedir}/src/test/royale/build.xml" />
+ </not>
+ </condition>
+ </target>
+
+ <target name="test" depends="check-for-tests,check-compiler"
unless="skip-tests">
+ <ant dir="src/test/royale" />
+ </target>
+
<target name="clean">
<delete failonerror="false">
<fileset dir="${ROYALE_HOME}/frameworks/js/libs">
@@ -47,6 +59,11 @@
<include name="**/**"/>
</fileset>
</delete>
+ <antcall target="clean-tests" />
+ </target>
+
+ <target name="clean-tests" depends="check-for-tests" unless="skip-tests">
+ <ant dir="src/test/royale" target="clean"/>
</target>
<target name="compile" depends="check-compiler">