-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
56 lines (49 loc) · 1.98 KB
/
build.xml
File metadata and controls
56 lines (49 loc) · 1.98 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<project name="destroy-window" default="build" basedir="." >
<property environment="env" />
<property name="FLEX_HOME" location="${env.FLEX_HOME}" />
<property file="${basedir}/build/build.properties" />
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<taskdef resource="flexUnitTasks.tasks" classpath="${build.loc}/flexUnitTasks-4.1.0_RC2-x.jar"/>
<target name="clean">
<delete dir="${bin.loc}" />
<delete dir="${report.loc}" />
</target>
<target name="init">
<mkdir dir="${bin.loc}" />
<mkdir dir="${report.loc}" />
</target>
<target name="compile">
<java jar="${FLEX_HOME}/lib/compc.jar" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
<jvmarg value="-Xmx512m" />
<arg line="-output '${bin.loc}/${ant.project.name}.swc'" />
<arg line="-include-sources=${src.loc}" />
<arg line="-source-path+=${src.loc}" />
<arg line="-load-config=" />
<arg line="-external-library-path+=${lib.loc}/as3-signals-v0.8.swc" />
<arg line="-external-library-path+=${lib.loc}/destroy-common.swc" />
<arg line="-external-library-path+=libs/air/airglobal.swc" />
<arg line="-verbose-stacktraces=true" />
</java>
</target>
<target name="test">
<mxmlc file="${test.loc}/${test.runner}"
output="${bin.loc}/${ant.project.name}-test.swf"
actionscript-file-encoding="UTF-8"
keep-generated-actionscript="false"
static-link-runtime-shared-libraries="true"
debug="true">
<load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
<compiler.source-path path-element="${src.loc}" />
<compiler.library-path dir="${lib.loc}" append="true">
<include name="*.swc" />
</compiler.library-path>
</mxmlc>
<flexunit
player="air"
swf="${bin.loc}/${ant.project.name}-test.swf"
toDir="${report.loc}"
haltonfailure="true"
verbose="true" />
</target>
<target name="build" depends="clean, init, compile, test" />
</project>