forked from jolie/jolie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
399 lines (357 loc) · 21.7 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<?xml version="1.0" encoding="UTF-8"?>
<project name="Jolie" default="build">
<property name="dist" value="dist"/>
<property name="dist.jolie" value="dist/jolie"/>
<property name="dist.launchers" value="${dist}/launchers"/>
<property name="dist.launchers.windows" value="${dist.launchers}/windows"/>
<property name="dist.launchers.unix" value="${dist.launchers}/unix"/>
<condition property="isWindows" value="true">
<os family="windows" />
</condition>
<condition property="isBaseDirSet" value="true">
<isset property="install.basedir"/>
</condition>
<target name="-load-property-files">
<property name="config.dir" value="buildconfig"/>
<property file="${config.dir}/build.properties"/>
<property file="${config.dir}/config.properties"/>
</target>
<target name="-init" depends="-load-property-files,-create-install-properties-with-basedir,-create-install-properties-without-basedir"/>
<target name="-create-install-properties-with-basedir" if="isBaseDirSet">
<property name="private.install.dir" value="${install.basedir}/${install.dir}"/>
<property name="private.install.launcher_dir" value="${install.basedir}/${install.launcher_dir}"/>
</target>
<target name="-create-install-properties-without-basedir" unless="isBaseDirSet">
<property name="private.install.dir" value="${install.dir}"/>
<property name="private.install.launcher_dir" value="${install.launcher_dir}"/>
</target>
<target name="-delete-old-dir" if="${install.delete_old_dir}">
<delete dir="${private.install.dir}"/>
</target>
<target name="-install-windows-launchers" if="isWindows">
<echo message="Installing Jolie Windows launcher scripts to ${private.install.launcher_dir} ..." />
<copy todir="${private.install.launcher_dir}" overwrite="true">
<fileset dir="${dist.launchers.windows}"/>
</copy>
</target>
<target name="-create-windows-launchers">
<echo message="Creating Jolie Windows launcher script..." />
<echo file="${dist.launchers.windows}/jolie.bat">@echo off
java -ea:jolie... -ea:joliex... -jar %JOLIE_HOME%\jolie.jar -l .\lib\*;%JOLIE_HOME%\lib;%JOLIE_HOME%\javaServices\*;%JOLIE_HOME%\extensions\* -i %JOLIE_HOME%\include %*
</echo>
<echo message="Creating JolieC (Jolie Compiler) Windows launcher script..." />
<echo file="${dist.launchers.windows}/joliec.bat">@echo off
java -ea:jolie... -ea:joliex... -cp %JOLIE_HOME%\jolie.jar;%JOLIE_HOME%\lib\libjolie.jar;%JOLIE_HOME%\tools\joliec.jar jolie.compiler.Main -l %JOLIE_HOME%\lib;%JOLIE_HOME%\javaServices\*;%JOLIE_HOME%\extensions\* -i %JOLIE_HOME%\include %*
</echo>
<echo message="Creating Jolie2Java Windows launcher script..." />
<echo file="${dist.launchers.windows}/jolie2java.bat">@echo off
java -ea:jolie... -ea:joliex... -cp %JOLIE_HOME%\jolie.jar;%JOLIE_HOME%\lib\libjolie.jar;%JOLIE_HOME%\tools\jolie2java.jar;%JOLIE_HOME%\lib\jolie-gwt.jar joliex.java.Jolie2Java -l %JOLIE_HOME%\lib;%JOLIE_HOME%\javaServices\*;%JOLIE_HOME%\extensions\* -i %JOLIE_HOME%\include %*
</echo>
<echo message="Creating Jolie2Surface Windows launcher script..." />
<echo file="${dist.launchers.windows}/jolie2surface.bat">@echo off
java -ea:jolie... -ea:joliex... -cp %JOLIE_HOME%\jolie.jar;%JOLIE_HOME%\lib\libjolie.jar;%JOLIE_HOME%\tools\jolie2surface.jar joliex.surface.GetSurface -l %JOLIE_HOME%\lib;%JOLIE_HOME%\javaServices\*;%JOLIE_HOME%\extensions\* -i %JOLIE_HOME%\include %*
</echo>
<echo message="Creating Jolie2Dummy Windows launcher script..." />
<echo file="${dist.launchers.windows}/jolie2dummy.bat">@echo off
java -ea:jolie... -ea:joliex... -cp %JOLIE_HOME%\jolie.jar;%JOLIE_HOME%\lib\libjolie.jar;%JOLIE_HOME%\tools\jolie2dummy.jar joliex.dummycreator.JolieDummyCreator -l %JOLIE_HOME%\lib;%JOLIE_HOME%\javaServices\*;%JOLIE_HOME%\extensions\* -i %JOLIE_HOME%\include %*
</echo>
<echo message="Creating Jolie2Wsdl Windows launcher script..." />
<echo file="${dist.launchers.windows}/jolie2wsdl.bat">@echo off
java -ea:jolie... -ea:joliex... -cp %JOLIE_HOME%\jolie.jar;%JOLIE_HOME%\lib\libjolie.jar;%JOLIE_HOME%\tools\jolie2wsdl.jar;%JOLIE_HOME%\lib\wsdl4j.jar joliex.wsdl.Jolie2Wsdl -l %JOLIE_HOME%\lib;%JOLIE_HOME%\javaServices\*;%JOLIE_HOME%\extensions\* -i %JOLIE_HOME%\include %*
</echo>
<echo message="Creating JolieDoc (Jolie Documentation tool) Windows launcher script..." />
<echo file="${dist.launchers.windows}/joliedoc.bat">@echo off
java -ea:jolie... -ea:joliex... -cp %JOLIE_HOME%\jolie.jar;%JOLIE_HOME%\lib\libjolie.jar;%JOLIE_HOME%\tools\joliedoc.jar jolie.doc.JolieDoc -l %JOLIE_HOME%\lib;%JOLIE_HOME%\javaServices\*;%JOLIE_HOME%\extensions\* -i %JOLIE_HOME%\include %*
</echo>
<echo message="Creating WSDL2Jolie Windows launcher script..." />
<echo file="${dist.launchers.windows}/wsdl2jolie.bat">@echo off
jolie %JOLIE_HOME%\tools\wsdl2jolie.ol %*
</echo>
</target>
<target name="-install-unix-launchers" unless="isWindows">
<echo message="Installing Jolie Unix launcher scripts to ${private.install.launcher_dir} ..." />
<copy todir="${private.install.launcher_dir}" overwrite="true">
<fileset dir="${dist.launchers.unix}"/>
</copy>
<!-- mode permission is not preserved with copy task. using cp command with preserve mode parameter does not work on mac -->
<fileset id="launcher.files" dir="${dist.launchers.unix}" includes="**"/>
<pathconvert property="launcher.filename" pathsep="," refid="launcher.files">
<map from="${user.dir}/${dist.launchers.unix}/" to=""/>
</pathconvert>
<chmod perm="775">
<fileset dir="${private.install.launcher_dir}" includes="${launcher.filename}"/>
</chmod>
</target>
<target name="-create-unix-launchers" unless="isWindows">
<echo message="Creating Jolie Unix launcher script..." />
<echo file="${dist.launchers.unix}/jolie">#!/bin/sh
java -ea:jolie... -ea:joliex... -Djava.rmi.server.codebase=file:/$JOLIE_HOME/extensions/rmi.jar -cp $JOLIE_HOME/lib/libjolie.jar:$JOLIE_HOME/jolie.jar jolie.Jolie -l ./lib/*:$JOLIE_HOME/lib:$JOLIE_HOME/javaServices/*:$JOLIE_HOME/extensions/* -i $JOLIE_HOME/include "$@"
</echo>
<chmod file="${dist.launchers.unix}/jolie" perm="a+x"/>
<echo message="Creating MetaService Unix launcher script..." />
<echo file="${dist.launchers.unix}/metaservice">#!/bin/sh
METASERVICE=$JOLIE_HOME/include/services/metaservice/metaservice.ol
print_help()
{
echo "Usage: $0 [location [protocol]]"
echo -e "\nExamples of valid locations are:"
echo -e "\tsocket://localhost:9000/ (for a tcp/ip socket)"
echo -e "\tlocalsocket:/tmp/metaservice_socket (for a local socket)"
echo -e "\nExamples of valid protocls are:"
echo -e "\tsodep (a fast and open source binary protocol)"
echo -e "\tsoap (the SOAP protocol, the standard used by Web Services)"
echo -e "\nExample of valid invocations:"
echo -e "\t$0 socket://localhost:9000/"
echo -e "\t$0 socket://localhost:9100/ soap"
echo -e "\nPlease refer to http://www.jolie-lang.org/ for a complete list of supported locations and protocols."
echo -e "MetaService supports all of the locations and protocols provided by the JOLIE language.\n";
}
if [[ $1 = "-h" || $1 = "--help" ]]; then
print_help
elif [[ $# = 0 ]]; then
jolie $METASERVICE
elif [[ $# = 1 ]]; then
jolie -C "MetaServiceLocation=\"$1\"" $METASERVICE
elif [[ $# = 2 ]]; then
jolie -C "MetaServiceLocation=\"$1\"" -C "MetaServiceProtocol=$2" $METASERVICE
else
print_help
fi
</echo>
<chmod file="${dist.launchers.unix}/metaservice" perm="a+x"/>
<echo message="Creating Jolie2Plasma Unix launcher script..." />
<echo file="${dist.launchers.unix}/jolie2plasma">#!/bin/sh
java -cp $JOLIE_HOME/jolie.jar:$JOLIE_HOME/lib/libjolie.jar:$JOLIE_HOME/tools/jolie2plasma.jar joliex.plasma.Jolie2Plasma -l $JOLIE_HOME/lib:$JOLIE_HOME/javaServices/*:$JOLIE_HOME/extensions/* -i $JOLIE_HOME/include "$@"
</echo>
<chmod file="${dist.launchers.unix}/jolie2plasma" perm="a+x"/>
<echo message="Creating Jolie2Wsdl Unix launcher script..." />
<echo file="${dist.launchers.unix}/jolie2wsdl">#!/bin/sh
java -cp $JOLIE_HOME/jolie.jar:$JOLIE_HOME/lib/libjolie.jar:$JOLIE_HOME/tools/jolie2wsdl.jar:$JOLIE_HOME/lib/wsdl4j.jar joliex.wsdl.Jolie2Wsdl -l $JOLIE_HOME/lib:$JOLIE_HOME/javaServices/*:$JOLIE_HOME/extensions/* -i $JOLIE_HOME/include "$@"
</echo>
<chmod file="${dist.launchers.unix}/jolie2wsdl" perm="a+x"/>
<echo message="Creating WSDL2Jolie Unix launcher script..." />
<echo file="${dist.launchers.unix}/wsdl2jolie">#!/bin/sh
jolie $JOLIE_HOME/tools/wsdl2jolie.ol "$@"
</echo>
<chmod file="${dist.launchers.unix}/wsdl2jolie" perm="a+x"/>
<echo message="Creating JolieC (Jolie Compiler) Unix launcher script..." />
<echo file="${dist.launchers.unix}/joliec">#!/bin/sh
java -cp $JOLIE_HOME/jolie.jar:$JOLIE_HOME/lib/libjolie.jar:$JOLIE_HOME/tools/joliec.jar jolie.compiler.Main -l $JOLIE_HOME/lib:$JOLIE_HOME/javaServices/*:$JOLIE_HOME/extensions/* -i $JOLIE_HOME/include "$@"
</echo>
<chmod file="${dist.launchers.unix}/joliec" perm="a+x"/>
<echo message="Creating Jolie2Java Unix launcher script..." />
<echo file="${dist.launchers.unix}/jolie2java">#!/bin/sh
java -cp $JOLIE_HOME/jolie.jar:$JOLIE_HOME/lib/libjolie.jar:$JOLIE_HOME/lib/jolie-gwt.jar:$JOLIE_HOME/tools/jolie2java.jar joliex.java.Jolie2Java -l $JOLIE_HOME/lib:$JOLIE_HOME/javaServices/*:$JOLIE_HOME/extensions/* -i $JOLIE_HOME/include "$@"
</echo>
<chmod file="${dist.launchers.unix}/jolie2java" perm="a+x"/>
<echo message="Creating JolieDoc (Jolie Documentation Tool) Unix launcher script..." />
<echo file="${dist.launchers.unix}/joliedoc">#!/bin/sh
java -cp $JOLIE_HOME/jolie.jar:$JOLIE_HOME/lib/libjolie.jar:$JOLIE_HOME/tools/joliedoc.jar jolie.doc.JolieDoc -l $JOLIE_HOME/lib:$JOLIE_HOME/javaServices/*:$JOLIE_HOME/extensions/* -i $JOLIE_HOME/include "$@"
</echo>
<chmod file="${dist.launchers.unix}/joliedoc" perm="a+x"/>
<echo message="Creating Jolie2Dummy (Jolie Dummy Service Generator Tool) Unix launcher script..." />
<echo file="${dist.launchers.unix}/jolie2dummy">#!/bin/sh
java -cp $JOLIE_HOME/jolie.jar:$JOLIE_HOME/lib/libjolie.jar:$JOLIE_HOME/tools/jolie2dummy.jar joliex.dummycreator.JolieDummyCreator -l $JOLIE_HOME/lib:$JOLIE_HOME/javaServices/*:$JOLIE_HOME/extensions/* -i $JOLIE_HOME/include "$@"
</echo>
<chmod file="${dist.launchers.unix}/jolie2dummy" perm="a+x"/>
<echo message="Creating Jolie2Surface (Jolie Surface Extractor Tool) Unix launcher script..." />
<echo file="${dist.launchers.unix}/jolie2surface">#!/bin/sh
java -cp $JOLIE_HOME/jolie.jar:$JOLIE_HOME/lib/libjolie.jar:$JOLIE_HOME/tools/jolie2surface.jar joliex.surface.GetSurface -l $JOLIE_HOME/lib:$JOLIE_HOME/javaServices/*:$JOLIE_HOME/extensions/* -i $JOLIE_HOME/include "$@"
</echo>
<chmod file="${dist.launchers.unix}/jolie2surface" perm="a+x"/>
</target>
<target name="install" depends="-init,-delete-old-dir">
<mkdir dir="${private.install.dir}"/>
<mkdir dir="${private.install.launcher_dir}"/>
<copy todir="${private.install.dir}">
<fileset dir="${dist.jolie}" />
</copy>
<antcall target="-install-unix-launchers" />
<antcall target="-install-windows-launchers" />
<echo>
Jolie has been installed.
Please make sure that:
- the environment variable JOLIE_HOME is set to ${private.install.dir}
- the directory ${private.install.launcher_dir} is in your environment variable PATH
</echo>
</target>
<target name="dist-install" depends="dist,install" />
<target name="build">
<antcall target="${dist}"/>
</target>
<target name="jar" depends="-init">
<ant antfile="${project.libjolie}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.xsom}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie-xml}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie-js}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie-ssl}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie-gwt}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie-java}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.auto}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.http}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.https}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.soaps}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.javascript}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.btl2cap}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.rmi}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.soap}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.sodep}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jsonrpc}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.sodeps}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.xmlrpc}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.local}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.localsocket}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.metaservice-java}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.monitorJavaServices}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.coreJavaServices}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie2plasma}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie2dummy}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie2surface}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie2wsdl}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.joliec}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.jolie2java}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.joliedoc}/build.xml" inheritall="false" target="jar"/>
<ant antfile="${project.tests.ws-test}/build.xml" inheritall="false" target="jar"/>
</target>
<target name="clean" depends="-init">
<ant antfile="${project.libjolie}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.xsom}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie-xml}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie-js}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie-ssl}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie-gwt}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie-java}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.auto}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.http}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.https}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.javascript}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.btl2cap}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.rmi}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.soap}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jsonrpc}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.sodep}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.sodeps}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.xmlrpc}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.joliedoc}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie2plasma}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie2dummy}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie2surface}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie2wsdl}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.joliec}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.jolie2java}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.localsocket}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.local}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.metaservice-java}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.coreJavaServices}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.monitorJavaServices}/build.xml" inheritall="false" target="clean"/>
<ant antfile="${project.tests.ws-test}/build.xml" inheritall="false" target="clean"/>
</target>
<target name="dist" depends="-init,jar">
<delete dir="${dist}"/>
<copy todir="${dist.jolie}" flatten="true">
<resources>
<file file="${project.jolie}/dist/jolie.jar"/>
</resources>
</copy>
<copy todir="${dist.jolie}/include">
<fileset dir="include"/>
</copy>
<copy todir="${dist.jolie}/lib" flatten="true">
<resources>
<file file="${project.libjolie}/dist/libjolie.jar"/>
<file file="${project.xsom}/dist/xsom.jar"/>
<file file="${project.jolie-xml}/dist/jolie-xml.jar"/>
<file file="${project.jolie-js}/dist/jolie-js.jar"/>
<file file="${project.jolie-ssl}/dist/jolie-ssl.jar"/>
<file file="${project.jolie-gwt}/dist/jolie-gwt.jar"/>
<file file="${project.jolie-java}/dist/jolie-java.jar"/>
<file file="${project.metaservice-java}/dist/metaservice-java.jar"/>
</resources>
</copy>
<copy todir="${dist.jolie}/extensions" flatten="true">
<resources>
<file file="${project.auto}/dist/auto.jar"/>
<file file="${project.http}/dist/http.jar"/>
<file file="${project.https}/dist/https.jar"/>
<file file="${project.soaps}/dist/soaps.jar"/>
<file file="${project.javascript}/dist/javascript.jar"/>
<file file="${project.btl2cap}/dist/btl2cap.jar"/>
<file file="${project.rmi}/dist/rmi.jar"/>
<file file="${project.soap}/dist/soap.jar"/>
<file file="${project.sodep}/dist/sodep.jar"/>
<file file="${project.jsonrpc}/dist/jsonrpc.jar"/>
<file file="${project.sodeps}/dist/sodeps.jar"/>
<file file="${project.xmlrpc}/dist/xmlrpc.jar"/>
<file file="${project.localsocket}/dist/localsocket.jar"/>
<file file="${project.local}/dist/local.jar"/>
</resources>
</copy>
<copy todir="${dist.jolie}/javaServices" flatten="true">
<resources>
<file file="${project.coreJavaServices}/dist/coreJavaServices.jar"/>
<file file="${project.monitorJavaServices}/dist/monitorJavaServices.jar"/>
</resources>
</copy>
<copy todir="${dist.jolie}/tools" flatten="true">
<resources>
<file file="${project.jolie2plasma}/dist/jolie2plasma.jar"/>
<file file="${project.jolie2surface}/dist/jolie2surface.jar"/>
<file file="${project.jolie2dummy}/dist/jolie2dummy.jar"/>
<file file="${project.jolie2wsdl}/dist/jolie2wsdl.jar"/>
<file file="${project.joliec}/dist/joliec.jar"/>
<file file="${project.jolie2java}/dist/jolie2java.jar"/>
<file file="${project.joliedoc}/dist/joliedoc.jar"/>
<file file="${project.wsdl2jolie}/wsdl2jolie.ol"/>
</resources>
</copy>
<copy file="${libs.bluetooth}" tofile="${dist.jolie}/lib/bluetooth.jar"/>
<copy file="${libs.gwt-servlet}" tofile="${dist.jolie}/lib/gwt-servlet.jar"/>
<copy file="${libs.javamail.smtp}" tofile="${dist.jolie}/lib/smtp.jar"/>
<copy file="${libs.javamail.mailapi}" tofile="${dist.jolie}/lib/mailapi.jar"/>
<copy file="${libs.libmatthew.unix}" tofile="${dist.jolie}/lib/unix.jar"/>
<copy file="${libs.relaxngDatatype}" tofile="${dist.jolie}/lib/relaxngDatatype.jar"/>
<copy file="${libs.ini4j}" tofile="${dist.jolie}/lib/ini4j.jar"/>
<copy file="${libs.jaf}" tofile="${dist.jolie}/lib/javax.activation.jar"/>
<copy file="${libs.json}" tofile="${dist.jolie}/lib/json_simple.jar"/>
<copy file="${libs.servletapi5}" tofile="${dist.jolie}/lib/servletapi5.jar"/>
<copy file="${libs.jaxb-core}" tofile="${dist.jolie}/lib/jaxb-core.jar"/>
<copy file="${libs.jaxb-api}" tofile="${dist.jolie}/lib/jaxb-api.jar"/>
<copy file="${libs.jaxp-api}" tofile="${dist.jolie}/lib/jaxp-api.jar"/>
<copy file="${libs.jaxb-impl}" tofile="${dist.jolie}/lib/jaxb-impl.jar"/>
<copy todir="${dist.jolie}/lib/jaxws">
<fileset dir="${libs.jaxws}"/>
</copy>
<copy file="${libs.wsdl4j}" tofile="${dist.jolie}/lib/wsdl4j.jar"/>
<copy file="${libs.smack}" tofile="${dist.jolie}/lib/smack.jar"/>
<copy file="${libs.smackx}" tofile="${dist.jolie}/lib/smackx.jar"/>
<copy file="${libs.commons-lang3}" tofile="${dist.jolie}/lib/commons-lang3.jar"/>
<copy file="${libs.uri-templates}" tofile="${dist.jolie}/lib/uri-templates.jar"/>
<copy file="${libs.c3p0-0.9.1.1}" tofile="${dist.jolie}/lib/c3p0-0.9.1.1.jar"/>
<copy file="${libs.quartz-2.2.1}" tofile="${dist.jolie}/lib/quartz-2.2.1.jar"/>
<copy file="${libs.quartz-jobs-2.2.1}" tofile="${dist.jolie}/lib/quartz-jobs-2.2.1.jar"/>
<copy file="${libs.slf4j-api-1.6.6}" tofile="${dist.jolie}/lib/slf4j-api-1.6.6.jar"/>
<antcall target="-create-unix-launchers" />
<antcall target="-create-windows-launchers" />
</target>
<target name="-test-unix" unless="isWindows">
<exec executable="sh" dir="test">
<env key="JOLIE_HOME" file="dist/jolie" />
<arg value="../dist/launchers/unix/jolie" />
<arg value="test.ol" />
</exec>
</target>
<target name="-test-windows" if="isWindows">
<exec executable="cmd" dir="test">
<env key="JOLIE_HOME" file="dist\jolie" />
<arg value="/c" />
<arg value='..\dist\launchers\windows\jolie.bat --charset "utf-8"' />
<arg value="test.ol" />
</exec>
</target>
<target name="test"><!-- depends="dist"> -->
<antcall target="-test-unix" />
<antcall target="-test-windows" />
</target>
</project>