-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
59 lines (50 loc) · 1.81 KB
/
build.xml
File metadata and controls
59 lines (50 loc) · 1.81 KB
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
<?xml version="1.0"?>
<project name="arc" default="compile" basedir=".">
<property name="src.dir" location="src"/>
<property name="bin.dir" location="build"/>
<property name="lib.dir" location="lib"/>
<property name="dist.dir" location="dist"/>
<path id="classpath">
<fileset dir="${lib.dir}"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${bin.dir}"/>
</target>
<target name="clean">
<delete dir="${bin.dir}"/>
</target>
<!-- Compiles the sources -->
<target name="compile" depends="clean, init">
<pathconvert property="classpathProp" refId="classpath"/>
<javac srcdir="${src.dir}" destdir="${bin.dir}" classpathref="classpath" includeantruntime="false">
<classpath refid="classpath"/>
</javac>
<antcall target="compile-login"/>
<antcall target="compile-gameserver"/>
</target>
<!-- packages a jar file for the login server -->
<target name="compile-login">
<mkdir dir="${bin.dir}/jar"/>
<jar destfile="${bin.dir}/jar/login.jar" basedir="build">
<zipgroupfileset dir="${lib.dir}"/>
<manifest>
<attribute name="Main-Class" value="be.leukspul.arc.server.LoginServer"/>
<attribute name="Class-Path" value="${classpath.name}"/>
</manifest>
</jar>
<copy file="build/jar/login.jar" tofile="dist/login.jar"/>
</target>
<!-- packages a jar file for the game server -->
<target name="compile-gameserver">
<mkdir dir="${bin.dir}/jar"/>
<jar destfile="${bin.dir}/jar/game.jar" basedir="build">
<zipgroupfileset dir="${lib.dir}"/>
<manifest>
<attribute name="Main-Class" value="be.leukspul.arc.server.GameServer"/>
<attribute name="Class-Path" value="${classpath.name}"/>
</manifest>
</jar>
<copy file="build/jar/game.jar" tofile="dist/game.jar"/>
</target>
</project>