-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
73 lines (54 loc) · 2.3 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ASPDC" default="SWC" basedir="." >
<property file="build.env" />
<property name="ASDOC" value="${FLEX_HOME}\bin\asdoc.exe" />
<property name="FILE_NAME" value="asdpc" />
<property name="VERSION" value="0.4.1-snapshot" />
<property name="SRC" value="src" />
<property name="EXAMPLES" value="examples" />
<property name="TESTS" value="tests" />
<property name="LIBS" value="libs" />
<property name="ZIP" value="deploy/zip" />
<property name="SWC" value="deploy/swc" />
<property name="DOC" value="deploy/doc" />
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<target name="SWC" description="Compile Libray">
<compc output="${SWC}/${FILE_NAME}-${VERSION}.swc">
<include-sources dir="${basedir}/${SRC}/com/sibirjak/" includes="*" />
<!-- Libs -->
<external-library-path dir="${LIBS}" includes="*" />
<external-library-path dir="${FLASH_PLAYER_LIBS}" includes="*" />
</compc>
</target>
<target name="Clean" description="Clean">
<delete dir="${DOC}/apidoc" failonerror="false" />
</target>
<target name="APIDoc" depends="Clean" description="Apidoc">
<exec executable="${ASDOC}" failonerror="true">
<arg line="-doc-sources 'src/com/sibirjak/asdpc'" />
<arg line="-doc-sources 'src/com/sibirjak/asdpcbeta'" />
<arg line="-source-path '${SRC}'" />
<arg line="-window-title 'ActionScript DataProvider Controls ${VERSION}'" />
<arg line="-output '${DOC}/apidoc'"/>
<arg line="-external-library-path libs" />
</exec>
<fixcrlf srcdir="${DOC}/apidoc" includes="**/*.*" eol="lf" />
</target>
<target name="Zip" description="ZIP">
<delete file="${ZIP}/${FILE_NAME}-${VERSION}.zip" />
<zip destfile="${ZIP}/${FILE_NAME}-${VERSION}.zip">
<zipfileset dir="${SRC}" prefix="src" />
<zipfileset dir="${EXAMPLES}" prefix="examples" />
<zipfileset file="${SWC}/${FILE_NAME}-${VERSION}.swc" prefix="swc" />
<zipfileset dir="${LIBS}" prefix="libs" />
<zipfileset dir="${DOC}" prefix="doc" />
<zipfileset dir="${TESTS}" prefix="tests" />
</zip>
</target>
<target name="Zip_Src" description="SRC ZIP">
<delete file="${ZIP}/${FILE_NAME-${VERSION}}-src.zip" />
<zip destfile="${ZIP}/${FILE_NAME}-${VERSION}-src.zip">
<zipfileset dir="${SRC}" />
</zip>
</target>
</project>