-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild_blood.xml
83 lines (58 loc) · 2.63 KB
/
build_blood.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Kain Build Blood" default="dist" basedir=".">
<property name="build.version" value="1.0" />
<property name="debug" value="on" />
<property name="src.gameserver" location="gameserver/src/main/java" />
<property name="src.authserver" location="authserver/src/main/java" />
<property name="src.commons" location="commons/src/main/java" />
<property name="src.blood" location="blood/src/main/java" />
<property name="dist" location="dist" />
<property name="lib" location="lib" />
<property name="build" location="build" />
<property name="build.classes" location="${build}/classes" />
<property name="build.dist" location="${build}/dist" />
<property name="build.dist.authserver" location="${build.dist}/authserver" />
<property name="build.dist.gameserver" location="${build.dist}/gameserver" />
<property name="build.dist.blood" location="${build.dist}/blood" />
<path id="classpath">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<pathconvert property="jar.list" pathsep=" " refid="classpath">
<mapper type="flatten" />
</pathconvert>
<property name="build.classpath" refid="classpath" />
<tstamp>
<format property="build.tstamp" pattern="yyyy.MM.dd HH:mm" />
</tstamp>
<target name="clean" description="Remove the output directories.">
<delete dir="${build}" />
</target>
<target name="init" description="Create the output directories.">
<mkdir dir="${build}" />
</target>
<target name="compile-blood" depends="init">
<delete dir="${build.classes}" />
<mkdir dir="${build.classes}" />
<javac srcdir="${src.blood}" optimize="on" destdir="${build.classes}" debug="${debug}" source="1.7" target="1.7" includeantruntime="false" encoding="UTF-8" nowarn="off" classpath="${build.classpath}:${build}/commons.jar">
<compilerarg value="-Xlint:all,-serial" />
</javac>
</target>
<target name="blood-jar" depends="compile-blood">
<jar destfile="${build}/blood.jar">
<fileset dir="${build.classes}" />
<manifest>
<attribute name="Main-Class" value="blood.Blood" />
<attribute name="Class-Path" value="${jar.list} commons.jar" />
<attribute name="Build-By" value="${user.name}" />
<attribute name="Build-Date" value="${build.tstamp}" />
<attribute name="Implementation-Build" value="0.1" />
<attribute name="Implementation-Version" value="${build.version}" />
</manifest>
</jar>
</target>
<target name="dist" depends="blood-jar">
<copy file="${build}/blood.jar" todir="dist/gameserver/blood_lib" />
</target>
</project>