forked from zkoss/zk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.target.xml
executable file
·589 lines (549 loc) · 22 KB
/
build.target.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
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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
<!-- build.target.xml
Purpose:
The target definitions for build.xml
Description:
The target definitions are put in a separate file for two reasons:
1) it is shared by two projects
2) reduce the complexity of build.xml
History:
Wed Aug 21 18:01:44 2002, Created by tomyeh
Copyright (C) 2002-2006 Potix Corporation. All Rights Reserved.
-->
<!-- ======= -->
<!-- CODEGEN -->
<!-- ======= -->
<target name="codegen.mesg" depends="config.build" if="src.mesg.dir.exist">
<!-- generate Mxx.java (e.g., MCommon.java) -->
<exec executable="bash" dir="." failonerror="true">
<arg value="${bin.dir}/genprop"/>
<arg value="-x"/>
<arg value="${src.mesg.dir}"/>
<arg value="${src.dir}"/>
</exec>
</target>
<!-- ======= -->
<!-- COMPILE -->
<!-- ======= -->
<target name="compile0" depends="codegen.mesg" if="srcpv.dir.exist">
<mkdir dir="${out.dir}"/>
<javac srcdir="${srcpv.dir}" destdir="${out.dir}"
debug="false" optimize="true" encoding="UTF-8"
deprecation="${deprecation}"
target="${target.version}" source="${source.version}">
<compilerarg value="${javac.unchecked}"/>
</javac>
</target>
<target name="compile1" depends="codegen.mesg,compile0" if="src.dir.exist">
<mkdir dir="${out.dir}"/>
<available file="srcdpc" property="srcdpc.dir" value="srcdpc"/>
<property name="srcdpc.dir" value=""/>
<javac srcdir="${src.dir}:${codegen.dir}:${srcdpc.dir}" destdir="${out.dir}"
debug="${debug}" optimize="${optimize}" encoding="UTF-8"
deprecation="${deprecation}"
target="${target.version}" source="${source.version}">
<compilerarg value="${javac.unchecked}"/>
</javac>
</target>
<target name="compile" depends="compile0,compile1" if="compile.required">
</target>
<!-- ====== -->
<!-- DEPLOY -->
<!-- ====== -->
<target name="deploy.lib" depends="config.build" if="deploy.lib.required">
<copy todir="${dist.lib.dir}" preservelastmodified="yes">
<fileset dir="${out.dir}" includes="${xar.name}"/>
</copy>
</target>
<target name="stop.service" depends="config.build"
if="start.service.required">
<exec executable="net" dir="." failonerror="false">
<arg value="stop"/>
<arg value="${start.service}"/>
</exec>
</target>
<target name="start.service" depends="config.build"
if="start.service.required">
<exec executable="net" dir="." failonerror="false">
<arg value="start"/>
<arg value="${start.service}"/>
</exec>
</target>
<target name="deploy.tomcat.files" depends="config.build"
if="deploy.tomcat.required">
<exec executable="bash" dir="." failonerror="true">
<arg value="${bin.dir}/deploy.unzip.war"/>
<arg value="${dist.lib.dir}"/>
<arg value="${tomcat.webapps.dir}"/>
<arg value="${ear.libs}"/>
<arg value="${root.context}/ROOT"/>
</exec>
<copy todir="${tomcat.lib.dir}" preservelastmodified="yes">
<fileset dir="${dist.lib.dir}" includes="${server.libs}"/>
<fileset dir="${dist.lib.ext.dir}" includes="${server.libs}"/>
</copy>
</target>
<target name="deploy.tomcat"
depends="config.build, stop.service, deploy.tomcat.files, start.service"
if="deploy.tomcat.required">
</target>
<target name="deploy.osgi" if="deploy.lib.required">
<move overwrite="true" todir="${dist.osgi.dir}" >
<fileset dir="${dist.osgi.dir}" includes="*.bar" />
<mapper type="glob" from="*.bar" to="*.osgi.jar" />
</move>
</target>
<target name="deploy" depends="deploy.lib, deploy.osgi, deploy.tomcat">
</target>
<!-- ===== -->
<!-- BUILD -->
<!-- ===== -->
<!-- <target name="lessc">
<java classname="CpLess" fork="true">
<arg value="${src.archive.dir}"/>
<arg value="${codegen.archive.dir}"/>
<classpath>
<pathelement path="${src.archive.dir}"/>
<pathelement path="${maindir}/zul/${src.archive.dir}"/>
<pathelement path="${maindir}/zkmax/${src.archive.dir}"/>
<pathelement location="${dist.lib.ext.dir}/zkless.jar"/>
<pathelement location="${dist.lib.ext.dir}/lesscss-engine.jar"/>
<pathelement location="${dist.lib.ext.dir}/js.jar"/>
<pathelement location="${dist.lib.ext.dir}/zkjszips.jar"/>
<pathelement location="${dist.lib.ext.dir}/yuicompressor.jar"/>
<pathelement location="${dist.lib.ext.dir}/commons-logging.jar"/>
</classpath>
</java>
</target> -->
<target name="lessc">
<exec executable="node">
<arg value="${maindir}/bin/node_modules/zkless-engine/lib/CpLess.js" />
<arg value="${src.archive.dir}"/>
<arg value="${codegen.archive.dir}"/>
<arg path="${maindir}/zul/${src.archive.dir}"/>
<arg path="${zkcmldir}/zkmax/${src.archive.dir}"/>
</exec>
<java classname="CompressCss" fork="true">
<arg value="${src.archive.dir}"/>
<arg value="${codegen.archive.dir}"/>
<classpath>
<pathelement path="${src.archive.dir}"/>
<pathelement location="${dist.lib.ext.dir}/zkjszips.jar"/>
<pathelement location="${dist.lib.ext.dir}/yuicompressor.jar"/>
<pathelement location="${dist.lib.ext.dir}/commons-io.jar"/>
<pathelement location="${dist.lib.ext.dir}/CssCompressor.jar"/>
</classpath>
</java>
</target>
<target name="zipjs">
<mkdir dir="${src.archive.dir}"/>
<mkdir dir="${codegen.archive.dir}"/>
<java classname="ZipJS" fork="true">
<arg value="${src.archive.dir}/${zipjs}"/>
<arg value="${codegen.archive.dir}/${zipjs}"/>
<arg value="true"/>
<jvmarg value="-Xss1024k"/>
<classpath>
<pathelement location="${dist.lib.ext.dir}/zkjszips.jar"/>
<pathelement location="${dist.lib.ext.dir}/yuicompressor.jar"/>
<pathelement location="${dist.lib.ext.dir}/commons-io.jar"/>
</classpath>
</java>
<delete>
<fileset dir="${codegen.archive.dir}" includes="**/*.css.dsp.src"/>
</delete>
<java classname="ZipJS" fork="true">
<arg value="${src.archive.dir}/${zipcss}"/>
<arg value="${codegen.archive.dir}/${zipcss}"/>
<jvmarg value="-Xss1024k"/>
<classpath>
<pathelement location="${dist.lib.ext.dir}/zkjszips.jar"/>
<pathelement location="${dist.lib.ext.dir}/yuicompressor.jar"/>
<pathelement location="${dist.lib.ext.dir}/commons-io.jar"/>
</classpath>
</java>
</target>
<target name="build.jar" depends="lessc, zipjs, gentime, compile" if="build.jar.required">
<available file="${srcpv.dir}" property="jar.srcpv.dir" value="${srcpv.dir}"/>
<property name="jar.srcpv.dir" value="${codegen.archive.dir}"/><!-- could be any existent directory -->
<condition property="ignoreZKMaxCodegenFolder" value="NAN" else="zkmax">
<equals arg1="${jar.name}" arg2="zkmax.jar" trim="true"/>
</condition>
<condition property="ignoreZulCodegenFolder" value="zul" else="NAN">
<or>
<equals arg1="${jar.name}" arg2="zkmax.jar" trim="true"/>
<equals arg1="${jar.name}" arg2="zkex.jar" trim="true"/>
</or>
</condition>
<jar jarfile="${out.dir}/${jar.name}" manifest="${manifest.mf}">
<fileset dir="${out.dir}" excludes="${exclude.list}"/>
<fileset dir="${jar.srcpv.dir}" includes="zkPublicCert.store **/**.properties"/>
<fileset dir="${src.archive.dir}" includes="**"
excludes="META-INF/MANIFEST.MF, ${zipjs}/**, ${zipcss}/**"/>
<fileset dir="${src.archive.dir}" includes="${zipjs}/**/**.less" />
<fileset dir="${codegen.archive.dir}" includes="**"
excludes="META-INF/MANIFEST.MF, **/**.less, **/${ignoreZKMaxCodegenFolder}/**, **/${ignoreZutiCodegenFolder}/**, **/${ignoreZulCodegenFolder}/**"/>
</jar>
</target>
<target name="build.jar2" depends="build.jar" if="build.jar2.required">
<condition property="ignoreZKMaxCodegenFolder" value="NAN" else="zkmax">
<equals arg1="${jar.name}" arg2="zkmax.jar" trim="true"/>
</condition>
<condition property="ignoreZutiCodegenFolder" value="NAN" else="zuti">
<equals arg1="${jar.name}" arg2="zuti.jar" trim="true"/>
</condition>
<condition property="ignoreZulCodegenFolder" value="zul" else="NAN">
<or>
<equals arg1="${jar.name}" arg2="zkmax.jar" trim="true"/>
<equals arg1="${jar.name}" arg2="zuti.jar" trim="true"/>
<equals arg1="${jar.name}" arg2="zkex.jar" trim="true"/>
</or>
</condition>
<jar jarfile="${out.dir}/${jar2.name}" manifest="${manifest.mf}">
<fileset dir="${out.dir}" excludes="${exclude.list}"/>
<fileset dir="${jar.srcpv.dir}" includes="zkPublicCert.store **/**.properties"/>
<fileset dir="${src.archive.dir}" includes="**"
excludes="META-INF/MANIFEST.MF, ${zipjs}/**, ${zipcss}/**"/>
<fileset dir="${src.archive.dir}" includes="${zipjs}/**/**.less" />
<fileset dir="${codegen.archive.dir}" includes="**"
excludes="META-INF/MANIFEST.MF, **/*.src.js, **/**.less, **/${ignoreZKMaxCodegenFolder}/**, **/${ignoreZutiCodegenFolder}/**, **/${ignoreZulCodegenFolder}/**"/>
</jar>
</target>
<target name="gentime" depends="config" if="gentime.required">
<exec executable="bash" dir="." failonerror="true">
<arg value="${bin.dir}/gentime"/>
<arg value="${codegen.dir}/${gentime}"/>
</exec>
</target>
<target name="build.war" depends="compile" if="build.war.required">
<mkdir dir="${out.dir}"/>
<property name="src.web.xml" value="${war.dir}/WEB-INF/web.xml"/>
<!-- to let other targets have a chance to override it -->
<war warfile="${out.dir}/${war.name}" webxml="${src.web.xml}"
manifest="${war.dir}/META-INF/MANIFEST.MF">
<fileset dir="${war.dir}" includes="**"
excludes="WEB-INF/web.xml, META-INF/MANIFEST.MF"/>
<lib dir="${dist.lib.ext.dir}" includes="${war.libs}"/>
<lib dir="${dist.lib.dir}" includes="${war.libs}"/>
<classes dir="${out.dir}" includes="**" excludes="${exclude.list}"/>
</war>
</target>
<target name="build.ear" depends="config.build" if="build.ear.required">
<mkdir dir="${out.dir}"/>
<!-- build ear -->
<ear earfile="${out.dir}/${ear.name}" manifest="${manifest.mf}"
appxml="${application.xml}">
<fileset dir="${dist.lib.dir}" includes="${ear.libs}"/>
<fileset dir="${src.archive.dir}"
includes="META-INF/**"
excludes="META-INF/MANIFEST.MF, META-INF/application.xml"/>
</ear>
</target>
<target name="build.osgi1" depends="build.jar" if="build.jar.required">
<mkdir dir="${dist.osgi.dir}"/>
<echo file="${dist.osgi.dir}/${bnd.config.name}" message="Bundle-Version:${project.version}"/>
</target>
<target name="build.osgi2" depends="build.jar2" if="build.jar2.required">
<echo file="${dist.osgi.dir}/${bnd2.config.name}" message="Bundle-Version:${project.version}"/>
</target>
<target name="build.osgi3" depends="build.jar" if="build.zweb">
<echo file="${dist.osgi.dir}/${bnd.config.name}" append="true" message="${line.separator}Import-Package:javax.servlet.annotation;resolution:=optional,*;resolution:=optional"/>
</target>
<target name="build.osgi" depends="build.osgi1, build.osgi2, build.osgi3" if="build.jar.required">
<taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${bnd.lib.jar}"/>
<bndwrap output="${dist.osgi.dir}" definitions="${dist.osgi.dir}">
<fileset dir="${out.dir}" includes="${jar.name}, ${jar2.name}"/>
</bndwrap>
<delete quiet="true">
<fileset dir="${dist.osgi.dir}" includes="${bnd.config.name}, ${bnd2.config.name}"/>
</delete>
</target>
<target name="build"
depends="config.build, build.war, build.jar, build.jar2, build.ear, build.osgi, deploy">
</target>
<!-- ===== -->
<!-- CLEAN -->
<!-- ===== -->
<target name="clean">
<delete quiet="true" dir="${out.dir}"/>
<delete quiet="true" dir="${tmp.dir}"/>
<delete quiet="true" dir="${outv.dir}"/>
<delete quiet="true" dir="${codegen.dir}"/>
<delete quiet="true">
<fileset dir="${dist.lib.dir}" includes="${xar.name}"/>
<!--fileset dir="${tomcat.lib.dir}" includes="${xar.name}"/-->
<fileset dir="${tomcat.webapps.dir}" includes="${xar.name}"/>
<fileset dir="${dist.osgi.dir}" includes="${xar.name}"/>
</delete>
</target>
<!-- ========= -->
<!-- UNIT TEST -->
<!-- ========= -->
<target name="utest" depends="build">
<property name="class.test" value="**/*Test.java"/><!-- test all if not defined -->
<echo message="Test ${class.test}..."/>
<junit fork="yes" haltonerror="${haltonerror}" dir="${out.dir}">
<jvmarg value="-ea"/>
<formatter type="plain" usefile="false"/>
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement location="${out.dir}"/>
</classpath>
<batchtest>
<fileset dir="${src.dir}" includes="${class.test}"/>
</batchtest>
</junit>
</target>
<!-- ============= -->
<!-- MISCELLANEOUS -->
<!-- ============= -->
<target name="javadoc" depends="config.build">
<condition property="jdk8.property" value="-Xdoclint:none" else="">
<not>
<or>
<equals arg1="${ant.java.version}" arg2="1.4"/>
<equals arg1="${ant.java.version}" arg2="1.5"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
<equals arg1="${ant.java.version}" arg2="1.7"/>
</or>
</not>
</condition>
<javadoc
destdir="${working.javadoc.dir}"
sourcepath="${src.dir}:${codegen.dir}"
author="true" protected="true" version="true" use="true"
windowtitle="${project.title} ${project.version} API"
doctitle="${project.title} ${project.version} API"
additionalparam="-breakiterator -source ${source.version} ${jdk8.property}">
<bottom><![CDATA[Copyright © 2005-2011 Potix Corporation. All Rights Reserved.
<a href=\"http://sourceforge.net\"><img src=\"http://sourceforge.net/sflogo.php?group_id=152762\&type=1\" width=\"88\" height=\"31\" border=\"0\" alt=\"SourceForge.net Logo\" /></a><script type=\"text/javascript\">if (location.href.indexOf('zkoss.org') >= 0) {var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));}</script><script type=\"text/javascript\">if (location.href.indexOf('zkoss.org') >= 0) {var pageTracker = _gat._getTracker(\"UA-121377-3\");pageTracker._setDomainName(\"zkoss.org\");pageTracker._initData();pageTracker._trackPageview();}</script>
]]></bottom>
<classpath>
<pathelement path="${javadoc.class.path}"/>
<pathelement path="${dist.lib.dir}/zcommons-el.jar"/>
</classpath>
</javadoc>
<delete quiet="true" dir="${dist.javadoc.dir}"/>
<move todir="${dist.javadoc.dir}">
<fileset dir="${working.javadoc.dir}"/>
</move>
<delete quiet="true" dir="${working.javadoc.dir}"/>
<delete quiet="true" dir="${working.dir}"/>
<!-- copy xml and html to the destination since they might be referenced
by package.html -->
<copy todir="${dist.javadoc.dir}" preservelastmodified="yes">
<fileset dir="${src.dir}"
includes="org/zkoss/**/*.xml, org/zkoss/**/*.html"
excludes="**/package.html" />
</copy>
</target>
<target name="jsdoc">
<!-- generate JavaScript Doc -->
<exec executable="bash" dir="." failonerror="true">
<arg value="${bin.dir}/jsdoc"/>
<arg value="${project.name}"/>
<arg value="${maindir}"/>
</exec>
</target>
<!-- ============= -->
<!-- VERSION CHECK -->
<!-- ============= -->
<target name="check.version.freshly" if="${freshly}">
<echo message="check version files for freshly version."/>
<antcall target="check.version.file">
<param name="dir" value="."/>
<param name="path" value="build.setting"/>
<param name="regexp" value="${version.text.freshly}"/>
<param name="doCheck" value="true"/>
</antcall>
<antcall target="check.version.file">
<param name="dir" value="."/>
<param name="path" value="zk/**/Version.java"/>
<param name="regexp" value="${version.java.release.freshly}"/>
<param name="doCheck" value="true"/>
</antcall>
</target>
<target name="check.version.official" unless="${freshly}" depends="check.version.freshly">
<echo message="check version files for official version."/>
<antcall target="check.version.file">
<param name="dir" value="."/>
<param name="path" value="build.setting"/>
<param name="regexp" value="${version.text}"/>
<param name="doCheck" value="true"/>
</antcall>
<antcall target="check.version.file">
<param name="dir" value="."/>
<param name="path" value="zk/**/Version.java"/>
<param name="regexp" value="${version.java.release}"/>
<param name="doCheck" value="true"/>
</antcall>
</target>
<target name="check.version" depends="check.version.freshly, check.version.official">
<antcall target="check.version.file">
<param name="dir" value="."/>
<param name="path" value="deploy/version"/>
<param name="regexp" value="${version.text}"/>
<param name="doCheck" value="true"/>
</antcall>
<antcall target="check.version.file">
<param name="dir" value="."/>
<param name="path" value="jsdoc/version"/>
<param name="regexp" value="${version.text}"/>
<param name="doCheck" value="true"/>
</antcall>
<!-- app -->
<antcall target="check.version.app">
<param name="package" value="zksandbox"/>
<param name="dir" value="."/>
</antcall>
<antcall target="check.version.app">
<param name="package" value="zksandboxs"/>
<param name="dir" value="."/>
</antcall>
<antcall target="check.version.app">
<param name="package" value="zktest"/>
<param name="dir" value="."/>
</antcall>
<!-- packages -->
<antcall target="check.version.package">
<param name="package" value="zel"/>
<param name="dir" value="."/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zcommon"/>
<param name="dir" value="."/>
<param name="check.xel.config.uid" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zhtml"/>
<param name="dir" value="."/>
<param name="check.lang.uid" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zk"/>
<param name="dir" value="."/>
<param name="check.tld.config.uid" value="true"/>
<param name="check.zk.config.uid" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zkplus"/>
<param name="dir" value="."/>
<param name="check.lang-addon.uid" value="true"/>
<param name="check.lang-addon.zk-version" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zkbind"/>
<param name="dir" value="."/>
<param name="check.lang-addon.uid" value="true"/>
<param name="check.lang-addon.zk-version" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zul"/>
<param name="dir" value="."/>
<param name="check.lang.uid" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zweb"/>
<param name="dir" value="."/>
<param name="check.tld.config.uid" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zkex"/>
<param name="dir" value="${ZKCML}"/>
<param name="check.zk.config.uid" value="true"/>
<param name="check.zk.config.zk-version" value="true"/>
<param name="check.lang-addon.uid" value="true"/>
<param name="check.lang-addon.zk-version" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zkmax"/>
<param name="dir" value="${ZKCML}"/>
<param name="check.xel.config.uid" value="true"/>
<param name="check.zk.config.uid" value="true"/>
<param name="check.lang-addon.uid" value="true"/>
<param name="check.lang-addon.zk-version" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zuti"/>
<param name="dir" value="${ZKCML}"/>
<param name="check.zk.config.uid" value="true"/>
<param name="check.zk.config.zk-version" value="true"/>
<param name="check.lang-addon.uid" value="true"/>
<param name="check.lang-addon.zk-version" value="true"/>
</antcall>
<antcall target="check.version.package">
<param name="package" value="zml"/>
<param name="dir" value="${ZKCML}"/>
<param name="check.zk.config.uid" value="true"/>
<param name="check.lang.uid" value="true"/>
</antcall>
</target>
<target name="check.version.file" if="${doCheck}">
<echo message="checking ${path}"/>
<fileset id="file" dir="${dir}" includes="${path}">
<containsregexp expression="${regexp}"/>
</fileset>
<fail message="error in ${path}.">
<condition>
<resourcecount when="eq" count="0" refid="file" />
</condition>
</fail>
</target>
<target name="check.version.app">
<antcall target="check.version.file">
<param name="path" value="${package}/version"/>
<param name="regexp" value="${version.text}"/>
<param name="doCheck" value="true"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/src/archive/META-INF/MANIFEST.MF"/>
<param name="regexp" value="${version.text}"/>
<param name="doCheck" value="true"/>
</antcall>
</target>
<target name="check.version.package">
<antcall target="check.version.file">
<param name="path" value="${package}/version"/>
<param name="regexp" value="${version.text}"/>
<param name="doCheck" value="true"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/src/archive/META-INF/MANIFEST.MF"/>
<param name="regexp" value="${version.text}"/>
<param name="doCheck" value="true"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/**/Version.java"/>
<param name="regexp" value="${version.java.uid}"/>
<param name="doCheck" value="true"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/src/archive/metainfo/xel/config.xml"/>
<param name="regexp" value="${version.tag.uid}"/>
<param name="doCheck" value="${check.xel.config.uid}"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/src/archive/metainfo/tld/config.xml"/>
<param name="regexp" value="${version.tag.uid}"/>
<param name="doCheck" value="${check.tld.config.uid}"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/src/archive/metainfo/zk/config.xml"/>
<param name="regexp" value="${version.tag.uid}"/>
<param name="doCheck" value="${check.zk.config.uid}"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/src/archive/metainfo/zk/lang.xml"/>
<param name="regexp" value="${version.tag.uid}"/>
<param name="doCheck" value="${check.lang.uid}"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/src/archive/metainfo/zk/lang-addon.xml"/>
<param name="regexp" value="${version.tag.uid}"/>
<param name="doCheck" value="${check.lang-addon.uid}"/>
</antcall>
<antcall target="check.version.file">
<param name="path" value="${package}/src/archive/metainfo/zk/lang-addon.xml"/>
<param name="regexp" value="${version.tag.zk-version}"/>
<param name="doCheck" value="${check.lang-addon.zk-version}"/>
</antcall>
</target>