Updated Branches:
  refs/heads/develop 14a8190dd -> 705e95e72

add imagediff target that compiles and runs the imagediff tool


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

Branch: refs/heads/develop
Commit: 705e95e7271e37fb95c5c5936d295cc3428cc1d6
Parents: 14a8190
Author: Alex Harui <[email protected]>
Authored: Sat Jan 4 23:16:22 2014 -0800
Committer: Alex Harui <[email protected]>
Committed: Sat Jan 4 23:17:26 2014 -0800

----------------------------------------------------------------------
 mustella/build.xml | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/705e95e7/mustella/build.xml
----------------------------------------------------------------------
diff --git a/mustella/build.xml b/mustella/build.xml
index cd05417..6183026 100644
--- a/mustella/build.xml
+++ b/mustella/build.xml
@@ -2703,5 +2703,42 @@ db_time='${DB_TIME}'</echo>
         <p4change description="test2" />
         <echo>${p4.change}</echo>
     </target>
+
+    <target name="load-task">
+        <property name="FLEX_HOME" value="${sdk.dir}" />
+        <!-- load the <mxmlc> task; we can't do this at the <project> level -->
+        <!-- because targets that run before flexTasks.jar gets built would 
fail -->
+        <taskdef resource="flexTasks.tasks" 
classpath="${basedir}/../lib/flexTasks.jar"/>
+    </target>
+
+    <target name="build-imagediff" depends="load-task" 
unless="imagediff-built" >
+        <property file="${sdk.dir}/build.properties" />
+        <!-- compile the basic tests -->
+        <mxmlc fork="true"
+            file="${basedir}/utilities/ImageDiffAIR/src/ImageDiffAIR.mxml">
+            <jvmarg line="${mxmlc.jvm.args}"/>
+            <load-config filename="${sdk.dir}/frameworks/air-config.xml"/>
+        </mxmlc>
+    </target>
+    
+    <target name="check-imagediff">
+        <available 
file="${basedir}/utilities/ImageDiffAIR/src/ImageDiffAIR.swf" 
property="imagediff-built" />
+    </target>
+    
+    <target name="imagediff" depends="check-imagediff,build-imagediff" >
+        <!-- Paths to the adl. -->
+        <condition property="adl" value="${env.AIR_HOME}/bin/adl.exe">
+            <os family="windows"/>
+        </condition>
+        <condition property="adl" value="${env.AIR_HOME}/bin/adl">
+            <os family="mac"/>
+        </condition>
+        <condition property="adl" value="${env.AIR_HOME}/bin/adl">
+            <os family="unix"/>
+        </condition>
+        <exec executable="${adl}" dir="${basedir}/utilities/ImageDiffAIR/src" >
+            <arg 
value="${basedir}/utilities/ImageDiffAIR/src/ImageDiffAIR-app.xml"/>
+        </exec>
+    </target>
 </project>
 

Reply via email to