forked from mtinius/PDTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_release7.0.0.xml
667 lines (624 loc) · 25.1 KB
/
build_release7.0.0.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
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
<?xml version="1.0" encoding="UTF-8"?>
<!--
######################################################################
# (c) 2014 Cisco and/or its affiliates. All rights reserved.
#
# This software is released under the Eclipse Public License. The details can be found in the file LICENSE.
# Any dependent libraries supplied by third parties are provided under their own open source licenses as
# described in their own LICENSE files, generally named .LICENSE.txt. The libraries supplied by Cisco as
# part of the Composite Information Server/Cisco Data Virtualization Server, particularly csadmin-XXXX.jar,
# csarchive-XXXX.jar, csbase-XXXX.jar, csclient-XXXX.jar, cscommon-XXXX.jar, csext-XXXX.jar, csjdbc-XXXX.jar,
# csserverutil-XXXX.jar, csserver-XXXX.jar, cswebapi-XXXX.jar, and customproc-XXXX.jar (where -XXXX is an
# optional version number) are provided as a convenience, but are covered under the licensing for the
# Composite Information Server/Cisco Data Virtualization Server. They cannot be used in any way except
# through a valid license for that product.
#
# This software is released AS-IS!. Support for this software is not covered by standard maintenance agreements with Cisco.
# Any support for this software by Cisco would be covered by paid consulting agreements, and would be billable work.
#
######################################################################
*******************************************************
**** IMPORTANT - PLEASE READ REGARDING COMPILATION ****
*******************************************************
To build the 7.0 jars, the properties java build path must be set for lib7.0.0
1. Right click on the PDTool project, select properties, Select Java Build Path
2. LIBRARIES: click on "Libraries" tab
Select lib6.2 and click the "Remove" button
Click "Add Library" button
Select "User Library" and click Next
Select lib7.0.0 library and click finish
Click OK to
3. Clean the project
4. Execute the build_release7.0.0.xml
-->
<project name="PDTool" default="default" basedir=".">
<!-- change the release number from r1 to r2, etc. if there is more than one build in a day. -->
<property name="ver" value="7.0.0"/>
<property name="relNum" value="r1"/>
<property name="project-name" value="PDTool"/>
<property name="atf" value="AutomatedTestFramework"/>
<property name="src" value="src"/>
<property name="build" location="build"/>
<property name="bin" location="bin"/>
<property name="dist" value="dist"/>
<property name="ext" location="ext"/>
<property name="lib" value="libcommon"/>
<property name="libver" value="lib${ver}"/>
<property name="licenses" location="licenses"/>
<property name="regression" location="regression"/>
<property name="resources" location="resources"/>
<property name="security" location="security"/>
<property name="docs" location="PDToolDocs/docs"/>
<property name="project-PDToolModules" value="PDToolModules"/>
<!-- Release variables -->
<property name="relbase" value="../PDToolRelease"/>
<property file="${relbase}/_general_release/release_date_candidate.properties"/>
<property name="rel" value="${relbase}/${ver}/Release-${ver}-${RELEASE_DT_CANDIDATE}"/>
<property name="pdtool-zip-file-name" value="PDTool-${ver}-${RELEASE_DT_CANDIDATE}.${relNum}.zip"/>
<property name="pdtoolstudio-zip-file-name" value="PDToolStudio-${ver}-${RELEASE_DT_CANDIDATE}.${relNum}.zip"/>
<property name="pdtool-installer-target" value="PDTool${ver}_installer"/>
<property name="pdtoolstudio-installer-target" value="PDToolStudio${ver}_installer"/>
<property name="pdtool-target" value="${pdtool-installer-target}/installer_source/PDTool"/>
<property name="pdtoolstudio-target" value="${pdtoolstudio-installer-target}/installer_source/PDToolStudio"/>
<!-- These environment variables are used to modify the windows batch file for the build environment vs. the release environment. -->
<!-- mtinius-20160502 - No longer relavent. Testing to be done outside of build folder
<property name="BUILD_ENV_DEPLOY_CLASSPATH" value="%PROJECT_HOME%\dist\PDTool%CIS_VERSION%.jar;%PROJECT_HOME%\lib%CIS_VERSION%\*;%PROJECT_HOME%\libcommon\*"/>
<property name="BUILD_ENV_ENDORSED_DIR" value="%PROJECT_HOME%\lib%CIS_VERSION%\endorsed"/>
<property name="RELEASE_ENV_DEPLOY_CLASSPATH" value="%PROJECT_HOME%\dist\*;%PROJECT_HOME%\lib\*"/>
<property name="RELEASE_ENV_ENDORSED_DIR" value="%PROJECT_HOME%\lib\endorsed"/>
-->
<path id="project.class.path">
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${libver}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="ext/ant/lib">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- Check for existence of a PDTool release zip file. Don't continue if it exists because we don't want a final release to be accidently overwritten. -->
<target name="PdtoolZipExist">
<fail message="PDTOOL ZIP FILE ALREADY EXISTS: ${rel}/${pdtool-zip-file-name}">
<condition>
<available file="${rel}/${pdtool-zip-file-name}"/>
</condition>
</fail>
</target>
<!-- Check for existence of a PDToolStudio release zip file. Don't continue if it exists because we don't want a final release to be accidently overwritten. -->
<target name="PdtoolStudioZipExist">
<fail message="PDTOOL STUDIO ZIP FILE ALREADY EXISTS: ${rel}/${pdtoolstudio-zip-file-name}">
<condition>
<available file="${rel}/${pdtoolstudio-zip-file-name}"/>
</condition>
</fail>
</target>
<target name="init" depends="PdtoolZipExist,PdtoolStudioZipExist">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init" description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac source="1.7" target="1.7" srcdir="${src}" destdir="${build}"
debug="true" debuglevel="lines,vars,source">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="dist-jar" depends="clean,compile" description="generate the distribution">
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/${project-name}${ver}.jar" basedir="${build}" />
<delete dir="${build}" />
</target>
<!-- Create the PDTool distribution zip file. -->
<target name="dist" depends="dist-jar">
<!-- Create the release directory if it does not exist -->
<mkdir dir="${rel}"/>
<!-- mtinius-20160502 - No longer relavent. Testing to be done outside of build folder
<!- - Copy ExecutePDTool.bat into the /bin directory so that it can be used for testing. - ->
<copy todir="${bin}">
<fileset dir="${bin}/PDTool">
<include name="ExecutePDTool.bat"/>
</fileset>
</copy>
<!- - Replace @version@ string - ->
<replace
file="${bin}/ExecutePDTool.bat"
token="@version@"
value="${ver}" />
<!- - Replace @DEPLOY_CLASSPATH@ string - ->
<replace
file="${bin}/ExecutePDTool.bat"
token="@DEPLOY_CLASSPATH@"
value="${BUILD_ENV_DEPLOY_CLASSPATH}" />
<!- - Replace @ENDORSED_DIR@ string - ->
<replace
file="${bin}/ExecutePDTool.bat"
token="@ENDORSED_DIR@"
value="${BUILD_ENV_ENDORSED_DIR}" />
-->
<!--
***************************************************************
Create PDTool distribution zip file.
***************************************************************
-->
<!-- Create the PD Tool (command-line / Ant) distribution zip file. -->
<mkdir dir="${pdtool-installer-target}"/>
<mkdir dir="${pdtool-installer-target}/installer"/>
<mkdir dir="${pdtool-installer-target}/installer_source"/>
<mkdir dir="${pdtool-installer-target}/installer_source/VCSClients"/>
<mkdir dir="${pdtool-target}"/>
<mkdir dir="${pdtool-target}/AutomatedTestFramework"/>
<mkdir dir="${pdtool-target}/bin"/>
<mkdir dir="${pdtool-target}/dist"/>
<mkdir dir="${pdtool-target}/ext/ant/bin"/>
<mkdir dir="${pdtool-target}/ext/ant/etc"/>
<mkdir dir="${pdtool-target}/ext/ant/lib"/>
<mkdir dir="${pdtool-target}/lib"/>
<mkdir dir="${pdtool-target}/lib/endorsed"/>
<mkdir dir="${pdtool-target}/licenses"/>
<mkdir dir="${pdtool-target}/resources/ant"/>
<mkdir dir="${pdtool-target}/resources/carfiles"/>
<mkdir dir="${pdtool-target}/resources/config"/>
<mkdir dir="${pdtool-target}/resources/config/${ver}"/>
<mkdir dir="${pdtool-target}/resources/modules"/>
<mkdir dir="${pdtool-target}/resources/modules/generated"/>
<mkdir dir="${pdtool-target}/resources/modules/lab"/>
<mkdir dir="${pdtool-target}/resources/modules/test"/>
<mkdir dir="${pdtool-target}/resources/plans"/>
<mkdir dir="${pdtool-target}/resources/schema"/>
<mkdir dir="${pdtool-target}/resources/vcs_initial"/>
<mkdir dir="${pdtool-target}/security"/>
<!-- Copy the installer files -->
<copy todir="${pdtool-installer-target}/installer">
<fileset dir="installer">
<include name="Cisco PDTool Installer Admin Guide.pdf"/>
<include name="Cisco PDTool Installer User Guide.doc"/>
<include name="Cisco PDTool Installer User Guide.pdf"/>
<include name="LICENSE.txt"/>
<include name="PDTool-*.bat"/>
<include name="replaceText.bat"/>
<include name="SetupPDTool.bat"/>
<include name="cisVersion.template.bat"/>
</fileset>
</copy>
<!-- Rename the cisVersion batch/shell script templates -->
<move file="${pdtool-installer-target}/installer/cisVersion.template.bat" tofile="${pdtool-installer-target}/installer/cisVersion.bat"/>
<!-- Replace @version@ string -->
<replace
file="${pdtool-installer-target}/installer/cisVersion.bat"
token="@version@"
value="${ver}" />
<!-- Copy the Automated Test Framework directory -->
<copy todir="${pdtool-target}/${atf}">
<fileset dir="${atf}">
<include name="**"/>
</fileset>
</copy>
<!-- Copy the VCSClients directory -->
<copy todir="${pdtool-installer-target}/installer_source/VCSClients">
<fileset dir="installer_source/VCSClients">
<include name="**"/>
</fileset>
</copy>
<!-- Copy the release notes in preparation for zipping the distribution. -->
<copy tofile="${pdtool-target}/PDTool-${ver}-${RELEASE_DT_CANDIDATE}.${relNum}.txt">
<fileset dir="${relbase}/_general_release">
<include name="PDTool_release_notes.txt"/>
</fileset>
</copy>
<!-- Copy the generated Schema HTML file and images directory in preparation for zipping the distribution. -->
<copy todir="${pdtool-target}/docs">
<fileset dir="${project-PDToolModules}/docs">
<include name="PDToolModules.xsd.html"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/docs/images">
<fileset dir="${project-PDToolModules}/docs/images">
<include name="*.jpg"/>
</fileset>
</copy>
<!-- copy PDTool/bin directory -->
<copy todir="${pdtool-target}/bin">
<fileset dir="${bin}/PDTool">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
<include name="*.properties"/>
</fileset>
</copy>
<!-- copy PDTool/bin/envBin directory -->
<copy todir="${pdtool-target}/bin/envBin">
<fileset dir="${bin}/PDTool/envBin">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
</fileset>
</copy>
<!-- Rename the cisVersion batch/shell script templates -->
<move file="${pdtool-target}/bin/cisVersion.template.bat" tofile="${pdtool-target}/bin/cisVersion.bat"/>
<move file="${pdtool-target}/bin/cisVersion.template.sh" tofile="${pdtool-target}/bin/cisVersion.sh"/>
<!-- Replace @version@ string -->
<replace
file="${pdtool-target}/bin/cisVersion.bat"
token="@version@"
value="${ver}" />
<replace
file="${pdtool-target}/bin/cisVersion.sh"
token="@version@"
value="${ver}" />
<!-- mtinius-20160502 - No longer relavent. Testing to be done outside of build folder
<!- - Replace @DEPLOY_CLASSPATH@ and @ENDORSED_DIR@ string - ->
<replace
file="${pdtool-target}/bin/ExecutePDTool.bat"
token="@DEPLOY_CLASSPATH@"
value="${RELEASE_ENV_DEPLOY_CLASSPATH}" />
<replace
file="${pdtool-target}/bin/ExecutePDTool.bat"
token="@ENDORSED_DIR@"
value="${RELEASE_ENV_ENDORSED_DIR}" />
-->
<!-- Copy distribution file -->
<copy todir="${pdtool-target}/dist">
<fileset dir="${dist}">
<include name="*${ver}.jar"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/docs">
<fileset dir="${docs}">
<include name="*.pdf"/>
<include name="*.ppt"/>
<include name="*.pptx"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/ext">
<fileset dir="${ext}">
<include name="**"/>
</fileset>
</copy>
<!-- Copy from common lib: /lib -->
<copy todir="${pdtool-target}/lib">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/lib">
<fileset dir="${lib}">
<include name="*.txt"/>
</fileset>
</copy>
<!-- Copy from version lib [lib7.0.0]: /libx.x.x -->
<copy todir="${pdtool-target}/lib">
<fileset dir="${libver}">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/lib">
<fileset dir="${libver}">
<include name="*.txt"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/lib/endorsed">
<fileset dir="${libver}/endorsed">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/lib/endorsed">
<fileset dir="${libver}/endorsed">
<include name="*.txt"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/licenses">
<fileset dir=".">
<include name="LICENSE"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/licenses">
<fileset dir="${licenses}">
<include name="**"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/ant">
<fileset dir="${resources}/ant">
<include name="*.xml"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/carfiles">
<fileset dir="${resources}/carfiles">
<include name="TEST*.car"/>
<include name="Regression*.car"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/config">
<fileset dir="${resources}/config">
<include name="adapter.properties"/>
<include name="application*.xml"/>
<include name="log*.properties"/>
<include name="deploy.properties"/>
<include name="deploy_*.properties"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/config/${ver}">
<fileset dir="${resources}/config/${ver}">
<include name="cis_adapter_config.xml"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/modules">
<fileset dir="${resources}/modules">
<include name="*.xml"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/modules/generated">
<fileset dir="${resources}/modules/generated">
<include name="*.xml"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/modules/lab">
<fileset dir="${resources}/modules/lab">
<include name="*.xml"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/modules/test">
<fileset dir="${resources}/modules/test">
<include name="*.txt"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/plans">
<fileset dir="${resources}/plans">
<include name="*.dp"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/schema">
<fileset dir="${resources}/schema">
<include name="*.xsd"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/resources/vcs_initial">
<fileset dir="${resources}/vcs_initial">
<include name="**"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/security">
<fileset dir="${security}">
<include name="*.jks"/>
</fileset>
</copy>
<copy todir="${pdtool-target}/security">
<fileset dir="${security}">
<include name="java.policy"/>
</fileset>
</copy>
<!-- Create the PDTool zip file -->
<zip destfile="${rel}/${pdtool-zip-file-name}" basedir="." includes="${pdtool-installer-target}/**" />
<!-- Copy the release notes to the target release directory. -->
<copy tofile="${rel}/PDTool-${ver}-${RELEASE_DT_CANDIDATE}.${relNum}.txt">
<fileset dir="${relbase}/_general_release">
<include name="PDTool_release_notes.txt"/>
</fileset>
</copy>
<!-- Delete the staging directory used to create the zip file. -->
<delete dir="${pdtool-installer-target}"/>
<!--
***************************************************************
Create PDTool Studio distribution zip file.
***************************************************************
-->
<!-- Create the PD Tool Studio distribution zip file. -->
<mkdir dir="${pdtoolstudio-installer-target}"/>
<mkdir dir="${pdtoolstudio-installer-target}/installer"/>
<mkdir dir="${pdtoolstudio-installer-target}/installer_source"/>
<mkdir dir="${pdtoolstudio-installer-target}/installer_source/VCSClients"/>
<mkdir dir="${pdtoolstudio-target}"/>
<mkdir dir="${pdtoolstudio-target}/bin"/>
<mkdir dir="${pdtoolstudio-target}/bin_novars"/>
<mkdir dir="${pdtoolstudio-target}/bin_host1"/>
<mkdir dir="${pdtoolstudio-target}/bin_host2"/>
<mkdir dir="${pdtoolstudio-target}/dist"/>
<mkdir dir="${pdtoolstudio-target}/docs/VCS_Studio"/>
<mkdir dir="${pdtoolstudio-target}/lib"/>
<mkdir dir="${pdtoolstudio-target}/lib/endorsed"/>
<mkdir dir="${pdtoolstudio-target}/licenses"/>
<mkdir dir="${pdtoolstudio-target}/logs"/>
<mkdir dir="${pdtoolstudio-target}/resources/config"/>
<mkdir dir="${pdtoolstudio-target}/resources/config/${ver}"/>
<mkdir dir="${pdtoolstudio-target}/resources/vcs_initial"/>
<mkdir dir="${pdtoolstudio-target}/security"/>
<!-- Copy the installer files -->
<copy todir="${pdtoolstudio-installer-target}/installer">
<fileset dir="installer">
<include name="Cisco PDTool Studio Installer Admin Guide.pdf"/>
<include name="Cisco PDTool Studio Installer User Guide.doc"/>
<include name="Cisco PDTool Studio Installer User Guide.pdf"/>
<include name="LICENSE.txt"/>
<include name="PDToolStudio-*.bat"/>
<include name="replaceText.bat"/>
<include name="SetupPDTool.bat"/>
<include name="cisVersion.template.bat"/>
</fileset>
</copy>
<!-- Rename the cisVersion batch/shell script templates -->
<move file="${pdtoolstudio-installer-target}/installer/cisVersion.template.bat" tofile="${pdtoolstudio-installer-target}/installer/cisVersion.bat"/>
<!-- Replace @version@ string -->
<replace
file="${pdtoolstudio-installer-target}/installer/cisVersion.bat"
token="@version@"
value="${ver}" />
<!-- Copy the VCSClients directory -->
<copy todir="${pdtoolstudio-installer-target}/installer_source/VCSClients">
<fileset dir="installer_source/VCSClients">
<include name="**"/>
</fileset>
</copy>
<!-- Copy the release notes in preparation for zipping the distribution. -->
<copy tofile="${pdtoolstudio-target}/PDToolStudio-${ver}-${RELEASE_DT_CANDIDATE}.${relNum}.txt">
<fileset dir="${relbase}/_general_release">
<include name="PDToolStudio_release_notes.txt"/>
</fileset>
</copy>
<!-- Copy distribution file -->
<copy todir="${pdtoolstudio-target}/bin">
<fileset dir="${bin}/PDToolStudio">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
<include name="*.properties"/>
</fileset>
</copy>
<!-- copy PDToolStudio/bin/envBin directory -->
<copy todir="${pdtoolstudio-target}/bin/envBin">
<fileset dir="${bin}/PDToolStudio/envBin">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/bin_novars">
<fileset dir="${bin}/PDToolStudio_bin_novars">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
<include name="*.properties"/>
</fileset>
</copy>
<!-- Rename the cisVersion batch/shell script templates -->
<move file="${pdtoolstudio-target}/bin_novars/cisVersion.template.bat" tofile="${pdtoolstudio-target}/bin_novars/cisVersion.bat"/>
<!-- Replace @version@ string -->
<replace
file="${pdtoolstudio-target}/bin_novars/cisVersion.bat"
token="@version@"
value="${ver}" />
<!-- Copy distribution file -->
<copy todir="${pdtoolstudio-target}/bin_host1">
<fileset dir="${bin}/PDToolStudio_bin_host1">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
<include name="*.properties"/>
</fileset>
</copy>
<!-- copy PDToolStudio/bin_host1/envBin directory -->
<copy todir="${pdtoolstudio-target}/bin_host1/envBin">
<fileset dir="${bin}/PDToolStudio_bin_host1/envBin">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/bin_host2">
<fileset dir="${bin}/PDToolStudio_bin_host2">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
<include name="*.properties"/>
</fileset>
</copy>
<!-- copy PDToolStudio/bin_host2/envBin directory -->
<copy todir="${pdtoolstudio-target}/bin_host2/envBin">
<fileset dir="${bin}/PDToolStudio_bin_host2/envBin">
<include name="*.bat"/>
<include name="*.cmd"/>
<include name="*.sh"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/dist">
<fileset dir="${dist}">
<include name="*${ver}.jar"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/docs">
<fileset dir="${docs}">
<include name="*.ppt"/>
<include name="*.pptx"/>
<include name="VCS_Studio/*"/>
</fileset>
</copy>
<!-- Copy from common lib: /lib -->
<copy todir="${pdtoolstudio-target}/lib">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/lib">
<fileset dir="${lib}">
<include name="*.txt"/>
</fileset>
</copy>
<!-- Copy from version lib [lib7.0.0]: /libx.x.x -->
<copy todir="${pdtoolstudio-target}/lib">
<fileset dir="${libver}">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/lib">
<fileset dir="${libver}">
<include name="*.txt"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/lib/endorsed">
<fileset dir="${libver}/endorsed">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/lib/endorsed">
<fileset dir="${libver}/endorsed">
<include name="*.txt"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/licenses">
<fileset dir=".">
<include name="LICENSE"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/licenses">
<fileset dir="${licenses}">
<include name="**"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/resources/config">
<fileset dir="${resources}/config">
<include name="adapter.properties"/>
<include name="application*.xml"/>
<include name="log*.properties"/>
<include name="studio.properties"/>
<include name="studio_*.properties"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/resources/config/${ver}">
<fileset dir="${resources}/config/${ver}">
<include name="cis_adapter_config.xml"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/resources/vcs_initial">
<fileset dir="${resources}/vcs_initial">
<include name="**"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/security">
<fileset dir="${security}">
<include name="*.jks"/>
</fileset>
</copy>
<copy todir="${pdtoolstudio-target}/security">
<fileset dir="${security}">
<include name="java.policy"/>
</fileset>
</copy>
<!-- Create the PDToolStudio zip file -->
<zip destfile="${rel}/${pdtoolstudio-zip-file-name}" basedir="." includes="${pdtoolstudio-installer-target}/**" />
<!-- Copy the release notes to the target release directory. -->
<copy tofile="${rel}/PDToolStudio-${ver}-${RELEASE_DT_CANDIDATE}.${relNum}.txt">
<fileset dir="${relbase}/_general_release">
<include name="PDToolStudio_release_notes.txt"/>
</fileset>
</copy>
<!-- Delete the staging directory used to create the zip file. -->
<delete dir="${pdtoolstudio-installer-target}"/>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}" />
</target>
<target name="default" depends="clean,dist" description="Create the PDTool and PDToolStudio Distribution"/>
</project>