forked from pixeldroid/log-as3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
55 lines (44 loc) · 1.99 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="log-as3" default="-usage" basedir=".">
<target name="-usage"><usage /></target>
<description>
Builds and releases the log-as3 libraries.
</description>
<property name="dir.root" location="${basedir}"/>
<import file="${dir.root}/tools/ant/init.xml"/>
<property name="dir.components" location="${basedir}/components"/>
<property name="dir.release" location="${basedir}/releases"/>
<target name="all" description="> compiles and releases the library swcs (calls component sub-builds)" depends="libs, release"/>
<target name="clean" description="remove the contents of ${dir.release}">
<delete failonerror="true" includeemptydirs="true">
<fileset dir="${dir.release}" includes="**/${ant.project.name}*"/>
</delete>
</target>
<target name="libs" description="builds the library swcs (calls component sub-builds)">
<ant antfile="${dir.components}/main/build.xml" target="all" inheritAll="false"/>
<ant antfile="${dir.components}/toplevel/build.xml" target="all" inheritAll="false"/>
<ant antfile="${dir.components}/appenders/build.xml" target="all" inheritAll="false"/>
</target>
<target name="release" description="collects compiled libraries into main release folders">
<copy todir="${dir.release}/appenders">
<fileset dir="${dir.components}/appenders/release">
<include name="*.swc"/>
<include name="*.swf"/>
</fileset>
</copy>
<copy todir="${dir.release}/standard">
<fileset dir="${dir.components}/main/release">
<include name="*.swc"/>
</fileset>
</copy>
<copy todir="${dir.release}/toplevel">
<fileset dir="${dir.components}/toplevel/release">
<include name="*.swc"/>
</fileset>
</copy>
</target>
<target name="tests" description="builds the test examples (calls component sub-builds)">
<ant antfile="${dir.components}/main-test/build.xml" target="all" inheritAll="false"/>
<ant antfile="${dir.components}/toplevel-test/build.xml" target="all" inheritAll="false"/>
</target>
</project>