Repository: flex-asjs
Updated Branches:
  refs/heads/release0.8.0 5755a6e4b -> 563c7450b


make it easier to run the examples to see what is broken.  I've only tested up 
through ListExample so the others might need help


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

Branch: refs/heads/release0.8.0
Commit: 1a9578d3075e07fc93e59edad75a321c48c3e4ec
Parents: 21a19ef
Author: Alex Harui <aha...@apache.org>
Authored: Wed May 17 21:37:58 2017 -0700
Committer: Alex Harui <aha...@apache.org>
Committed: Wed May 17 21:48:40 2017 -0700

----------------------------------------------------------------------
 examples/build.xml                              |  40 ++-
 examples/build_example.xml                      | 121 ++++++++-
 examples/express/DataBindingExample/build.xml   |  10 +
 examples/flexjs/ASDoc/build.xml                 |  11 +
 examples/flexjs/ChartExample/build.xml          |  13 +-
 examples/flexjs/CordovaCameraExample/build.xml  |  29 +--
 examples/flexjs/CreateJSExample/build.xml       |  13 +-
 examples/flexjs/DataBindingExample/build.xml    |  13 +-
 .../DataBindingExampleWithFlexLayout/build.xml  |  14 +-
 .../flexjs/DataBindingExample_Flat/build.xml    |  14 +-
 examples/flexjs/DataBindingExample_as/build.xml |  14 +-
 examples/flexjs/DataGridExample/build.xml       |  11 +
 examples/flexjs/DateControlsExample/build.xml   |  13 +-
 examples/flexjs/DesktopMap/build.xml            |  16 +-
 examples/flexjs/FlexJSStore/build.xml           |  14 +-
 examples/flexjs/FlexJSStore_jquery/build.xml    |  14 +-
 examples/flexjs/FlexTeamPage_MDL/build.xml      |  11 +-
 .../flexjs/FlexWebsiteStatsViewer/build.xml     |  14 +-
 examples/flexjs/HelloWorld/build.xml            |  13 +-
 examples/flexjs/ListExample/build.xml           |  13 +-
 examples/flexjs/MDLBlogExample/build.xml        |  25 +-
 .../src/main/config/compile-app-config.xml      |  27 ++
 examples/flexjs/MDLExample/build.xml            |  11 +-
 .../src/main/config/compile-app-config.xml      |   1 +
 examples/flexjs/MapSearch/build.xml             |  19 +-
 examples/flexjs/MobileMap/MobileMap-app.xml     | 252 +++++++++++++++++++
 examples/flexjs/MobileMap/build.xml             |  10 +-
 examples/flexjs/MobileStocks/build.xml          |  19 +-
 examples/flexjs/MobileTrader/build.xml          |  10 +-
 examples/flexjs/StorageExample/build.xml        |  19 +-
 examples/flexjs/StyleExample/build.xml          |  14 +-
 examples/flexjs/TableExample/build.xml          |  11 +
 examples/flexjs/TeamPage/build.xml              |  11 +
 examples/flexjs/TodoListSampleApp/build.xml     |  12 +
 examples/flexjs/TreeExample/build.xml           |  11 +
 examples/native/ButtonExample/build.xml         |  11 +-
 examples/native/USStatesMap/build.xml           |  11 +-
 37 files changed, 785 insertions(+), 100 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/build.xml
----------------------------------------------------------------------
diff --git a/examples/build.xml b/examples/build.xml
index da2bd7d..ad19419 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -74,6 +74,7 @@
     </target>
     
     <target name="compile" description="Compile Examples" >
+        <ant dir="${basedir}/express/DataBindingExample"/>
         <ant dir="${basedir}/flexjs/ASDoc"/>
         <ant dir="${basedir}/flexjs/CordovaCameraExample"/>
         <ant dir="${basedir}/flexjs/CreateJSExample"/>
@@ -105,7 +106,7 @@
         <ant dir="${basedir}/native/ButtonExample"/>
         <ant dir="${basedir}/native/USStatesMap"/>
     </target>
-          
+    
     <!--
                Cleanup
        -->
@@ -117,6 +118,7 @@
     </target>
     
     <target name="clean" description="Cleans all SWCs and their resource 
bundles">
+        <ant dir="${basedir}/express/DataBindingExample" target="clean"/>
         <ant dir="${basedir}/flexjs/ASDoc" target="clean"/>
         <ant dir="${basedir}/flexjs/CordovaCameraExample" target="clean"/>
         <ant dir="${basedir}/flexjs/CreateJSExample" target="clean"/>
@@ -148,5 +150,39 @@
         <ant dir="${basedir}/native/ButtonExample" target="clean"/>
         <ant dir="${basedir}/native/USStatesMap" target="clean"/>
     </target>
