-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (45 loc) · 1.76 KB
/
build.xml
File metadata and controls
55 lines (45 loc) · 1.76 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<project name="dslab15-rmi-example" default="compile" basedir=".">
<property name="src.dir" value="src/main/java" />
<property name="src.resources.dir" value="src/main/resources" />
<property name="build.dir" value="build" />
<property name="zip.name" value="dslab15-rmi-example.zip" />
<path id="project.classpath">
<pathelement location="${build.dir}" />
</path>
<!-- create the zip file: -->
<target name="zip" depends="clean">
<delete file="${zip.name}" />
<zip destfile="${zip.name}">
<fileset dir="${basedir}">
<exclude name="target/**" />
</fileset>
</zip>
</target>
<target name="compile" description="Compile project.">
<mkdir dir="${build.dir}" />
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="project.classpath" debug="true" deprecation="true" includeantruntime="false" />
<copy todir="${build.dir}">
<fileset dir="${src.resources.dir}">
<include name="*.properties" />
</fileset>
</copy>
</target>
<target name="run-server" depends="compile" description="Run Server.">
<java classname="server.Server" fork="true" classpathref="project.classpath" />
</target>
<target name="run-client1" depends="compile" description="Run 1st Client.">
<java classname="client.Client" fork="true" classpathref="project.classpath">
<arg value="client1" />
</java>
</target>
<target name="run-client2" depends="compile" description="Run 2nd Client.">
<java classname="client.Client" fork="true" classpathref="project.classpath">
<arg value="client2" />
</java>
</target>
<target name="clean" description="Clean build products.">
<delete dir="${build.dir}" />
</target>
<target name="rebuild" depends="clean, compile" description="Clean and build products." />
</project>