]> git.somenet.org - pub/jan/dslab.git/blob - ue3/build.xml
GITOLITE.txt
[pub/jan/dslab.git] / ue3 / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <project name="dslab3" default="compile" basedir=".">\r
3 \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
7 \r
8         <path id="project.classpath">\r
9                 <dirset dir="${build.dir}" />\r
10                 <fileset dir="${lib.dir}">\r
11                         <include name="*.jar" />\r
12                 </fileset>\r
13         </path>\r
14 \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
21                         </fileset>\r
22                 </copy>\r
23         </target>\r
24 \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
28         </target>\r
29 \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
33         </target>\r
34 \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
38         </target>\r
39 \r
40         <target name="clean">\r
41                 <delete dir="${build.dir}" />\r
42         </target>\r
43 \r
44         <target name="rebuild" depends="clean, compile" description="Clean and build products." />\r
45 </project>\r