-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
57 lines (50 loc) · 1.55 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
<project basedir="." default="build" name="libtreap">
<property name="libs" value="${basedir}/lib" />
<property name="build.src" value="${basedir}/src" />
<property name="build.conf" value="${basedir}/conf" />
<property name="build.out" value="${basedir}/build" />
<property name="build.classes" value="${build.out}/classes" />
<property name="build.dist" value="${build.out}/dist" />
<property name="final.name" value="libtreap-2.0" />
<target name="init">
<mkdir dir="${build.classes}" />
<mkdir dir="${build.dist}"/>
</target>
<target depends="init" name="build">
<javac destdir="${build.classes}" encoding="gbk" source="1.6" debug="true">
<src path="${build.src}" />
<classpath>
<path>
<fileset dir="${libs}">
<include name="**/*.jar" />
</fileset>
</path>
</classpath>
</javac>
<copy todir="${build.classes}">
<fileset dir="${build.conf}">
<include name="**/*.properties" />
</fileset>
</copy>
</target>
<target name="jar" depends="build">
<mkdir dir="${build.classes}/META-INF" />
<jar jarfile="${build.out}/${final.name}.jar"
basedir="${build.classes}" />
</target>
<target name="dist" depends="jar">
<copy todir="${build.dist}">
<fileset dir="${libs}">
<include name="**/*.jar" />
</fileset>
</copy>
<copy todir="${build.dist}">
<fileset dir="${build.out}">
<include name="${final.name}.jar"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="${build.out}" />
</target>
</project>