flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/2] git commit: [flex-asjs] [refs/heads/develop] - fix status code handling
Date Tue, 03 Dec 2013 23:06:16 GMT
fix status code handling


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

Branch: refs/heads/develop
Commit: 50e8a637f8dfcb6a615b54848f358bedc60ba9f4
Parents: 25591cb
Author: Alex Harui <aharui@apache.org>
Authored: Tue Dec 3 15:05:32 2013 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Dec 3 15:05:32 2013 -0800

----------------------------------------------------------------------
 examples/build_example.xml | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50e8a637/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
index 82f8925..118d801 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -120,7 +120,7 @@
         <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
         <echo message="GOOG_HOME: ${GOOG_HOME}"/>
 
-        <java jar="${FALCONJX_HOME}/lib/mxmlc.jar" failonerror="true"
+        <java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
             fork="true">
             <jvmarg line="${mxmlc.jvm.args}"/>
             <jvmarg line="-Dflexlib=${FLEXJS_HOME}/frameworks}"/>
@@ -139,7 +139,16 @@
             <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src/createjs_externals.js"
/>
             <arg value="${basedir}/src/${example}.mxml" />      
         </java>
-        
+        <fail>
+			<condition>
+				<not>
+					<or>
+						<equals arg1="${errorCode}" arg2="0" />
+						<equals arg1="${errorCode}" arg2="2" />
+					</or>
+				</not>
+			</condition>
+		</fail>
     </target>
 
     <target name="compileasjs" description="Cross-compiles ${example}">
@@ -148,7 +157,7 @@
         <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
         <echo message="GOOG_HOME: ${GOOG_HOME}"/>
 
-        <java jar="${FALCONJX_HOME}/lib/mxmlc.jar"
+        <java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
             fork="true">
             <jvmarg line="${mxmlc.jvm.args}"/>
             <jvmarg line="-Dflexlib=${FLEXJS_HOME}/frameworks}"/>
@@ -167,7 +176,16 @@
             <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src/createjs_externals.js"
/>
             <arg value="${basedir}/src/${example}.as" />      
         </java>
-        
+        <fail>
+			<condition>
+				<not>
+					<or>
+						<equals arg1="${errorCode}" arg2="0" />
+						<equals arg1="${errorCode}" arg2="2" />
+					</or>
+				</not>
+			</condition>
+		</fail>        
     </target>
 
     <macrodef name="html-wrapper">


Mime
View raw message