-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
42 lines (34 loc) · 1.23 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
<project name="JocketServer" default="jar" basedir=".">
<description>
JocketServer
</description>
<property name="src" location="src"/>
<property name="classes" location="classes"/>
<property name="ant.build.javac.target" value="1.5"/>
<target name="init">
<mkdir dir="${classes}"/>
</target>
<target name="build" depends="clean, compile" description="clean out old crud, then build new stud"/>
<target name="jar" depends="build" description="generate the jar file">
<delete file="jocketserver.jar"/>
<jar jarfile="jocketserver.jar" basedir="classes">
<include name="**/*"/>
<exclude name="**/*Test.class"/>
<manifest>
<attribute name="Built-By" value="Justin Martin"/>
<attribute name="Main-Class" value="Main"/>
</manifest>
</jar>
</target>
<target name="clean" description="clear out everything in the classes dir">
<mkdir dir="${classes}"/>
<delete>
<fileset dir="${classes}" includes="**/"/>
</delete>
</target>
<target name="compile" depends="init" description="compile all of the source classes">
<javac srcdir="${src}" destdir="${classes}" debug="off">
<exclude name="**/*Test.java"/>
</javac>
</target>
</project>