-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsol_build.xml
85 lines (74 loc) · 3.18 KB
/
sol_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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="UTF-8"?>
<project name="Assignment4" default="build-server" basedir=".">
<!-- The location to be used for class files -->
<property name="build.dir" location="${basedir}/build" />
<!-- The location for source files -->
<property name="src.dir" location="${basedir}/src" />
<!-- The location for jar files -->
<property name="lib.dir" location="${basedir}/lib" />
<property name="gen.dir" location="${basedir}/gen-src" />
<property name="packageServer" value="it.polito.dp2.WF.lab4.gen.server"/>
<property name="packageClient1" value="it.polito.dp2.WF.lab4.gen.client1"/>
<property name="packageClient2" value="it.polito.dp2.WF.lab4.gen.client2"/>
<property name="WSDL" value="${basedir}/wsdl"/>
<property name="WSDL_URL1" value="http://localhost:7071/wfinfo?wsdl"/>
<property name="WSDL_URL2" value="http://localhost:7070/wfcontrol?wsdl"/>
<property name="debug" value="true" />
<property name="debuglevel" value="source,lines,vars" />
<property name="target" value="1.7" />
<property name="source" value="1.7" />
<path id="WF.classpath">
<pathelement location="${lib.dir}/WF.jar"/>
</path>
<path id="sol.classpath">
<pathelement location="${lib.dir}/WF.jar"/>
</path>
<target name="init">
<mkdir dir="${gen.dir}" />
</target>
<target name="generate-artifacts-server" unless="generate-artifacts.notRequired" depends="init">
<exec executable="wsimport">
<arg line="-d '${build.dir}' -p '${packageServer}' -s '${gen.dir}' -keep ${WSDL}/Workflow.wsdl"/>
</exec>
</target>
<target name="generate-artifacts-client1" unless="generate-artifacts.notRequired" depends="init">
<exec executable="wsimport">
<arg line="-d '${build.dir}' -p '${packageClient1}' -s '${gen.dir}' -keep ${WSDL_URL1}"/>
</exec>
</target>
<target name="generate-artifacts-client2" unless="generate-artifacts.notRequired" depends="init">
<exec executable="wsimport">
<arg line="-d '${build.dir}' -p '${packageClient2}' -s '${gen.dir}' -keep ${WSDL_URL2}"/>
</exec>
</target>
<target name="build-server" depends="init, generate-artifacts-server" description="Build the server">
<javac
destdir="${build.dir}"
debug="${debug}"
debuglevel="${debuglevel}"
source="${source}"
target="${target}"
includeantruntime="false">
<src path="${src.dir}" />
<include name="it/polito/dp2/WF/sol4/server/**" />
<include name="it/polito/dp2/WF/lab4/*.java" />
<include name="it/polito/dp2/WF/lab1/*.java" />
<classpath>
<path refid="WF.classpath" />
</classpath>
</javac>
</target>
<target name="build-client" depends="init, generate-artifacts-client1, generate-artifacts-client2" description="Build your clients">
<javac destdir="${build.dir}" debug="${debug}" debuglevel="${debuglevel}" source="${source}" target="${target}" includeantruntime="false">
<src path="${src.dir}"/>
<src path="${gen.dir}"/>
<include name="it/polito/dp2/WF/sol4/client1/**" />
<include name="it/polito/dp2/WF/sol4/client2/**" />
<include name="it/polito/dp2/WF/lab4/*.java" />
<include name="it/polito/dp2/WF/lab1/*.java" />
<classpath>
<path refid="sol.classpath" />
</classpath>
</javac>
</target>
</project>