-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
36 lines (36 loc) · 1.46 KB
/
build.xml
File metadata and controls
36 lines (36 loc) · 1.46 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build-jar" name="TP2">
<property name="debuglevel" value="source,lines,vars" />
<path id="TP2.classpath">
<pathelement location="bin" />
</path>
<target name="init">
<mkdir dir="bin" />
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin" />
<delete file="loadBalancer.jar" />
<delete file="serverCalcul.jar" />
<delete file="serviceDeNom.jar" />
<delete file="client.jar" />
<delete file="shared.jar" />
</target>
<target depends="init" name="build-class">
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false">
<src path="src" />
<classpath refid="TP2.classpath" />
</javac>
</target>
<target depends="build-class" name="build-jar">
<jar destfile="shared.jar" basedir="bin" includes="ca/polymtl/inf8480/tp2/shared/**" update="false" />
<jar destfile="loadBalancer.jar" basedir="bin" includes="ca/polymtl/inf8480/tp2/loadBalancer/**" update="false" />
<jar destfile="serverCalcul.jar" basedir="bin" includes="ca/polymtl/inf8480/tp2/serverCalcul/**" update="false" />
<jar destfile="serviceDeNom.jar" basedir="bin" includes="ca/polymtl/inf8480/tp2/serviceDeNom/**" update="false" />
<jar destfile="client.jar" basedir="bin" includes="ca/polymtl/inf8480/tp2/client/**" update="false" />
</target>
</project>