This repository was archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
39 lines (32 loc) · 1.24 KB
/
build.xml
File metadata and controls
39 lines (32 loc) · 1.24 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
<project name="UDP Tracker" default="jar" basedir=".">
<property name="app.name" value="udptracker"/>
<property name="src.dir" value="src"/>
<property name="lib.dir" value="lib"/>
<property name="classes.dir" value="build/classes"/>
<property name="jar.dir" value="build/jar"/>
<property name="config.dir" value="config"/>
<property name="main-class" value="su.lafayette.udptracker.Server"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath"/>
<copy file="${config.dir}/log4j.xml" todir="${classes.dir}"/>
<copy file="${config.dir}/config.xml" todir="${classes.dir}"/>
</target>
<target name="jar" depends="compile">
<jar jarfile="${jar.dir}/${app.name}.jar" basedir="${classes.dir}"/>
</target>
<target name="run" depends="jar">
<java fork="true" classname="${main-class}">
<classpath>
<path refid="classpath"/>
<path location="${jar.dir}/${app.name}.jar"/>
</classpath>
</java>
</target>
</project>