This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
64 lines (51 loc) · 2.03 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
<?xml version="1.0" encoding="utf-8"?>
<project name="runway" default="build" basedir=".">
<property file="${basedir}/local-build-settings.properties" />
<property file="${basedir}/build-settings.properties" />
<taskdef resource="flexTasks.tasks"
classpath="${FLEX_HOME}ant/lib/flexTasks.jar" />
<property name="dir.src" value="${basedir}/src/" />
<property name="dir.src.as" value="${dir.src}as/" />
<property name="dir.src.api" value="${dir.src}webapp/api/" />
<property name="dir.lib" value="${basedir}/lib/" />
<property name="dir.lib.as" value="${dir.lib}as/" />
<property name="dir.build" value="${basedir}/build/" />
<!-- =================================================================== -->
<target name="prepare">
<mkdir dir="${dir.build}"/>
</target>
<!-- =================================================================== -->
<target name="build" depends="prepare">
<path id="files.as">
<fileset dir="${dir.src.as}">
<include name="**/**"/>
</fileset>
</path>
<pathconvert
property="files.classes"
pathsep=" "
dirsep="."
refid="files.as">
<map from="${dir.src.as}/" to="" />
<mapper>
<chainedmapper><globmapper from="*.as" to="*" /></chainedmapper>
</mapper>
</pathconvert>
<mxmlc file="${dir.src.as}org/simileWidgets/runway/${Name}Widget.as" output="${dir.build}/${name}.swf">
<target-player>10.0.12.36</target-player>
<source-path path-element="${dir.src.as}"/>
<compiler.library-path dir="${dir.lib.as}">
<include name="flare.swc" />
</compiler.library-path>
</mxmlc>
<copy todir="${dir.src.api}swf">
<fileset dir="${dir.build}">
<include name="*.swf"/>
</fileset>
</copy>
</target>
<!-- =================================================================== -->
<target name="clean">
<delete dir="${dir.build}"/>
</target>
</project>