1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 <project name="dslab1" default="compile" basedir=".">
\r
5 <property name="src.dir" value="src"/>
\r
6 <property name="build.dir" value="build"/>
\r
8 <path id="project.classpath" >
\r
9 <pathelement location="${build.dir}"/>
\r
12 <target name="compile" description="Compile project.">
\r
13 <mkdir dir="${build.dir}"/>
\r
14 <javac srcdir="${src.dir}" destdir="${build.dir}"
\r
15 classpathref="project.classpath"
\r
16 debug="true" deprecation="true"
\r
17 includeantruntime="false"/>
\r
18 <copy todir="${build.dir}">
\r
19 <fileset dir="${src.dir}">
\r
20 <include name="*.properties" />
\r
25 <target name="run-server" depends="compile" description="Run server.">
\r
26 <!-- Replace "Main" with the qualified class name of your server implementation. -->
\r
27 <java classname="Server.Main" fork="true" classpathref="project.classpath">
\r
28 <!-- Replace these parameters with real values such as 12500. -->
\r
29 <arg value="14150" /><!-- tcpPort -->
\r
30 <arg value="14150" /><!-- udpPort -->
\r
34 <target name="run-client1" depends="compile" description="Run client1.">
\r
35 <!-- Replace "Client.Main" with the qualified class name of your client implementation. -->
\r
36 <java classname="Client.Main" fork="true" classpathref="project.classpath">
\r
37 <!-- Replace these parameters with real values such as 12501. -->
\r
38 <arg value="14151" /><!-- clientUDPPort -->
\r
39 <arg value="localhost" /><!-- serverHost -->
\r
40 <arg value="14150" /><!-- serverTCPPort -->
\r
41 <arg value="14150" /><!-- serverUDPPort -->
\r
45 <target name="run-client2" depends="compile" description="Run client2.">
\r
46 <!-- Replace "Client.Main" with the qualified class name of your client implementation. -->
\r
47 <java classname="Client.Main" fork="true" classpathref="project.classpath">
\r
48 <!-- Replace these parameters with real values such as 12502. -->
\r
49 <arg value="14152" /><!-- clientUDPPort -->
\r
50 <arg value="localhost" /><!-- serverHost -->
\r
51 <arg value="14150" /><!-- serverTCPPort -->
\r
52 <arg value="14150" /><!-- serverUDPPort -->
\r
56 <target name="run-client3" depends="compile" description="Run client3.">
\r
57 <!-- Replace "Client.Main" with the qualified class name of your client implementation. -->
\r
58 <java classname="Client.Main" fork="true" classpathref="project.classpath">
\r
59 <!-- Replace these parameters with real values such as 12503. -->
\r
60 <arg value="14153" /><!-- clientUDPPort -->
\r
61 <arg value="localhost" /><!-- serverHost -->
\r
62 <arg value="14150" /><!-- serverTCPPort -->
\r
63 <arg value="14150" /><!-- serverUDPPort -->
\r
67 <target name="clean" description="Clean build products.">
\r
68 <delete dir="${build.dir}"/>
\r
71 <target name="rebuild" depends="clean, compile" description="Clean and build products." />
\r