-    
+
+    <target name="examine" description="Cleans all SWCs and their resource 
bundles">
+        <ant dir="${basedir}/express/DataBindingExample" target="clean"/>
+        <ant dir="${basedir}/flexjs/ASDoc" target="examine"/>
+        <ant dir="${basedir}/flexjs/CordovaCameraExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/CreateJSExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/DataBindingExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/DataBindingExample_as" target="examine"/>
+        <ant dir="${basedir}/flexjs/DataBindingExample_Flat" target="examine"/>
+        <ant dir="${basedir}/flexjs/DataBindingExampleWithFlexLayout" 
target="examine"/>
+        <ant dir="${basedir}/flexjs/DataGridExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/DateControlsExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/DesktopMap" target="examine"/>
+        <ant dir="${basedir}/flexjs/FlexTeamPage_MDL" target="examine"/>
+        <ant dir="${basedir}/flexjs/FlexWebsiteStatsViewer" target="examine"/>
+        <ant dir="${basedir}/flexjs/FlexJSStore" target="examine"/>
+        <ant dir="${basedir}/flexjs/FlexJSStore_jquery" target="examine"/>
+        <ant dir="${basedir}/flexjs/HelloWorld" target="examine"/>
+        <ant dir="${basedir}/flexjs/ListExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/MapSearch" target="examine"/>
+        <ant dir="${basedir}/flexjs/MDLExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/MobileTrader" target="examine"/>
+        <ant dir="${basedir}/flexjs/MobileStocks" target="examine"/>
+        <ant dir="${basedir}/flexjs/MobileMap" target="examine"/>
+        <ant dir="${basedir}/flexjs/ChartExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/StorageExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/StyleExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/TableExample" target="examine"/>
+        <ant dir="${basedir}/flexjs/TodoListSampleApp" target="examine"/>
+        <ant dir="${basedir}/flexjs/TeamPage" target="examine"/>
+        <ant dir="${basedir}/flexjs/TreeExample" target="examine"/>
+        <ant dir="${basedir}/native/ButtonExample" target="examine"/>
+        <ant dir="${basedir}/native/USStatesMap" target="examine"/>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
index 8dfd9a9..178c262 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -92,6 +92,46 @@
         </and>
     </condition>
 
+    <target name="get.browser" >
+        <condition property="browser" value="${env.ProgramFiles}/Mozilla 
Firefox/firefox.exe">
+            <and>
+                <os family="windows"/>
+                <available file="${env.ProgramFiles}/Mozilla 
Firefox/firefox.exe"
+                type="file" />
+            </and>
+        </condition>
+        <condition property="browser" value="${env.ProgramFiles(x86)}/Mozilla 
Firefox/firefox.exe">
+            <and>
+                <os family="windows"/>
+                <available file="${env.ProgramFiles(x86)}/Mozilla 
Firefox/firefox.exe"
+                type="file" />
+            </and>
+        </condition>
+        <condition property="browser" value="C:/Program Files/Internet 
Explorer/iexplore.exe">
+            <and>
+                <os family="windows"/>
+                <available file="C:/Program Files/Internet 
Explorer/iexplore.exe"
+                    type="file" />
+            </and>
+        </condition>
+        <condition property="browser" 
value="/Applications/Firefox.app/Contents/MacOS/Firefox">
+            <and>
+                <os family="mac"/>
+                <available 
file="/Applications/Firefox.app/Contents/MacOS/Firefox"
+                type="file" />
+            </and>
+        </condition>
+        <condition property="browser" 
value="/Applications/Safari.app/Contents/MacOS/Safari">
+            <and>
+                <os family="mac"/>
+                <available 
file="/Applications/Safari.app/Contents/MacOS/Safari"
+                type="file" />
+            </and>
+        </condition>
+        <fail message="No browser found.  See build_example.xml or set 
-Dbrowser=&lt;path to browser&gt;"
+            unless="browser"/>
+    </target>
+    
     <path id="lib.path">
       <fileset dir="${FALCONJX_HOME}/lib" includes="falcon-flexTasks.jar"/>
       <fileset dir="${FALCONJX_HOME}/lib" includes="jsc.jar"/>
@@ -121,17 +161,9 @@
             <jvmarg line="${mxmlc.jvm.args}"/>
             <arg line="${optional_arg}" />
         </mxmlc>
+
+        <antcall target="build_example.wrapper" />
         
-        <html-wrapper 
-            height="100%" 
-            width="100%"
-            bgcolor="#ffffff"
-            name="${example}"
-            versionmajor="11"
-            versionminor="1"
-            versionrevision="0" 
-            output="${basedir}/bin-debug"/> 
- 
         <antcall target="build_example.copy-resources" />
         <copy todir="${basedir}/bin-debug/fonts">
             <fileset dir="${FLEX_HOME}/frameworks/fonts">
@@ -139,6 +171,7 @@
             </fileset>
         </copy>
         <antcall target="build_example.compile-js-release" />
+        <antcall target="build_example.copy-app-xml" />
     </target>
     
     <target name="compile-js-release">
@@ -154,6 +187,29 @@
         </mxmlc>
     </target>
     
+    <target name="check-air">
+        <condition property="is.air" value="true">
+            <equals arg1="${config_arg}" arg2="air" />
+        </condition>
+    </target>
+    
+    <target name="wrapper" depends="check-air" unless="is.air">
+        <html-wrapper
+        height="100%"
+        width="100%"
+        bgcolor="#ffffff"
+        name="${example}"
+        versionmajor="11"
+        versionminor="1"
+        versionrevision="0"
+        output="${basedir}/bin-debug"/>
+    </target>
+    
+    <target name="copy-app-xml" depends="check-air" if="is.air">
+        <copy toDir="${basedir}/bin-debug" 
file="${basedir}/${example}-app.xml" />
+        <copy toDir="${basedir}/bin-release" 
file="${basedir}/${example}-app.xml" />
+    </target>
+    
     <macrodef name="html-wrapper">
         <attribute name="width"/>
         <attribute name="height"/>
@@ -255,4 +311,49 @@
             </fileset>
         </copy>
     </target>
