1 <project name="dslab2" default="compile" basedir=".">
\r
2 <property name="src.dir" value="src"/>
\r
3 <property name="build.dir" value="build"/>
\r
4 <path id="project.classpath">
\r
5 <pathelement location="${build.dir}"/>
\r
7 <target name="compile" description="Compile project.">
\r
8 <mkdir dir="${build.dir}"/>
\r
9 <javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="project.classpath" debug="true" deprecation="true" includeantruntime="false"/>
\r
10 <copy file="${src.dir}/registry.properties" todir="${build.dir}"/>
\r
12 <target name="run-rootns" depends="compile" description="Run nameserver.">
\r
13 <java classname="Nameserver.Main" fork="true" classpathref="project.classpath"/>
\r
15 <target name="run-ns" depends="compile" description="Run nameserver.">
\r
16 <java classname="Nameserver.Main" fork="true" classpathref="project.classpath">
\r
17 <arg line="${args}"/>
\r
20 <target name="run-fs" depends="compile" description="Run fileserver.">
\r
21 <java classname="Fileserver.Main" fork="true" classpathref="project.classpath">
\r
22 <arg line="${args}"/>
\r
25 <target name="run-client" depends="compile" description="Run client.">
\r
26 <java classname="Client.Main" fork="true" classpathref="project.classpath"/>
\r
28 <target name="rebuild" depends="clean, compile" description="Clean and build products."/>
\r
29 <target name="clean" description="Clean build products.">
\r
30 <delete dir="${build.dir}"/>
\r