Updates narya bureau test to use AscLibTask and AscTask
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5135 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
+30
-41
@@ -103,39 +103,30 @@
|
|||||||
<target name="check-abclib">
|
<target name="check-abclib">
|
||||||
<condition property="abclib_up_to_date">
|
<condition property="abclib_up_to_date">
|
||||||
<uptodate targetfile="${deploy.dir}/testslib.abc">
|
<uptodate targetfile="${deploy.dir}/testslib.abc">
|
||||||
<srcfiles dir="../lib" includes="builtin.abc"/>
|
<srcfiles dir="../lib" includes="*.abc"/>
|
||||||
<srcfiles dir="../lib" includes="thane.abc"/>
|
<srcfiles dir="../dist" includes="*.abc"/>
|
||||||
<srcfiles dir="../dist" includes="narya-abc.abc"/>
|
|
||||||
<srcfiles dir="etc" includes="etc/asc-files.txt"/>
|
|
||||||
<srcfiles dir="src/as" includes="**/*.as"/>
|
<srcfiles dir="src/as" includes="**/*.as"/>
|
||||||
</uptodate>
|
</uptodate>
|
||||||
</condition>
|
</condition>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- builds our Flash (abc) library -->
|
<!-- builds our Flash (abc) library -->
|
||||||
<target name="abclib" unless="abclib_up_to_date" depends="check-abclib"
|
<target name="abclib" unless="abclib_up_to_date" depends="check-abclib,prepare"
|
||||||
description="Build the abc library for tests classes">
|
description="Build the abc library for tests classes">
|
||||||
<loadfile property="ascfiles" srcFile="etc/asc-files.txt">
|
<taskdef name="asc" classname="flex.ant.AscLibTask" classpathref="classpath"/>
|
||||||
<filterchain>
|
<dirname property="abs.deploy.dir" file="${deploy.dir}/somefile.txt"/>
|
||||||
<prefixlines prefix="-in src/as/"/>
|
<asc as3="true" strict="true" classpathref="classpath"
|
||||||
<tokenfilter delimOutput=" "/>
|
outdir="${abs.deploy.dir}" out="testslib">
|
||||||
</filterchain>
|
<import dir="../dist">
|
||||||
</loadfile>
|
<include name="builtin.abc"/>
|
||||||
<java classname="macromedia.asc.embedding.Main" fork="true" failonerror="true">
|
<include name="thane.abc"/>
|
||||||
<classpath refid="classpath"/>
|
<include name="narya-abc.abc"/>
|
||||||
<arg value="-AS3"/>
|
</import>
|
||||||
<arg value="-strict"/>
|
<filespec dir="src/as">
|
||||||
<arg value="-import"/>
|
<include name="**/*.as"/>
|
||||||
<arg value="../lib/builtin.abc"/>
|
<exclude name="**/*Main.as"/>
|
||||||
<arg value="-import"/>
|
</filespec>
|
||||||
<arg value="../lib/thane.abc"/>
|
</asc>
|
||||||
<arg value="-import"/>
|
|
||||||
<arg value="../dist/narya-abc.abc"/>
|
|
||||||
<arg line="${ascfiles}"/>
|
|
||||||
<arg value="src/as/Lib.as"/>
|
|
||||||
</java>
|
|
||||||
<move file="src/as/Lib.abc"
|
|
||||||
tofile="${deploy.dir}/testslib.abc"/>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- test the component metadata bundling process -->
|
<!-- test the component metadata bundling process -->
|
||||||
@@ -232,21 +223,19 @@
|
|||||||
<target name="bureau-compile-thane-client"
|
<target name="bureau-compile-thane-client"
|
||||||
unless="thane_client_up_to_date" depends="abclib,bureau-check-thane-client"
|
unless="thane_client_up_to_date" depends="abclib,bureau-check-thane-client"
|
||||||
description="Compiles the thane client for testing the bureau library">
|
description="Compiles the thane client for testing the bureau library">
|
||||||
<java classname="macromedia.asc.embedding.Main" fork="true" failonerror="true">
|
<taskdef name="ascx" classname="flex.ant.AscTask" classpathref="classpath"/>
|
||||||
<classpath refid="classpath"/>
|
<ascx as3="true" strict="true" classpathref="classpath">
|
||||||
<arg value="-AS3"/>
|
<import dir="..">
|
||||||
<arg value="-strict"/>
|
<include name="dist/builtin.abc"/>
|
||||||
<arg value="-import"/>
|
<include name="dist/thane.abc"/>
|
||||||
<arg value="../lib/builtin.abc"/>
|
<include name="dist/narya-abc.abc"/>
|
||||||
<arg value="-import"/>
|
<include name="tests/dist/testslib.abc"/>
|
||||||
<arg value="../lib/thane.abc"/>
|
</import>
|
||||||
<arg value="-import"/>
|
<filespec dir="src/as">
|
||||||
<arg value="../dist/narya-abc.abc"/>
|
<include name="com/threerings/bureau/client/TestClientMain.as"/>
|
||||||
<arg value="-import"/>
|
</filespec>
|
||||||
<arg value="dist/testslib.abc"/>
|
</ascx>
|
||||||
<arg value="src/as/com/threerings/bureau/client/TestClientMain.as"/>
|
<move overwrite="true" file="src/as/com/threerings/bureau/client/TestClientMain.abc" todir="dist"/>
|
||||||
</java>
|
|
||||||
<move file="src/as/com/threerings/bureau/client/TestClientMain.abc" todir="dist"/>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="bureau-runserver" depends="compile"
|
<target name="bureau-runserver" depends="compile"
|
||||||
|
|||||||
Reference in New Issue
Block a user