+    
+    <target name="run.air">
+        <property name="profile" value="mobileDevice" />
+        <property name="screensize" value="640x960:640x960" />
+        <property name="dpi" value="240" />
+        <property name="platform" value="AND" />
+        <exec executable="${AIR_HOME}/bin/${adl}" 
dir="${basedir}/bin-${which}" failonerror="true">
+            <arg value="-runtime" />
+            <arg value="${AIR_HOME}/runtimes/air/${runtime}" />
+            <arg value="-profile" />
+            <arg value="${profile}" />
+            <arg value="-screensize" />
+            <arg value="${screensize}" />
+            <arg value="-XscreenDPI" />
+            <arg value="${dpi}" />
+            <arg value="-XversionPlatform" />
+            <arg value="${platform}" />
+            <arg value="${basedir}/bin-${which}/${example}-app.xml" />
+        </exec>
+    </target>
+
+    <target name="run.air.desktop">
+        <property name="profile" value="extendedDesktop" />
+        <property name="screensize" value="640x960:640x960" />
+        <property name="dpi" value="240" />
+        <property name="platform" value="AND" />
+        <exec executable="${AIR_HOME}/bin/${adl}" 
dir="${basedir}/bin-${which}" failonerror="true">
+            <arg value="-runtime" />
+            <arg value="${AIR_HOME}/runtimes/air/${runtime}" />
+            <arg value="-profile" />
+            <arg value="${profile}" />
+            <arg value="${basedir}/bin-${which}/${example}-app.xml" />
+        </exec>
+    </target>
+
+    <target name="compile.cordova" description="Executes the Cordova build 
script to run the app on a device." if="has.cordova">
+        <property name="mobile.platform" value="android" />
+        <ant antfile="${FLEXJS_HOME}/cordova-build.xml" 
target="run.${mobile.platform}" />
+    </target>
+
+    <target name="run.cordova" description="Executes the Cordova build script 
to run the app on a device." if="has.cordova">
+        <property name="mobile.platform" value="android" />
+        <ant antfile="${FLEXJS_HOME}/cordova-build.xml" 
target="run.${mobile.platform}" />
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/express/DataBindingExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/express/DataBindingExample/build.xml 
b/examples/express/DataBindingExample/build.xml
index 6f58f1a..7252710 100644
--- a/examples/express/DataBindingExample/build.xml
+++ b/examples/express/DataBindingExample/build.xml
@@ -40,6 +40,16 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Choose from dropdown, get quote, click on checkbox to 
see if TextArea appears and disappears, click on radio buttons to see if other 
labels change via data binding"/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
     
     
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/ASDoc/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ASDoc/build.xml b/examples/flexjs/ASDoc/build.xml
index 37c1da0..1976bfb 100644
--- a/examples/flexjs/ASDoc/build.xml
+++ b/examples/flexjs/ASDoc/build.xml
@@ -78,4 +78,15 @@
 
     </target>
     
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="View ASDoc."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/ChartExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ChartExample/build.xml 
b/examples/flexjs/ChartExample/build.xml
index 567320c..82f8295 100644
--- a/examples/flexjs/ChartExample/build.xml
+++ b/examples/flexjs/ChartExample/build.xml
@@ -40,6 +40,15 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Charts."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/CordovaCameraExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/CordovaCameraExample/build.xml 
b/examples/flexjs/CordovaCameraExample/build.xml
index 6d4d635..c40f3ff 100644
--- a/examples/flexjs/CordovaCameraExample/build.xml
+++ b/examples/flexjs/CordovaCameraExample/build.xml
@@ -29,6 +29,7 @@
     
     <property file="${FLEXJS_HOME}/env.properties"/>
     <property environment="env"/>
+    <property file="${FLEXJS_HOME}/local.properties"/>
     <property file="${FLEXJS_HOME}/build.properties"/>
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     
@@ -54,7 +55,7 @@
 
     <include file="${basedir}/../../build_example.xml" />
 
-    <target name="main" depends="clean,build_example.compile" 
description="Clean build of ${example}">
+    <target name="main" 
depends="clean,build_example.compile,build_example.compile.cordova" 
description="Clean build of ${example}">
     </target>
     
     <target name="clean">
@@ -65,18 +66,18 @@
     </target>
     
     <target name="run">
-        <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/bin-debug" 
failonerror="true">
-            <arg value="-runtime" />
-            <arg value="${AIR_HOME}/runtimes/air/${runtime}" />
-            <arg value="-screensize" />
-            <arg value="640x960:640x960" />
-            <arg value="-profile" />
-            <arg value="mobileDevice" />
-            <arg value="-XscreenDPI" />
-            <arg value="240" />
-            <arg value="-XversionPlatform" />
-            <arg value="AND" />
-            <arg value="${basedir}/bin-debug/${example}-app.xml" />
-        </exec>
+        <antcall target="build_example.run.air" >
+            <param name="profile" value="mobileDevice" />
+        </antcall>
     </target>
