forked from NetEase/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
55 lines (49 loc) · 1.8 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"?>
<project name="arrow" basedir="." default="jar">
<property file="./VERSION" />
<property name="project-name" value="arrow-${version}" />
<property name="lib" value="libs" />
<property name="bin" value="bin"/>
<property name="src" value="src" />
<property name="jar-file-name" value="${project-name}.jar" />
<path id="Third-Part Lib">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<target name="usage" description="Build file usage info (default task)">
<echo message=" " />
<echo message=" ${project-name} " />
<echo message="-------------------------------------------------------" />
<echo message=" Available Targets:" />
<echo message=" clean - Delete class files and .jar file" />
<echo message=" copy-res - copy resource to bin" />
<echo message=" compile - Compiles the source code" />
<echo message=" jar - Generate an .jar for source code" />
<echo message="-------------------------------------------------------" />
</target>
<target name="clean">
<delete file="${jar-file-name}" />
<delete dir="${bin}" />
</target>
<target name="copy-res">
<copy todir="${bin}">
<fileset dir="${src}">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="compile" depends="usage,clean,copy-res">
<mkdir dir="${bin}"/>
<javac debug="true" deprecation="true" destdir="${bin}"
failonerror="true" srcdir="${src}" includeantruntime="false">
<classpath refid="Third-Part Lib" />
<compilerarg line="-encoding UTF-8 " />
</javac>
</target>
<target name="jar" depends="compile">
<jar basedir="${bin}" destfile="${jar-file-name}">
<zipfileset excludes="META-INF/*.SF" src="${lib}/qdox-1.12.1.jar"/>
</jar>
</target>
</project>