1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <project name="dslab3" default="compile" basedir=".">
\r
4 <property name="src.dir" value="src" />
\r
5 <property name="lib.dir" value="lib" />
\r
6 <property name="build.dir" value="build" />
\r
8 <path id="project.classpath">
\r
9 <dirset dir="${build.dir}" />
\r
10 <fileset dir="${lib.dir}">
\r
11 <include name="*.jar" />
\r
15 <target name="compile">
\r
16 <mkdir dir="${build.dir}" />
\r
17 <javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="project.classpath" debug="true" deprecation="true" includeantruntime="false" />
\r
18 <copy todir="${build.dir}">
\r
19 <fileset dir="${src.dir}">
\r
20 <include name="*.properties" />
\r
25 <target name="run-ca" depends="compile" description="Run certification authority.">
\r
26 <!-- Replace "your.Server" with the qualified class name of your certification authority implementation. -->
\r
27 <java classname="CA.Main" fork="true" classpathref="project.classpath" />
\r
30 <target name="run-server" depends="compile" description="Run server.">
\r
31 <!-- Replace "your.Server" with the qualified class name of your server implementation. -->
\r
32 <java classname="Server.Main" fork="true" classpathref="project.classpath" />
\r
35 <target name="run-client" depends="compile" description="Run client.">
\r
36 <!-- Replace "your.Client" with the qualified class name of your client implementation. -->
\r
37 <java classname="Client.Main" fork="true" classpathref="project.classpath" />
\r
40 <target name="clean">
\r
41 <delete dir="${build.dir}" />
\r
44 <target name="rebuild" depends="clean, compile" description="Clean and build products." />
\r