-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
80 lines (64 loc) · 2.35 KB
/
build.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="utf-8"?>
<project name="BetweenAS3" basedir=".">
<!--
How to run:
$ ant -lib /path/to/flex_sdk/ant/lib/flexTasks.jar target-name
Note: Edit build.properties and set your /path/to/flex_sdk to FLEX_HOME.
Note: Create output directory before execute ant task.
-->
<taskdef resource="flexTasks.tasks" classpath="${basedir}/flexTasks/lib/flexTasks.jar" />
<property file="build.properties" />
<fileset id="src.fp10.fileset" dir="${src.fp10.dir}/">
<include name="**/*.as" />
</fileset>
<fileset id="src.fp9.fileset" dir="${src.fp9.dir}/">
<include name="**/*.as" />
</fileset>
<pathconvert property="src.fp10.classes" pathsep=" " refid="src.fp10.fileset">
<chainedmapper>
<globmapper from="${src.fp10.dir}/*" to="*" handledirsep="yes" />
<packagemapper from="*.as" to="*" />
</chainedmapper>
</pathconvert>
<pathconvert property="src.fp9.classes" pathsep=" " refid="src.fp9.fileset">
<chainedmapper>
<globmapper from="${src.fp9.dir}/*" to="*" handledirsep="yes" />
<packagemapper from="*.as" to="*" />
</chainedmapper>
</pathconvert>
<target name="clean.swc.fp10">
<delete file="${output.swc.fp10.name}" />
</target>
<target name="clean.swc.fp9">
<delete file="${output.swc.fp9.name}" />
</target>
<target name="swc.fp10" depends="clean.swc.fp10">
<compc output="${output.swc.fp10.name}" include-classes="${src.fp10.classes}">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<target-player>10.0.0</target-player>
<source-path path-element="${src.fp10.dir}" />
</compc>
</target>
<target name="swc.fp9" depends="clean.swc.fp9">
<compc output="${output.swc.fp9.name}" include-classes="${src.fp9.classes}">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${src.fp9.dir}" />
</compc>
</target>
<target name="clean.src.fp10">
<delete file="${output.src.fp10.name}" />
</target>
<target name="clean.src.fp9">
<delete file="${output.src.fp9.name}" />
</target>
<target name="src.fp10" depends="clean.src.fp10">
<zip destfile="${output.src.fp10.name}">
<fileset refid="src.fp10.fileset" />
</zip>
</target>
<target name="src.fp9" depends="clean.src.fp9">
<zip destfile="${output.src.fp9.name}">
<fileset refid="src.fp9.fileset" />
</zip>
</target>
</project>