forked from robertpenner/as3-signals
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-asunit.xml
34 lines (28 loc) · 1.17 KB
/
build-asunit.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<project name="as3-signals" basedir="." default="test">
<!-- Set up a prefix for all environment variables. -->
<property environment="env."/>
<fail unless="env.FLEX_HOME" message="FLEX_HOME needs to be defined as an environment variable or in the Ant build." />
<!-- Copy Flex SDK location from environment variable. This can be set manually instead. -->
<property name="FLEX_HOME" value="${env.FLEX_HOME}" />
<property file="build.properties"/>
<property file="build-asunit.properties"/>
<target name="test">
<taskdef resource="flexTasks.tasks" classpath="${flextask.jar}" />
<mxmlc file="${test.main}" output="${tests.output}"
incremental="true" debug="false"
static-link-runtime-shared-libraries="true">
<source-path path-element="${src.dir}" />
<source-path path-element="${tests.dir}"/>
<load-config filename="${flex.config}" />
<library-path dir="${flex.lib}" append="true">
<include name="flex.swc" />
</library-path>
<library-path dir="${libs.dir}" append="true">
<include name="*.swc" />
</library-path>
</mxmlc>
<exec executable="open" os="Mac OS X">
<arg line='-a "flash player" ${tests.output}' />
</exec>
</target>
</project>