-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
26 lines (26 loc) · 892 Bytes
/
build.xml
File metadata and controls
26 lines (26 loc) · 892 Bytes
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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="tinyTCPServer" default="build" basedir=".">
<property name="src" value="src"/>
<property name="dest" value="classes"/>
<property name="tinyTCPServer_jar" value="tinyTCPServer.jar"/>
<target name="init">
<mkdir dir="${dest}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${dest}" includeAntRuntime="false" debug="on"/>
</target>
<target name="build" depends="clean,compile">
<jar jarfile="${tinyTCPServer_jar}" basedir="${dest}"/>
</target>
<target name="run" depends="build">
<java classname="tinyTCPServer.example.EchoServer" classpath="${tinyTCPServer_jar}"/>
</target>
<target name="clean">
<delete dir="${dest}" />
<delete file="${tinyTCPServer_jar}" />
</target>
<target name="rerun" depends="clean,run">
<ant target="clean" />
<ant target="run" />
</target>
</project>