+    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Take a picture."/>
+        <antcall target="build_example.run.air" >
+            <param name="profile" value="mobileDevice" />
+        </antcall>
+        <antcall target="build_example.run.cordova" />
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/CreateJSExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/CreateJSExample/build.xml 
b/examples/flexjs/CreateJSExample/build.xml
index 3f8fead..96e0bc8 100644
--- a/examples/flexjs/CreateJSExample/build.xml
+++ b/examples/flexjs/CreateJSExample/build.xml
@@ -40,6 +40,15 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Blue circle should animate and fade in and out."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/DataBindingExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExample/build.xml 
b/examples/flexjs/DataBindingExample/build.xml
index 3433c3d..ffed925 100644
--- a/examples/flexjs/DataBindingExample/build.xml
+++ b/examples/flexjs/DataBindingExample/build.xml
@@ -41,6 +41,15 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Choose from dropdown, get quote, click on checkbox to 
see if TextArea appears and disappears, click on radio buttons to see if other 
labels change via data binding"/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/DataBindingExampleWithFlexLayout/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExampleWithFlexLayout/build.xml 
b/examples/flexjs/DataBindingExampleWithFlexLayout/build.xml
index 8862bb6..da3f858 100644
--- a/examples/flexjs/DataBindingExampleWithFlexLayout/build.xml
+++ b/examples/flexjs/DataBindingExampleWithFlexLayout/build.xml
@@ -41,6 +41,16 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Choose from dropdown, get quote, click on checkbox to 
see if TextArea appears and disappears, click on radio buttons to see if other 
labels change via data binding"/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/DataBindingExample_Flat/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExample_Flat/build.xml 
b/examples/flexjs/DataBindingExample_Flat/build.xml
index 7d82144..b9bcecf 100644
--- a/examples/flexjs/DataBindingExample_Flat/build.xml
+++ b/examples/flexjs/DataBindingExample_Flat/build.xml
@@ -41,6 +41,16 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Choose from dropdown, get quote, click on checkbox to 
see if TextArea appears and disappears, click on radio buttons to see if other 
labels change via data binding"/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/DataBindingExample_as/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExample_as/build.xml 
b/examples/flexjs/DataBindingExample_as/build.xml
index 4c63dab..f576653 100644
--- a/examples/flexjs/DataBindingExample_as/build.xml
+++ b/examples/flexjs/DataBindingExample_as/build.xml
@@ -41,6 +41,16 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Choose from dropdown, get quote, click on checkbox to 
see if TextArea appears and disappears, click on radio buttons to see if other 
labels change via data binding"/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/DataGridExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataGridExample/build.xml 
b/examples/flexjs/DataGridExample/build.xml
index b9f366a..a268315 100644
--- a/examples/flexjs/DataGridExample/build.xml
+++ b/examples/flexjs/DataGridExample/build.xml
@@ -52,4 +52,15 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
     
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Click on the cells in the datagrid."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/DateControlsExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DateControlsExample/build.xml 
b/examples/flexjs/DateControlsExample/build.xml
index f92ce92..b014a02 100644
--- a/examples/flexjs/DateControlsExample/build.xml
+++ b/examples/flexjs/DateControlsExample/build.xml
@@ -39,5 +39,16 @@
         <delete dir="${basedir}/bin-release" failonerror="false" />
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
-    
+
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Examine the various date controls."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/DesktopMap/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DesktopMap/build.xml 
b/examples/flexjs/DesktopMap/build.xml
index 9530e14..f34d591 100644
--- a/examples/flexjs/DesktopMap/build.xml
+++ b/examples/flexjs/DesktopMap/build.xml
@@ -73,12 +73,14 @@
     </target>
     
     <target name="run">
-        <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/bin-debug" 
failonerror="true">
-            <arg value="-runtime" />
-            <arg value="${AIR_HOME}/runtimes/air/${runtime}" />
-            <arg value="-profile" />
-            <arg value="extendedDesktop" />
-            <arg value="${basedir}/bin-debug/${example}-app.xml" />
-        </exec>
+        <antcall target="build_example.run.air" />
     </target>
+    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="View map."/>
+        <antcall target="build_example.run.air.desktop" />
+        <antcall target="build_example.run.cordova" />
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/FlexJSStore/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore/build.xml 
b/examples/flexjs/FlexJSStore/build.xml
index 5e841ec..20ca7b8 100644
--- a/examples/flexjs/FlexJSStore/build.xml
+++ b/examples/flexjs/FlexJSStore/build.xml
@@ -58,6 +58,16 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Click on Products tab.  Hover over person to see 
buttons with tooltips.  DragDrop a person to compare box.  Click on Support 
tab."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/FlexJSStore_jquery/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexJSStore_jquery/build.xml 
b/examples/flexjs/FlexJSStore_jquery/build.xml
index 5e841ec..20ca7b8 100644
--- a/examples/flexjs/FlexJSStore_jquery/build.xml
+++ b/examples/flexjs/FlexJSStore_jquery/build.xml
@@ -58,6 +58,16 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Click on Products tab.  Hover over person to see 
buttons with tooltips.  DragDrop a person to compare box.  Click on Support 
tab."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/FlexTeamPage_MDL/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexTeamPage_MDL/build.xml 
b/examples/flexjs/FlexTeamPage_MDL/build.xml
index e9207c7..0c13e51 100644
--- a/examples/flexjs/FlexTeamPage_MDL/build.xml
+++ b/examples/flexjs/FlexTeamPage_MDL/build.xml
@@ -56,6 +56,13 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="See various team members."/>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/FlexWebsiteStatsViewer/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexWebsiteStatsViewer/build.xml 
b/examples/flexjs/FlexWebsiteStatsViewer/build.xml
index d76519b..4f30d60 100644
--- a/examples/flexjs/FlexWebsiteStatsViewer/build.xml
+++ b/examples/flexjs/FlexWebsiteStatsViewer/build.xml
@@ -40,6 +40,16 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="View various stats from our website."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/HelloWorld/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/HelloWorld/build.xml 
b/examples/flexjs/HelloWorld/build.xml
index 797a98a..be31c80 100644
--- a/examples/flexjs/HelloWorld/build.xml
+++ b/examples/flexjs/HelloWorld/build.xml
@@ -40,6 +40,15 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Make sure label appears."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/ListExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ListExample/build.xml 
b/examples/flexjs/ListExample/build.xml
index 0cb3a20..4c9d553 100644
--- a/examples/flexjs/ListExample/build.xml
+++ b/examples/flexjs/ListExample/build.xml
@@ -39,5 +39,16 @@
         <delete dir="${basedir}/bin-release" failonerror="false" />
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
-    
+
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Make sure list appears."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MDLBlogExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLBlogExample/build.xml 
b/examples/flexjs/MDLBlogExample/build.xml
index f43c825..9ff0976 100644
--- a/examples/flexjs/MDLBlogExample/build.xml
+++ b/examples/flexjs/MDLBlogExample/build.xml
@@ -32,16 +32,16 @@
 
     <include file="${basedir}/../../build_example.xml" />
     
