-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
47 lines (39 loc) · 1.52 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
<?xml version="1.0"?>
<project name="Sentinel" basedir="" default="build">
<property environment="env" />
<property name="FLEX_HOME" value="${env.FLEX_HOME}" />
<property name="dir.bin" value="bin" />
<property name="dir.src" value="src" />
<property name="dir.libs" value="libs" />
<property name="dir.docs" value="docs" />
<echo message="Using Flex SDK at '${FLEX_HOME}'." />
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<target name="build" depends="compc,asdoc,merge" />
<!-- Compile the SWC. -->
<target name="compc">
<compc output="${dir.bin}/${ant.project.name}.swc">
<include-sources dir="${dir.src}" includes="*" />
<include-libraries dir='${dir.libs}' includes="*.swc" append='true' />
</compc>
</target>
<!-- Generate the ASDoc from source. -->
<target name="asdoc">
<asdoc output="${dir.docs}" lenient="false" failonerror="true" keep-xml="true" skip-xsl="false" fork="true">
<doc-sources path-element="${dir.src}" />
<compiler.source-path path-element="${dir.src}" />
<external-library-path dir='${dir.libs}' append='true'>
<include name="*.swc" />
</external-library-path>
</asdoc>
</target>
<!-- Merge the ASDoc with the compiled SWC. -->
<target name="merge">
<zip destfile="${dir.bin}/${ant.project.name}.swc" update="true">
<zipfileset dir="${dir.docs}/tempdita" prefix="docs">
<include name="*.*" />
<exclude name="ASDoc_Config.xml" />
<exclude name="overviews.xml" />
</zipfileset>
</zip>
</target>
</project>