-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_server.xml
72 lines (63 loc) · 2.23 KB
/
build_server.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
<?xml version="1.0"?>
<project name="SafariBowl Server" default="run" basedir=".">
<target name="clean">
<delete dir="bin/jar" />
<delete dir="log" />
<delete dir="reports"/>
<mkdir dir="bin/jar" />
<mkdir dir="doc" />
<mkdir dir="reports" />
</target>
<target name="build" depends="clean">
<mkdir dir="bin/classes" />
<javac srcdir="src" destdir="bin/classes" includes="**/*.java" includeantruntime="true">
<classpath>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="doc" depends="build">
<javadoc sourcepath="src"
destdir="doc"
author="true"
version="true"
use="true"
windowtitle="SafariBowl Documentation">
<classpath>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
<doctitle><![CDATA[<h1>SafariBowl</h1>]]></doctitle>
<tag name="TODO" scope="all" description="To do:"/>
</javadoc>
</target>
<target name="junit" depends="build">
<junit printsummary="yes" haltonerror="yes" haltonfailure="yes" showoutput="yes">
<classpath>
<fileset dir="lib" includes="*.jar"/>
<pathelement location="bin/classes"/>
</classpath>
<formatter type="xml"/>
<batchtest fork="yes" todir="reports">
<fileset dir="src" includes="**/*Test.java"/>
</batchtest>
</junit>
</target>
<target name="jar" depends="build">
<mkdir dir="bin/jar" />
<jar destfile="bin/jar/Server.jar">
<fileset dir="bin/classes/"/>
<fileset dir="resources/"/>
<zipgroupfileset dir="lib" includes="**/*.jar" />
<manifest>
<attribute name="Main-Class" value="server.ServerController" />
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="bin/jar/Server.jar" fork="true" />
</target>
</project>