-    <target name="main" 
depends="clean,build_example.compile,build_example.compilejs" 
description="Clean build of ${example}">
-        <mkdir dir="${basedir}/bin/js-debug/assets" />
-        <copy todir="${basedir}/bin/js-debug/assets" >
-            <fileset dir="${basedir}/src/main/resources/assets">
+    <target name="main" depends="clean,build_example.compile" 
description="Clean build of ${example}">
+        <mkdir dir="${basedir}/bin/js-debug/images" />
+        <copy todir="${basedir}/bin/js-debug/images" >
+            <fileset dir="${basedir}/src/main/resources/images">
                 <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">
+        <mkdir dir="${basedir}/bin/js-release/images" />
+        <copy todir="${basedir}/bin/js-release/images" >
+            <fileset dir="${basedir}/src/main/resources/images">
                 <include name="**" />
             </fileset>
         </copy>
@@ -58,6 +58,13 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="View example."/>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MDLBlogExample/src/main/config/compile-app-config.xml
----------------------------------------------------------------------
diff --git 
a/examples/flexjs/MDLBlogExample/src/main/config/compile-app-config.xml 
b/examples/flexjs/MDLBlogExample/src/main/config/compile-app-config.xml
new file mode 100644
index 0000000..e306790
--- /dev/null
+++ b/examples/flexjs/MDLBlogExample/src/main/config/compile-app-config.xml
@@ -0,0 +1,27 @@
+<!--
+
+  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.
+
+-->
+<flex-config>
+    <compiler>
+        <targets><target>JSFlex</target></targets>
+        <exclude-defaults-css-files>
+            <filename>HTML.swc:defaults.css</filename>
+        </exclude-defaults-css-files>
+    </compiler>
+    <html-template>../resources/mdl-js-index-template.html</html-template>
+</flex-config>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MDLExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/build.xml 
b/examples/flexjs/MDLExample/build.xml
index 7c94681..3f5d28b 100644
--- a/examples/flexjs/MDLExample/build.xml
+++ b/examples/flexjs/MDLExample/build.xml
@@ -56,6 +56,13 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="See Material Design Lite components."/>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MDLExample/src/main/config/compile-app-config.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/config/compile-app-config.xml 
b/examples/flexjs/MDLExample/src/main/config/compile-app-config.xml
index cba31b7..e306790 100644
--- a/examples/flexjs/MDLExample/src/main/config/compile-app-config.xml
+++ b/examples/flexjs/MDLExample/src/main/config/compile-app-config.xml
@@ -18,6 +18,7 @@
 -->
 <flex-config>
     <compiler>
+        <targets><target>JSFlex</target></targets>
         <exclude-defaults-css-files>
             <filename>HTML.swc:defaults.css</filename>
         </exclude-defaults-css-files>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MapSearch/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MapSearch/build.xml 
b/examples/flexjs/MapSearch/build.xml
index 5643fab..f8e985d 100644
--- a/examples/flexjs/MapSearch/build.xml
+++ b/examples/flexjs/MapSearch/build.xml
@@ -28,6 +28,7 @@
     <property name="playerglobal.version" value="11.4" />
     
     <property environment="env"/>
+    <property file="${FLEXJS_HOME}/local.properties"/>
     <property file="${FLEXJS_HOME}/build.properties"/>
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     
@@ -52,7 +53,7 @@
 
     <include file="${basedir}/../../build_example.xml" />
 
-    <target name="main" depends="clean,build_example.compile" 
description="Clean build of ${example}">
+    <target name="main" 
depends="clean,build_example.compile,build_example.compile.cordova" 
description="Clean build of ${example}">
     </target>
     
     <target name="clean">
@@ -63,12 +64,14 @@
     </target>
     
     <target name="run">
-        <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/bin-debug" 
failonerror="true">
-            <arg value="-runtime" />
-            <arg value="${AIR_HOME}/runtimes/air/${runtime}" />
-            <arg value="-profile" />
-            <arg value="extendedDesktop" />
-            <arg value="${basedir}/bin-debug/${example}-app.xml" />
-        </exec>
+        <antcall target="build_example.run.air" />
     </target>
