-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
522 lines (424 loc) · 21.8 KB
/
build.xml
File metadata and controls
522 lines (424 loc) · 21.8 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
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
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
<!-- ======================================================================
description: main build file for pentaho . .
====================================================================== -->
<project name="pentaho-build" default="all" >
<description>Pentaho BI Platform build helper..</description>
<fail message="FATAL: 'project' property not set. Please provide it the ant command, eg: ant -Dproject=myproject -Denv=dev" unless="project"/>
<condition property="config.properties" value="build-${env}.properties" else="build.properties">
<isset property="env"/>
</condition>
<property name="target-dist" value="target-dist"/>
<property name="config.properties.path" value="project-${project}/config/${config.properties}"/>
<property name="config.properties.default.path" value="project-${project}/config/build.properties"/>
<available file="${config.properties.path}" type="file" property="config.properties.exists"/>
<fail message="FATAL: Configuration file not found at ${config.properties.path}" unless="config.properties.exists"/>
<property file="${config.properties.path}"/>
<property file="${config.properties.default.path}"/>
<property name="jre.dir" value="../dummy-jre" />
<condition property="choose.JBoss">
<equals arg1="jboss" arg2="${server.name}"/>
</condition>
<condition property="choose.Tomcat">
<equals arg1="tomcat" arg2="${server.name}"/>
</condition>
<!-- Copy samples? -->
<condition property="copy.samples">
<equals arg1="true" arg2="${copy.pentaho.samples}"/>
</condition>
<!-- Deploy conditions -->
<condition property="deploy.mode.rsync">
<equals arg1="rsync" arg2="${deploy.mode}"/>
</condition>
<!-- ADDED BY DAN KINSLEY, SETTING TO COMPILE MANTLE -->
<condition property="build_mantle">
<equals arg1="yes" arg2="${mantle}"/>
</condition>
<!-- We don't need this anymore, as we'll copy the system and admin dir later on -->
<!--available file="${solution.path}/system/pentaho.xml" type="file" property="pentaho.xml.exists"/>
<fail message="FATAL: pentaho.xml file not found at ${solution.path}/system/pentaho.xml . You sure you didn't forget to copy the system/ and admin/ subdirectories from pentaho-solutions?" unless="pentaho.xml.exists"/-->
<echo>--------------------------------------------------------------</echo>
<echo>--------------------------------------------------------------</echo>
<echo>------ CBF - Community Build Framework -------</echo>
<echo>------ Version: 3.5.2 -------</echo>
<echo>------ Author: Pedro Alves (pedro.alves@webdetails.pt) -------</echo>
<echo>--------------------------------------------------------------</echo>
<echo>--------------------------------------------------------------</echo>
<echo></echo>
<echo> SETTINGS: </echo>
<echo></echo>
<echo> Project: ${project}</echo>
<echo> Environment: ${config.properties}</echo>
<echo> Config File: ${config.properties.path}</echo>
<echo> Server: ${server.name}</echo>
<echo>--------------------------------------------------------------</echo>
<echo>--------------------------------------------------------------</echo>
<target name="init">
<echo>Building project ${project}</echo>
</target>
<target name="copy-init" depends="init" description="Copy project files">
<!-- apply Copy dir -->
<echo>Copying files</echo>
<copy todir="${pentaho.build.dir}" failonerror="true" verbose="false" overwrite="false">
<fileset dir="${pentaho.dir}">
<exclude name="out/**"/><!-- idea build files -->
<exclude name="test-solutions/**"/><!-- idea build files -->
</fileset>
</copy>
<!-- apply patches -->
<echo>Applying patches</echo>
<copy todir="." failonerror="true" verbose="false" overwrite="true" filtering="true">
<fileset dir="project-${project}/patches/">
<include name="**/*.java"/>
<include name="**/*.xml"/>
<include name="**/*.conf"/>
<include name="**/*.txt"/>
<include name="**/*.ktr"/>
<include name="**/*.kjb"/>
<include name="**/*.js"/>
<include name="**/*.properties"/>
</fileset>
<filterset>
<!-- Unlike properties, filters are overwritten, so we invert the order of the files -->
<filtersfile file="${config.properties.default.path}"/>
<filtersfile file="${config.properties.path}"/>
<filter token="BASE_URL" value="${BASE_URL}"/>
<filter token="PUBLISH_PASSWORD" value="${PUBLISH_PASSWORD}"/>
<filter token="HIBERNATE_JDBC_URL" value="${HIBERNATE_JDBC_URL}"/>
<filter token="QUARTZ_JDBC_URL" value="${QUARTZ_JDBC_URL}"/>
<filter token="JDBC_DRIVER" value="${JDBC_DRIVER}"/>
<filter token="FILENAME" value="${FILENAME}"/>
<filter token="HSQL_DIALECT" value="${HSQL_DIALECT}"/>
<filter token="TRUSTED_IP" value="${TRUSTED_IP}"/>
<filter token="TOMCAT_PORT" value="${TOMCAT_PORT}"/>
</filterset>
</copy>
<copy todir="." failonerror="true" verbose="false" overwrite="true">
<fileset dir="project-${project}/patches/">
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
<exclude name="**/*.conf"/>
<exclude name="**/*.txt"/>
<exclude name="**/*.ktr"/>
<exclude name="**/*.kjb"/>
<exclude name="**/*.js"/>
<exclude name="**/*.properties"/>
</fileset>
</copy>
</target>
<target name="stage-ee" depends="init" description="Setup Enterprise Edition staging directory">
<!-- prepare Copy dir -->
<echo>Preparing directory structure</echo>
<delete dir="target-ee" />
<mkdir dir="target-ee/server"/>
<mkdir dir="target-ee/enterprise-console"/>
<mkdir dir="target-ee/solution"/>
<!-- ************
copy files
************ -->
<echo>Applying patches</echo>
<!-- ${target-dist}/server hierarchy -->
<echo> Copying server patches</echo>
<copy todir="target-ee/server" failonerror="true" verbose="false" overwrite="true" filtering="true">
<fileset dir="project-${project}/patches/${target-dist}/server/">
<include name="**/*.java"/>
<include name="**/*.xml"/>
<include name="**/*.conf"/>
<include name="**/*.txt"/>
<include name="**/*.kjb"/>
<include name="**/*.ktr"/>
<include name="**/*.js"/>
<include name="**/*.properties"/>
</fileset>
<filterset>
<!-- Unlike properties, filters are overwritten, so we invert the order of the files -->
<filtersfile file="${config.properties.default.path}"/>
<filtersfile file="${config.properties.path}"/>
</filterset>
</copy>
<copy todir="target-ee/server" failonerror="true" verbose="false" overwrite="true">
<fileset dir="project-${project}/patches/${target-dist}/server/">
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
<exclude name="**/*.conf"/>
<exclude name="**/*.txt"/>
<exclude name="**/*.ktr"/>
<exclude name="**/*.kjb"/>
<exclude name="**/*.js"/>
<exclude name="**/*.properties"/>
</fileset>
</copy>
<!-- ${target-dist}/enterprise-console hierarchy -->
<echo> Copying enterprise-console patches</echo>
<copy todir="target-ee/enterprise-console" failonerror="false" verbose="false" overwrite="true" filtering="true">
<fileset dir="project-${project}/patches/${target-dist}/enterprise-console/">
<include name="**/*.java"/>
<include name="**/*.xml"/>
<include name="**/*.conf"/>
<include name="**/*.txt"/>
<include name="**/*.kjb"/>
<include name="**/*.ktr"/>
<include name="**/*.js"/>
<include name="**/*.properties"/>
</fileset>
<filterset>
<!-- Unlike properties, filters are overwritten, so we invert the order of the files -->
<filtersfile file="${config.properties.default.path}"/>
<filtersfile file="${config.properties.path}"/>
</filterset>
</copy>
<copy todir="target-ee/enterprise-console" failonerror="false" verbose="false" overwrite="true">
<fileset dir="project-${project}/patches/${target-dist}/enterprise-console/">
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
<exclude name="**/*.conf"/>
<exclude name="**/*.txt"/>
<exclude name="**/*.kjb"/>
<exclude name="**/*.ktr"/>
<exclude name="**/*.js"/>
<exclude name="**/*.properties"/>
</fileset>
</copy>
<!-- solution patches hierarchy -->
<echo> Coyping solution patches</echo>
<copy todir="target-ee/solution" failonerror="true" verbose="false" overwrite="true" filtering="true">
<fileset dir="project-${project}/patches/project-${project}/solution">
<include name="**/*.java"/>
<include name="**/*.xml"/>
<include name="**/*.conf"/>
<include name="**/*.txt"/>
<include name="**/*.ktr"/>
<include name="**/*.kjb"/>
<include name="**/*.js"/>
<include name="**/*.properties"/>
</fileset>
<filterset>
<!-- Unlike properties, filters are overwritten, so we invert the order of the files -->
<filtersfile file="${config.properties.default.path}"/>
<filtersfile file="${config.properties.path}"/>
</filterset>
</copy>
<copy todir="target-ee/solution" failonerror="true" verbose="false" overwrite="true">
<fileset dir="project-${project}/patches/project-${project}/solution">
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
<exclude name="**/*.conf"/>
<exclude name="**/*.txt"/>
<exclude name="**/*.ktr"/>
<exclude name="**/*.kjb"/>
<exclude name="**/*.js"/>
<exclude name="**/*.properties"/>
</fileset>
</copy>
<!-- ee-specific patches -->
<echo> copying Enterprise-specific patches</echo>
<copy todir="target-ee" failonerror="true" verbose="false" overwrite="true" filtering="true">
<fileset dir="project-${project}/patches-ee">
<include name="**/*.java"/>
<include name="**/*.xml"/>
<include name="**/*.conf"/>
<include name="**/*.txt"/>
<include name="**/*.kjb"/>
<include name="**/*.ktr"/>
<include name="**/*.js"/>
<include name="**/*.properties"/>
</fileset>
<filterset>
<!-- Unlike properties, filters are overwritten, so we invert the order of the files -->
<filtersfile file="${config.properties.default.path}"/>
<filtersfile file="${config.properties.path}"/>
</filterset>
</copy>
<copy todir="target-ee" failonerror="true" verbose="false" overwrite="true">
<fileset dir="project-${project}/patches-ee">
<exclude name="**/*.java"/>
<exclude name="**/*.xml"/>
<exclude name="**/*.conf"/>
<exclude name="**/*.txt"/>
<exclude name="**/*.kjb"/>
<exclude name="**/*.ktr"/>
<exclude name="**/*.js"/>
<exclude name="**/*.properties"/>
</fileset>
</copy>
<!-- Copy the solution repositories -->
<echo> Copying solution repositories</echo>
<copy todir="target-ee/solution" failonerror="true" verbose="false" overwrite="true">
<fileset dir="${solution.path}">
<exclude name="**system/**" />
<exclude name="**admin/**" />
</fileset>
</copy>
</target>
<target name="dev-setup-common">
<!-- not needed for now -->
<property name="pentaho.proj.dir" value="."/>
</target>
<target name="dev-compile-mantle" if="build_mantle">
<ant dir="${pentaho.build.dir}/mantle" antfile="build.xml" target="clean-all" inheritAll="true"/>
<ant dir="${pentaho.build.dir}/mantle" antfile="build.xml" target="resolve" inheritAll="true"/>
<ant dir="${pentaho.build.dir}/mantle" antfile="build.xml" target="dist" inheritAll="true"/>
<ant dir="${pentaho.build.dir}/mantle" antfile="build.xml" target="publish-local" inheritAll="true"/>
</target>
<target name="dev-setup-tomcat" depends="dev-compile-mantle" if="choose.Tomcat" >
<property name="tomcat.dir" value="${tomcat.path}"/>
<property name="target.server.dir" value="${pentaho.proj.dir}/../${target-dist}/"/>
<property name="target.server.dir.relative" value="${pentaho.proj.dir}/${target-dist}/"/>
<property name="dev.deploy.dir" value="${target.server.dir}/server/webapps/"/>
<!-- properties that will be used on the deploy-war task -->
<property name="target.pentaho.war.dir.relative" value="${target.server.dir.relative}/server/webapps/pentaho"/>
<property name="target.pentaho-style.war.dir.relative" value="${target.server.dir.relative}/server/webapps/pentaho-style"/>
<property name="war.deploy.dir" value="${deploy.dest.server}/server/webapps/"/>
<ant dir="${pentaho.build.dir}/bi-platform-build" antfile="dev_build.xml" target="dev-rebuild" inheritAll="true"/>
<!-- Since version 3, there are operations done in the admin and system folders; We'll copy them to our own solution dir -->
<echo>Pentaho Build finished. Copying file from ${pentaho.build.dir}/tomcat-pci-test/biserver-ce/pentaho-solutions/ to ${solution.path}/</echo>
<delete dir="${solution.path}/system" failonerror="true"/>
<delete dir="${solution.path}/admin" failonerror="true"/>
<copy todir="${solution.path}" failonerror="true" verbose="false">
<fileset dir="${pentaho.build.dir}/tomcat-pci-test/biserver-ce/pentaho-solutions/">
<include name="admin/**"/>
<include name="system/**"/>
</fileset>
</copy>
<!-- Copy solutions, if flag is true -->
<antcall target="copy-samples"/>
<!-- Do our deploy to ${target-dist} -->
<copy todir="${pentaho.proj.dir}/${target-dist}/server" failonerror="true" verbose="false">
<fileset dir="${pentaho.build.dir}/tomcat-pci-test/biserver-ce/tomcat" />
</copy>
<copy todir="${pentaho.proj.dir}/${target-dist}/administration-console" failonerror="true" verbose="false">
<fileset dir="${pentaho.build.dir}/tomcat-pci-test/administration-console" />
</copy>
<copy todir="${pentaho.proj.dir}/${target-dist}/licenses" failonerror="true" verbose="false">
<fileset dir="${pentaho.build.dir}/tomcat-pci-test/biserver-ce/licenses" />
</copy>
<!-- since tomcat replaces some files, we may need to patch again -->
<echo>Applying patches for the second time</echo>
<antcall target="copy-init" />
</target>
<target name="copy-samples" if="copy.samples">
<delete dir="${solution.path}/bi-developers" failonerror="true"/>
<delete dir="${solution.path}/steel-wheels" failonerror="true"/>
<copy todir="${solution.path}" failonerror="true" verbose="false">
<fileset dir="${pentaho.build.dir}/tomcat-pci-test/biserver-ce/pentaho-solutions/">
<include name="steel-wheels/**"/>
<include name="bi-developers/**"/>
</fileset>
</copy>
</target>
<target name="dev-setup-jboss" depends="" if="choose.JBoss" >
<property name="target.server.dir" value="${pentaho.proj.dir}/../target-preconfiguredinstall"/>
<property name="target.server.dir.relative" value="${pentaho.proj.dir}/target-preconfiguredinstall"/>
<property name="dev.deploy.dir" value="${target.server.dir}/server/default/deploy"/>
<!-- properties that will be used on the deploy-war task -->
<property name="target.pentaho.war.dir.relative" value="${target.server.dir.relative}/server/default/deploy/pentaho.war"/>
<property name="target.pentaho-style.war.dir.relative" value="${target.server.dir.relative}/server/default/deploy/pentaho-style.war"/>
<property name="war.deploy.dir" value="${deploy.dest.server}/server/default/deploy/"/>
<fail message="FATAL: Jboss config not available yet"/>
</target>
<target name="dev-setup" description="Compiles and builds the entire project" depends="copy-init,dev-setup-common,dev-setup-jboss,dev-setup-tomcat" >
</target>
<target name="copy-finish" depends="dev-setup" description="Copy target files">
<!-- apply patches - Not sure if I need this -->
</target>
<target name="all" description="Compiles and builds the entire project" depends="copy-finish" />
<!-- Clean targets -->
<target name="clean" description="Cleans the solution" depends="copy-init" >
<delete dir="project-${project}/solution/system/content" failonerror="true"/>
<mkdir dir="project-${project}/solution/system/content"/>
<delete dir="project-${project}/solution/system/tmp" failonerror="true"/>
<mkdir dir="project-${project}/solution/system/tmp"/>
<delete dir="target-preconfiguredinstall/server/default/deploy/pentaho.war" failonerror="false" />
<delete dir="${target-dist}/server/webapps/pentaho" failonerror="false" />
<ant dir="${pentaho.build.dir}" antfile="dev_build.xml" target="clean" inheritAll="true"/>
</target>
<target name="dist-clean" description="Deletes the target preconfigured install dir" >
<delete dir="${pentaho.build.dir}" failonerror="false"/>
<delete dir="${target-dist}" failonerror="false"/>
</target>
<!-- Run targets -->
<target name="run" description="Runs the solution" depends="run-tomcat,run-jboss"/>
<target name="run-jboss" if="choose.JBoss" >
<exec executable="sh" os="Linux,Mac OS,Mac OS X,Solaris,SunOS,MPE/iX,HP-UX,AIX,FreeBSD,Irix,Digital Unix,NetWare 4.11,OSF1,OpenVMS">
<arg line="-c 'chmod +x target-preconfiguredinstall/bin/*.sh'"/>
</exec>
<exec executable="target-preconfiguredinstall/bin/run.sh" os="Linux,Mac OS,Mac OS X,Solaris,SunOS,MPE/iX,HP-UX,AIX,FreeBSD,Irix,Digital Unix,NetWare 4.11,OSF1,OpenVMS">
<arg line="-b 0.0.0.0"/>
<env key="JAVA_OPTS" value="${java.opts}" />
</exec>
<!-- Windows OS Family -->
<exec executable="target-preconfiguredinstall/bin/catalina.bat" os="Windows 95,Windows 98,Windows Me,Windows NT,Windows XP,Windows 2003,Windows CE,Windows Vista">
<arg line="run"/>
<env key="JAVA_OPTS" value="${java.opts}" />
</exec>
</target>
<target name="run-tomcat" if="choose.Tomcat" >
<!-- Linux and Mac -->
<exec executable="sh" os="Linux,Mac OS,Mac OS X,Solaris,SunOS,MPE/iX,HP-UX,AIX,FreeBSD,Irix,Digital Unix,NetWare 4.11,OSF1,OpenVMS">
<arg line="-c 'chmod +x ${target-dist}/server/bin/*.sh'"/>
</exec>
<exec executable="${target-dist}/server/bin/catalina.sh" os="Linux,Mac OS,Mac OS X,Solaris,SunOS,MPE/iX,HP-UX,AIX,FreeBSD,Irix,Digital Unix,NetWare 4.11,OSF1,OpenVMS">
<arg line="run"/>
<env key="JAVA_OPTS" value="${java.opts}" />
<env key="CATALINA_HOME" value="${target-dist}/server" />
</exec>
<!-- Windows OS Family -->
<exec executable="${target-dist}/server/bin/catalina.bat" os="Windows 95,Windows 98,Windows Me,Windows NT,Windows XP,Windows 2003,Windows CE,Windows Vista">
<arg line="run"/>
<env key="JAVA_OPTS" value="${java.opts}" />
<env key="CATALINA_HOME" value="${target-dist}/server" />
</exec>
</target>
<!-- Deploy targets -->
<target name="deploy-repository" description="Deploys the solution repository to the specified destination" depends="deploy-repository-rsync" />
<target name="deploy-repository-rsync" if="deploy.mode.rsync" depends="all">
<fail message="FATAL: Solution destination directory not specified (deploy.dest.solution)" unless="deploy.dest.solution"/>
<exec executable="rsync">
<arg line=" --exclude=system --exclude=admin ${deploy.args} ${solution.path}/ ${deploy.dest.solution}/" />
</exec>
</target>
<target name="deploy-solution" description="Deploys the solution to the specified destination" depends="deploy-solution-rsync" />
<target name="deploy-solution-rsync" if="deploy.mode.rsync" depends="all">
<fail message="FATAL: Solution destination directory not specified (deploy.dest.solution)" unless="deploy.dest.solution"/>
<exec executable="rsync">
<arg line="${deploy.args} ${solution.path}/ ${deploy.dest.solution}/" />
</exec>
</target>
<target name="deploy-server" description="Deploys the entire server to the specified destination" depends="deploy-server-rsync" />
<target name="deploy-server-rsync" if="deploy.mode.rsync" depends="all">
<fail message="FATAL: Server destination directory not specified (deploy.dest.server)" unless="deploy.dest.server"/>
<exec executable="rsync">
<arg line="${deploy.args} ${target.server.dir.relative}/ ${deploy.dest.server}/" />
</exec>
</target>
<target name="deploy-war" description="Deploys the pentaho.war and pentaho-style.war to the specified destination" depends="deploy-war-rsync" />
<target name="deploy-war-rsync" if="deploy.mode.rsync" depends="all">
<fail message="FATAL: Server destination directory not specified (deploy.dest.server)" unless="deploy.dest.server"/>
<echo>Deploying pentaho.war</echo>
<exec executable="rsync">
<arg line="${deploy.args} ${target.pentaho.war.dir.relative} ${war.deploy.dir}/" />
</exec>
<echo>Deploying pentaho-style.war</echo>
<exec executable="rsync">
<arg line="${deploy.args} ${target.pentaho-style.war.dir.relative} ${war.deploy.dir}/" />
</exec>
</target>
<target name="deploy-all" description="Deploys both the solution and the server to the specified destinations" depends="all, deploy-solution,deploy-server"/>
<target name="deploy-ee-solution" description="Deploys the solution to the specified destination" depends="stage-ee,deploy-ee-solution-rsync" />
<target name="deploy-ee-solution-rsync" if="deploy.mode.rsync">
<fail message="FATAL: Solution destination directory not specified (deploy.dest.solution)" unless="deploy.dest.solution"/>
<exec executable="rsync">
<arg line="${deploy.args} target-ee/solution/ ${deploy.dest.solution}" />
</exec>
</target>
<target name="deploy-ee-server" description="Deploys the entire server to the specified destination" depends="stage-ee,deploy-ee-server-rsync" />
<target name="deploy-ee-server-rsync" if="deploy.mode.rsync">
<fail message="FATAL: Server destination directory not specified (deploy.dest.server)" unless="deploy.dest.server"/>
<exec executable="rsync">
<arg line="${deploy.args} target-ee/server/ ${deploy.dest.server}/tomcat" />
</exec>
<exec executable="rsync">
<arg line="${deploy.args} target-ee/enterprise-console/ ${deploy.dest.server}/../enterprise-console/" />
</exec>
</target>
<target name="deploy-ee-all" description="Deploys both the solution and the server to the specified destinations" depends="stage-ee,deploy-ee-solution,deploy-ee-server"/>
</project>