-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·62 lines (54 loc) · 1.8 KB
/
build.xml
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
56
57
58
59
60
61
62
<?xml version="1.0"?>
<project
name="Assignment3" basedir="."
default="server" xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="build.dir" value="build" />
<property name="src.dir" value="src" />
<property name="lib.dir" value="lib" />
<path id="ivy.lib">
<pathelement location="${basedir}/lib/ivy-2.3.0.jar" />
</path>
<taskdef uri="antlib:fr.jayasoft.ivy.ant" resource="fr/jayasoft/ivy/ant/antlib.xml" classpathref="ivy.lib" />
<target name="init">
<!-- <echo>Creating directories</echo> -->
<mkdir dir="${build.dir}" />
<mkdir dir="${lib.dir}" />
<!-- <echo>Finish creating directories</echo> <echo>Retrieving ivy</echo> -->
<ivy:retrieve />
</target>
<target name="compile" depends="init">
<!-- <echo>Compiling sources</echo> -->
<javac debug="on" destdir="${build.dir}" srcdir="${src.dir}" includeantruntime="false">
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
<!-- <echo>Finish compiling sources</echo> -->
</target>
<target name="server" depends="compile">
<java classname="assignment3.endpoint.SoapPublisher" classpath="${build.dir}" fork="yes">
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</classpath>
</java>
</target>
<target name="client" depends="compile">
<java classname="assignment3.client.SoapClient" classpath="${build.dir}" fork="yes">
<classpath>
<fileset dir="${lib.dir}"><include name="**/*.jar" /></fileset>
</classpath>
</java>
</target>
<target name="clean">
<!-- <echo>Deleting directories</echo> -->
<delete dir="${build.dir}" />
<delete dir="${lib.dir}" />
<delete dir="${xml.output.dir}" />
<delete dir="bin" />
<!-- <echo>Finish deleting directories</echo> -->
</target>
</project>