+    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="View map."/>
+        <antcall target="build_example.run.air" />
+        <antcall target="build_example.run.cordova" />
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MobileMap/MobileMap-app.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileMap/MobileMap-app.xml 
b/examples/flexjs/MobileMap/MobileMap-app.xml
new file mode 100644
index 0000000..62a24a6
--- /dev/null
+++ b/examples/flexjs/MobileMap/MobileMap-app.xml
@@ -0,0 +1,252 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!--
+
+  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.
+
+-->
+<application xmlns="http://ns.adobe.com/air/application/16.0";>
+
+<!-- Adobe AIR Application Descriptor File Template.
+
+       Specifies parameters for identifying, installing, and launching AIR 
applications.
+
+       xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.8
+                       The last segment of the namespace specifies the version
+                       of the AIR runtime required for this application to run.
+
+       minimumPatchLevel - The minimum patch level of the AIR runtime required 
to run
+                       the application. Optional.
+-->
+
+       <!-- A universally unique application identifier. Must be unique across 
all AIR applications.
+       Using a reverse DNS-style name as the id is recommended. (Eg. 
com.example.ExampleApplication.) Required. -->
+       <id>org.apache.flexjs.mobilemap</id>
+
+       <!-- Used as the filename for the application. Required. -->
+       <filename>Apache FlexJS Mobile Map Example</filename>
+
+       <!-- The name that is displayed in the AIR application installer.
+       May have multiple values for each language. See samples or xsd schema 
file. Optional. -->
+       <name>Apache FlexJS Mobile Map Example</name>
+
+       <!-- A string value of the format <0-999>.<0-999>.<0-999> that 
represents application version which can be used to check for application 
upgrade.
+       Values can also be 1-part or 2-part. It is not necessary to have a 
3-part value.
+       An updated version of application must have a versionNumber value 
higher than the previous version. Required for namespace >= 2.5 . -->
+       <versionNumber>0.8.0</versionNumber>
+
+       <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents 
the version of the application, as it should be shown to users. Optional. -->
+       <!-- <versionLabel></versionLabel> -->
+
+       <!-- Description, displayed in the AIR application installer.
+       May have multiple values for each language. See samples or xsd schema 
file. Optional. -->
+       <!-- <description></description> -->
+
+       <!-- Copyright information. Optional -->
+       <copyright>Copyright 2017 The Apache Software Foundation.</copyright>
+
+       <!-- Publisher ID. Used if you're updating an application created prior 
to 1.5.3 -->
+       <!-- <publisherID></publisherID> -->
+
+       <!-- Settings for the application's initial window. Required. -->
+       <initialWindow>
+               <!-- The main SWF or HTML file of the application. Required. -->
+               <!-- Note: In Flash Builder, the SWF reference is set 
automatically. -->
+               <content>MobileMap.swf</content>
+
+               <!-- The title of the main window. Optional. -->
+               <!-- <title></title> -->
+
+               <!-- The type of system chrome to use (either "standard" or 
"none"). Optional. Default standard. -->
+               <!-- <systemChrome></systemChrome> -->
+
+               <!-- Whether the window is transparent. Only applicable when 
systemChrome is none. Optional. Default false. -->
+               <!-- <transparent></transparent> -->
+
+               <!-- Whether the window is initially visible. Optional. Default 
false. -->
+               <!-- <visible></visible> -->
+
+               <!-- Whether the user can minimize the window. Optional. 
Default true. -->
+               <!-- <minimizable></minimizable> -->
+
+               <!-- Whether the user can maximize the window. Optional. 
Default true. -->
+               <!-- <maximizable></maximizable> -->
+
+               <!-- Whether the user can resize the window. Optional. Default 
true. -->
+               <!-- <resizable></resizable> -->
+
+               <!-- The window's initial width in pixels. Optional. -->
+               <width>640</width>
+
+               <!-- The window's initial height in pixels. Optional. -->
+               <height>720</height>
+
+               <!-- The window's initial x position. Optional. -->
+               <!-- <x></x> -->
+
+               <!-- The window's initial y position. Optional. -->
+               <!-- <y></y> -->
+
+               <!-- The window's minimum size, specified as a width/height 
pair in pixels, such as "400 200". Optional. -->
+               <!-- <minSize></minSize> -->
+
+               <!-- The window's initial maximum size, specified as a 
width/height pair in pixels, such as "1600 1200". Optional. -->
+               <!-- <maxSize></maxSize> -->
+
+        <!-- The initial aspect ratio of the app when launched (either 
"portrait" or "landscape"). Optional. Mobile only. Default is the natural 
orientation of the device -->
+
+        <!-- <aspectRatio></aspectRatio> -->
+
+        <!-- Whether the app will begin auto-orienting on launch. Optional. 
Mobile only. Default false -->
+
+        <!-- <autoOrients></autoOrients> -->
+
+        <!-- Whether the app launches in full screen. Optional. Mobile only. 
Default false -->
+
+        <!-- <fullScreen></fullScreen> -->
+
+        <!-- The render mode for the app (either auto, cpu, gpu, or direct). 
Optional. Default auto -->
+
+        <!-- <renderMode></renderMode> -->
+
+               <!-- Whether or not to pan when a soft keyboard is raised or 
lowered (either "pan" or "none").  Optional.  Defaults "pan." -->
+               <!-- <softKeyboardBehavior></softKeyboardBehavior> -->
+       <autoOrients>false</autoOrients>
+        <fullScreen>false</fullScreen>
+        <visible>true</visible>
+    </initialWindow>
+
+       <!-- We recommend omitting the supportedProfiles element, -->
+       <!-- which in turn permits your application to be deployed to all -->
+       <!-- devices supported by AIR. If you wish to restrict deployment -->
+       <!-- (i.e., to only mobile devices) then add this element and list -->
+       <!-- only the profiles which your application does support. -->
+       <!-- <supportedProfiles>desktop extendedDesktop mobileDevice 
extendedMobileDevice</supportedProfiles> -->
+       <supportedProfiles>extendedDesktop desktop</supportedProfiles>
+
+       <!-- The subpath of the standard default installation location to use. 
Optional. -->
+       <installFolder>Apache Flex</installFolder>
+
+       <!-- The subpath of the Programs menu to use. (Ignored on operating 
systems without a Programs menu.) Optional. -->
+       <programMenuFolder>Apache Flex</programMenuFolder>
+
+       <!-- The icon the system uses for the application. For at least one 
resolution,
+       specify the path to a PNG file included in the AIR package. Optional. 
-->
+       <icon>
+               <image16x16>assets/icons/16.png</image16x16>
+               <image29x29>assets/icons/29.png</image29x29>
+               <image32x32>assets/icons/32.png</image32x32>
+               <image36x36>assets/icons/36.png</image36x36>
+               <image48x48>assets/icons/48.png</image48x48>
+               <image57x57>assets/icons/57.png</image57x57>
+               <image72x72>assets/icons/72.png</image72x72>
+               <image114x114>assets/icons/114.png</image114x114>
+               <image128x128>assets/icons/128.png</image128x128>
+       </icon>
+
+       <!-- Whether the application handles the update when a user 
double-clicks an update version
+       of the AIR file (true), or the default AIR application installer 
handles the update (false).
+       Optional. Default false. -->
+       <!-- <customUpdateUI></customUpdateUI> -->
+
+       <!-- Whether the application can be launched when the user clicks a 
link in a web browser.
+       Optional. Default false. -->
+       <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
+
+       <!-- Listing of file types for which the application can register. 
Optional. -->
+       <!-- <fileTypes> -->
+
+               <!-- Defines one file type. Optional. -->
+               <!-- <fileType> -->
+
+                       <!-- The name that the system displays for the 
registered file type. Required. -->
+                       <!-- <name></name> -->
+
+                       <!-- The extension to register. Required. -->
+                       <!-- <extension></extension> -->
+
+                       <!-- The description of the file type. Optional. -->
+                       <!-- <description></description> -->
+
+                       <!-- The MIME content type. -->
+                       <!-- <contentType></contentType> -->
+
+                       <!-- The icon to display for the file type. Optional. 
-->
+                       <!-- <icon>
+                               <image16x16></image16x16>
+                               <image32x32></image32x32>
+                               <image48x48></image48x48>
+                               <image128x128></image128x128>
+                       </icon> -->
+
+               <!-- </fileType> -->
+       <!-- </fileTypes> -->
+
+    <!-- iOS specific capabilities -->
+       <!-- <iPhone> -->
+               <!-- A list of plist key/value pairs to be added to the 
application Info.plist -->
+               <!-- <InfoAdditions>
+            <![CDATA[
+                <key>UIDeviceFamily</key>
+                <array>
+                    <string>1</string>
+                    <string>2</string>
+                </array>
+                <key>UIStatusBarStyle</key>
+                <string>UIStatusBarStyleBlackOpaque</string>
+                <key>UIRequiresPersistentWiFi</key>
+                <string>YES</string>
+            ]]>
+        </InfoAdditions> -->
+        <!-- A list of plist key/value pairs to be added to the application 
Entitlements.plist -->
+               <!-- <Entitlements>
+            <![CDATA[
+                <key>keychain-access-groups</key>
+                <array>
+                    <string></string>
+                    <string></string>
+                </array>
+            ]]>
+        </Entitlements> -->
+       <!-- Display Resolution for the app (either "standard" or "high"). 
Optional. Default "standard" -->
+       <!-- <requestedDisplayResolution></requestedDisplayResolution> -->
+       <!-- </iPhone> -->
+
+       <!-- Specify Android specific tags that get passed to 
AndroidManifest.xml file. -->
+    <!--<android> -->
+    <!--       <manifestAdditions>
+               <![CDATA[
+                       <manifest android:installLocation="auto">
+                               <uses-permission 
android:name="android.permission.INTERNET"/>
+                               <uses-permission 
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+                               <uses-permission 
android:name="android.permission.ACCESS_FINE_LOCATION"/>
+                               <uses-feature android:required="true" 
android:name="android.hardware.touchscreen.multitouch"/>
+                               <application android:enabled="true">
+                                       <activity 
android:excludeFromRecents="false">
+                                               <intent-filter>
+                                                       <action 
android:name="android.intent.action.MAIN"/>
+                                                       <category 
android:name="android.intent.category.LAUNCHER"/>
+                                               </intent-filter>
+                                       </activity>
+                               </application>
+            </manifest>
+               ]]>
+        </manifestAdditions> -->
+           <!-- Color depth for the app (either "32bit" or "16bit"). Optional. 
Default 16bit before namespace 3.0, 32bit after -->
+        <!-- <colorDepth></colorDepth> -->
+    <!-- </android> -->
+       <!-- End of the schema for adding the android specific tags in 
AndroidManifest.xml file -->
+
+</application>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MobileMap/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileMap/build.xml 
b/examples/flexjs/MobileMap/build.xml
index 2ce8d9d..a1e9d07 100644
--- a/examples/flexjs/MobileMap/build.xml
+++ b/examples/flexjs/MobileMap/build.xml
@@ -27,13 +27,14 @@
     <property name="playerglobal.version" value="11.4" />
     
     <property environment="env"/>
