-
Notifications
You must be signed in to change notification settings - Fork 56
/
build.xml
executable file
·95 lines (78 loc) · 2.76 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="com.sumory.uc">
<property name="src" value="src" />
<property name="lib" value="lib" />
<property name="conf" value="conf" />
<property name="classes" value="classes" />
<property name="release" value="release" />
<property name="test" value="test" />
<path id="project.classpath">
<pathelement location="${classes}" />
<fileset dir="${lib}" includes="*.jar" />
</path>
<target name="init">
<delete dir="${classes}" />
<mkdir dir="${classes}" />
<delete dir="${release}" />
<mkdir dir="${release}" />
</target>
<target name="compile" depends="init">
<javac destdir="${classes}" encoding="UTF8" includeantruntime="false" debug="true" debuglevel="lines,source">
<src path="${src}" />
<classpath refid="project.classpath" />
</javac>
<javac destdir="${classes}" encoding="UTF8" includeantruntime="false" debug="true" debuglevel="lines,source">
<src path="${test}" />
<classpath refid="project.classpath" />
</javac>
<copy todir="${classes}">
<fileset dir="${conf}" />
</copy>
</target>
<target name="run" depends="compile">
<java classname="com.sumory.uc.main.Server">
<classpath refid="project.classpath" />
</java>
</target>
<target name="build" depends="compile">
<jar jarfile="${release}/com.sumory.uc.jar" basedir="${classes}" />
</target>
<target name="server-compile" depends="init">
<javac destdir="${classes}" encoding="UTF8" includeantruntime="false" debug="true" debuglevel="lines,source">
<src path="${src}" />
<classpath refid="project.classpath" />
</javac>
<copy todir="${classes}">
<fileset dir="${conf}/server" />
</copy>
</target>
<target name="server-build" depends="server-compile">
<jar jarfile="${release}/com.sumory.uc.jar" basedir="${classes}" />
<delete dir="${src}" />
<delete dir="${classes}" />
<delete dir="${test}" />
<delete dir="${conf}" />
<delete file="build.xml" />
</target>
<target name="test-server-compile" depends="init">
<javac destdir="${classes}" encoding="UTF8" includeantruntime="false" debug="true" debuglevel="lines,source">
<src path="${src}" />
<classpath refid="project.classpath" />
</javac>
<copy todir="${classes}">
<fileset dir="${conf}/test-server" />
</copy>
</target>
<target name="test-server-build" depends="test-server-compile">
<jar jarfile="${release}/com.sumory.uc.jar" basedir="${classes}" />
<delete dir="${src}" />
<delete dir="${classes}" />
<delete dir="${test}" />
<delete dir="${conf}" />
<delete file="build.xml" />
</target>
<target name="clean">
<delete dir="${classes}" />
<delete dir="${release}" />
</target>
</project>