+    <property file="${FLEXJS_HOME}/local.properties"/>
     <property file="${FLEXJS_HOME}/build.properties"/>
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="config_arg" value="air" />
     
     <include file="${basedir}/../../build_example.xml" />
 
-    <target name="main" depends="clean,build_example.compile" 
description="Clean build of ${example}">
+    <target name="main" 
depends="clean,build_example.compile,build_example.compile.cordova" 
description="Clean build of ${example}">
     </target>
     
     <target name="cordova" description="Executes the Cordova build script to 
create Cordova app">
@@ -55,4 +56,11 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
     
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="View map."/>
+        <antcall target="build_example.run.air" />
+        <antcall target="build_example.run.cordova" />
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MobileStocks/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileStocks/build.xml 
b/examples/flexjs/MobileStocks/build.xml
index ea04922..39264c4 100644
--- a/examples/flexjs/MobileStocks/build.xml
+++ b/examples/flexjs/MobileStocks/build.xml
@@ -29,6 +29,7 @@
     
     <property file="${FLEXJS_HOME}/env.properties"/>
     <property environment="env"/>
+    <property file="${FLEXJS_HOME}/local.properties"/>
     <property file="${FLEXJS_HOME}/build.properties"/>
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="AIR_HOME" value="${env.AIR_HOME}"/>
@@ -52,7 +53,7 @@
 
     <include file="${basedir}/../../build_example.xml" />
 
-    <target name="main" depends="clean,build_example.compile" 
description="Clean build of ${example}">
+    <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" />
@@ -73,12 +74,14 @@
     </target>
     
     <target name="run">
-        <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/bin-debug" 
failonerror="true">
-            <arg value="-runtime" />
-            <arg value="${AIR_HOME}/runtimes/air/${runtime}" />
-            <arg value="-profile" />
-            <arg value="extendedDesktop" />
-            <arg value="${basedir}/bin-debug/${example}-app.xml" />
-        </exec>
+        <antcall target="build_example.run.air" />
     </target>
+    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Click on Products tab.  Hover over person to see 
buttons with tooltips.  DragDrop a person to compare box.  Click on Support 
tab."/>
+        <antcall target="build_example.run.air" />
+        <antcall target="build_example.run.cordova" />
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/MobileTrader/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MobileTrader/build.xml 
b/examples/flexjs/MobileTrader/build.xml
index c34f553..d1483b0 100644
--- a/examples/flexjs/MobileTrader/build.xml
+++ b/examples/flexjs/MobileTrader/build.xml
@@ -25,6 +25,7 @@
     
     <property environment="env"/>
     <property file="${FLEXJS_HOME}/build.properties"/>
+    <property file="${FLEXJS_HOME}/local.properties"/>
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     
     <include file="${basedir}/../../build_example.xml" />
@@ -47,7 +48,7 @@
     </condition>
     <property name="extlib_arg" 
value="-external-library-path=${FALCONJX_HOME}/../externs/js/out/bin/js.swc"/>
 
-    <target name="main" depends="clean,build_example.compile,copyassets" 
description="Clean build of ${example}">
+    <target name="main" 
depends="clean,build_example.compile,copyassets,build_example.compile.cordova" 
description="Clean build of ${example}">
     </target>
     
     <target name="copyassets">
@@ -72,4 +73,11 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
     
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="View example"/>
+        <antcall target="build_example.run.air" />
+        <antcall target="build_example.run.cordova" />
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/StorageExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StorageExample/build.xml 
b/examples/flexjs/StorageExample/build.xml
index 89fd353..9e908ab 100644
--- a/examples/flexjs/StorageExample/build.xml
+++ b/examples/flexjs/StorageExample/build.xml
@@ -29,6 +29,7 @@
     
     <property file="${FLEXJS_HOME}/env.properties"/>
     <property environment="env"/>
+    <property file="${FLEXJS_HOME}/local.properties"/>
     <property file="${FLEXJS_HOME}/build.properties"/>
     <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
     <property name="AIR_HOME" value="${env.AIR_HOME}"/>
@@ -52,7 +53,7 @@
 
     <include file="${basedir}/../../build_example.xml" />
 
-    <target name="main" depends="clean,build_example.compile" 
description="Clean build of ${example}">
+    <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" />
@@ -73,12 +74,14 @@
     </target>
     
     <target name="run">
-        <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/bin-debug" 
failonerror="true">
-            <arg value="-runtime" />
-            <arg value="${AIR_HOME}/runtimes/air/${runtime}" />
-            <arg value="-profile" />
-            <arg value="extendedDesktop" />
-            <arg value="${basedir}/bin-debug/${example}-app.xml" />
-        </exec>
+        <antcall target="build_example.run.air" />
     </target>
+    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="See if Storage works."/>
+        <antcall target="build_example.run.air" />
+        <antcall target="build_example.run.cordova" />
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/StyleExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/StyleExample/build.xml 
b/examples/flexjs/StyleExample/build.xml
index 09add5a..9ae0ee2 100644
--- a/examples/flexjs/StyleExample/build.xml
+++ b/examples/flexjs/StyleExample/build.xml
@@ -40,6 +40,16 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Make sure styles work."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/TableExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TableExample/build.xml 
b/examples/flexjs/TableExample/build.xml
index 6a3df12..46f1042 100644
--- a/examples/flexjs/TableExample/build.xml
+++ b/examples/flexjs/TableExample/build.xml
@@ -52,4 +52,15 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
     
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Verify basic table support."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/TeamPage/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TeamPage/build.xml 
b/examples/flexjs/TeamPage/build.xml
index add4117..a37a3cc 100644
--- a/examples/flexjs/TeamPage/build.xml
+++ b/examples/flexjs/TeamPage/build.xml
@@ -42,4 +42,15 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
     
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="View various team members"/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/TodoListSampleApp/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TodoListSampleApp/build.xml 
b/examples/flexjs/TodoListSampleApp/build.xml
index ea5d145..d847ebd 100644
--- a/examples/flexjs/TodoListSampleApp/build.xml
+++ b/examples/flexjs/TodoListSampleApp/build.xml
@@ -37,5 +37,17 @@
         <delete dir="${basedir}/bin-release" failonerror="false" />
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
+    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Simple ToDo List."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/flexjs/TreeExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/TreeExample/build.xml 
b/examples/flexjs/TreeExample/build.xml
index db2f622..1a0bbcc 100644
--- a/examples/flexjs/TreeExample/build.xml
+++ b/examples/flexjs/TreeExample/build.xml
@@ -40,4 +40,15 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
     
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Basic Tree."/>
+        <exec executable="${browser}" dir="${basedir}/bin-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin-${which}/${example}.html"/>
+        </exec>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/native/ButtonExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/native/ButtonExample/build.xml 
b/examples/native/ButtonExample/build.xml
index 5e0f408..bb28b71 100644
--- a/examples/native/ButtonExample/build.xml
+++ b/examples/native/ButtonExample/build.xml
@@ -43,6 +43,13 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Basic Buttons in JS"/>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1a9578d3/examples/native/USStatesMap/build.xml
----------------------------------------------------------------------
diff --git a/examples/native/USStatesMap/build.xml 
b/examples/native/USStatesMap/build.xml
index 5a0d580..6e98c61 100644
--- a/examples/native/USStatesMap/build.xml
+++ b/examples/native/USStatesMap/build.xml
@@ -43,6 +43,13 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
-    
+    <target name="examine" depends="build_example.get.browser">
+        <property name="which" value="debug" />
+        <echo message="Map of US in JS"/>
+        <exec executable="${browser}" dir="${basedir}/bin/js-${which}" 
failonerror="true">
+            <arg value="${basedir}/bin/js-${which}/index.html"/>
+        </exec>
+    </target>
+
+
 </project>

Reply via email to