forked from Fabrik/fabrik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
582 lines (496 loc) · 26.5 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
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="fabrik3-package" default="fabrik.all">
<property file="build_config.ini" />
<property file="build_config_private.ini" />
<import file="./build_updateserver_xml.xml"/>
<import file="./build_js.xml" />
<property name="update_source" value="${basedir}/administrator/components/com_fabrik/update/fabrik/" />
<property name="update_dir" value="${cfg.destdir}/admin/update/fabrik/" />
<property name="package_list" value="${update_dir}/package_list.xml" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>
<target name="fabrik.all">
<input message="JS Lint and compress?" addproperty="jslint.do" validargs="y,n" defaultvalue="y" />
<if>
<equals arg1="${jslint.do}" arg2="y" />
<then>
<antcall target="js" />
</then>
</if>
<input message="Component version:" addproperty="version" />
<foreach list="element,cron,form,list,validationrule,visualization" param="folder" target="updater.testfiles" inheritall="true" inheritrefs="true"/>
<echo message=" destination dir = ${cfg.destdir}, git files ${basedir}" />
<antcall target="fabrik.refreshfiles" />
<antcall target="fabrik.start_packagelist" />
<antcall target="fabrik.component" />
<antcall target="fabrik.modules" />
<antcall target="fabrik.package.sink.start" />
<antcall target="fabrik.package.start" />
<antcall target="fabrik.plugins" />
<antcall target="fabrik.fabrikplugins" />
<antcall target="fabrik.package.sink.end" />
<antcall target="fabrik.package.end" />
<antcall target="updater.ftp" />
<echo message="Fabrik build ${version} complete" />
</target>
<target name="fabrik.start_packagelist">
<xmltask dest="${package_list}">
<insert path="/" >
<![CDATA[<extensionset name="Fabrik" description="Fabrik">
</extensionset>]]>
</insert>
</xmltask>
</target>
<target name="fabrik.fabrikplugins">
<mkdir dir="${cfg.destdir}/plugins/fabrik_element/" />
<mkdir dir="${cfg.destdir}/plugins/fabrik_cron/" />
<mkdir dir="${cfg.destdir}/plugins/fabrik_form/" />
<mkdir dir="${cfg.destdir}/plugins/fabrik_list/" />
<!-- fabrik plug-ins -->
<foreach list="element,cron,form,list,validationrule,visualization" param="folder" target="fabrik.zipfabrikpluginfolder" inheritall="true" inheritrefs="true"/>
</target>
<target name="fabrik.zipfabrikpluginfolder">
<dirset id="dist.contents" dir="${basedir}/plugins/fabrik_${folder}/" includes="*"/>
<property name="prop.dist.contents" refid="dist.contents"/>
<echo>${prop.dist.contents}</echo>
<foreach list="${prop.dist.contents}" delimiter=";" param="plugin" target="fabrik.zipfabrikpluginfolder.plugin" inheritall="true" inheritrefs="true"/>
</target>
<target name="fabrik.zipfabrikpluginfolder.plugin">
<xmltask source="${package_list}" dest="${package_list}">
<insert path="/extensionset">
<![CDATA[<extension name="${update.product_name} ${folder} - ${plugin}" element="${plugin}" type="plugin" folder="${update.product_code}_${folder}" version="${version}" detailsurl="http://fabrikar.com/update/fabrik/plg_${folder}_${plugin}.xml" />]]>
</insert>
</xmltask>
<delete file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_${folder}_${plugin}_${version}.zip" />
<zip destfile="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_${folder}_${plugin}_${version}.zip" basedir="${cfg.destdir}/plugins/fabrik_${folder}/${plugin}" />
</target>
<target name="fabrik.plugins">
<delete file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_${version}.zip" />
<zip destfile="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_${version}.zip">
<zipfileset dir="${cfg.destdir}/plugins/content" />
</zip>
<delete file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_search_${version}.zip" />
<zip destfile="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_search_${version}.zip" basedir="${cfg.destdir}/plugins/search" />
<delete file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_schedule_${version}.zip" />
<zip destfile="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_schedule_${version}.zip" basedir="${cfg.destdir}/plugins/system/fabrikcron" />
<delete file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_system_fabrik_${version}.zip" />
<zip destfile="${cfg.destdir}/pkg_fabrik_sink/packages/plg_system_fabrik_${version}.zip" basedir="${cfg.destdir}/plugins/system/fabrik" />
<delete file="${cfg.destdir}/pkg_fabrik/packages/plg_system_fabrik_${version}.zip" />
<zip destfile="${cfg.destdir}/pkg_fabrik/packages/plg_system_fabrik_${version}.zip" basedir="${cfg.destdir}/plugins/system/fabrik" />
<xmltask source="${update_dir}/plg_fabrik.xml" dest="${update_dir}/plg_fabrik.xml">
<remove path="/updates/update[version='${version}']" />
</xmltask>
<xmltask source="${update_dir}/plg_fabrik.xml" dest="${update_dir}/plg_fabrik.xml">
<insert path="updates">
<![CDATA[<update>
<name>Fabrik Content Plugin</name>
<description>Fabrik Content Plugin</description>
<type>plugin</type>
<element>fabrik</element>
<folder>content</folder>
<version>${version}</version>
<downloads>
<downloadurl format="zip" type="full">${update.download_folder}/plg_fabrik_${version}.zip</downloadurl>
</downloads>
<maintainer>${update.maintainer}</maintainer>
<maintainerurl>${update.url}</maintainerurl>
<targetplatform name="${update.target_platform}" version="${update.target_platform_version}"/>
</update>
]]>
</insert>
</xmltask>
<xmltask source="${update_dir}/plg_search_fabrik.xml" dest="${update_dir}/plg_search_fabrik.xml">
<remove path="/updates/update[version='${version}']" />
</xmltask>
<xmltask source="${update_dir}/plg_search_fabrik.xml" dest="${update_dir}/plg_search_fabrik.xml">
<insert path="updates">
<![CDATA[<update>
<name>Fabrik Search Plugin</name>
<description>Fabrik Search Plugin</description>
<type>plugin</type>
<element>fabrik</element>
<folder>search</folder>
<version>${version}</version>
<downloads>
<downloadurl format="zip" type="full">${update.download_folder}/plg_fabrik_search_${version}.zip</downloadurl>
</downloads>
<maintainer>${update.maintainer}</maintainer>
<maintainerurl>${update.url}</maintainerurl>
<targetplatform name="${update.target_platform}" version="${update.target_platform_version}"/>
</update>
]]>
</insert>
</xmltask>
<xmltask source="${update_dir}/plg_system_fabrikcron.xml" dest="${update_dir}/plg_system_fabrikcron.xml">
<remove path="/updates/update[version='${version}']" />
</xmltask>
<xmltask source="${update_dir}/plg_system_fabrikcron.xml" dest="${update_dir}/plg_system_fabrikcron.xml">
<insert path="updates">
<![CDATA[<update>
<name>Fabrik Scheduled Tasks Plugin</name>
<description>Fabrik Scheduled Tasks Plugin</description>
<type>plugin</type>
<element>fabrikcron</element>
<folder>system</folder>
<version>${version}</version>
<downloads>
<downloadurl format="zip" type="full">${update.download_folder}/plg_fabrik_schedule_${version}.zip</downloadurl>
</downloads>
<maintainer>${update.maintainer}</maintainer>
<maintainerurl>${update.url}</maintainerurl>
<targetplatform name="${update.target_platform}" version="${update.target_platform_version}"/>
</update>
]]>
</insert>
</xmltask>
<xmltask source="${update_dir}/plg_system_fabrik.xml" dest="${update_dir}/plg_system_fabrik.xml">
<remove path="/updates/update[version='${version}']" />
</xmltask>
<xmltask source="${update_dir}/plg_system_fabrik.xml" dest="${update_dir}/plg_system_fabrik.xml">
<insert path="updates">
<![CDATA[<update>
<name>Fabrik System Plugin</name>
<description>Fabrik System Plugin</description>
<type>plugin</type>
<element>fabrik</element>
<folder>system</folder>
<version>${version}</version>
<downloads>
<downloadurl format="zip" type="full">${update.download_folder}/plg_system_fabrik_${version}.zip</downloadurl>
</downloads>
<maintainer>${update.maintainer}</maintainer>
<maintainerurl>${update.url}</maintainerurl>
<targetplatform name="${update.target_platform}" version="${update.target_platform_version}"/>
</update>
]]>
</insert>
</xmltask>
<xmltask source="${package_list}" dest="${package_list}">
<insert path="/extensionset">
<![CDATA[<extension name="Fabrik" element="fabrik" type="plugin" folder="content" version="${version}" detailsurl="http://fabrikar.com/update/fabrik/plg_fabrik.xml" />
<extension name="Search - Fabrik" element="fabrik" type="plugin" folder="search" version="${version}" detailsurl="http://fabrikar.com/update/fabrik/plg_search_fabrik.xml" />
<extension name="System - FabrikSheduled Tasks" element="fabrikcron" type="plugin" folder="system" version="${version}" detailsurl="http://fabrikar.com/update/fabrik/plg_system_fabrikcron.xml" />
<extension name="System - Fabrik" element="fabrik" type="plugin" folder="system" version="${version}" detailsurl="http://fabrikar.com/update/fabrik/plg_system_fabrik.xml" />
]]>
</insert>
</xmltask>
</target>
<target name="fabrik.modules">
<zip destfile="${cfg.destdir}/mod_fabrik_form_${version}.zip" basedir="${cfg.destdir}/modules/mod_fabrik_form" />
<zip destfile="${cfg.destdir}/mod_fabrik_list_${version}.zip" basedir="${cfg.destdir}/modules/mod_fabrik_list" />
<xmltask source="${update_dir}/mod_fabrik_list.xml" dest="${update_dir}/mod_fabrik_list.xml">
<remove path="/updates/update[version='${version}']" />
</xmltask>
<xmltask source="${update_dir}/mod_fabrik_list.xml" dest="${update_dir}/mod_fabrik_list.xml">
<insert path="updates">
<![CDATA[<update>
<name>Fabrik List Module</name>
<description>Fabrik List Module</description>
<element>mod_fabrik_list</element>
<type>module</type>
<version>${version}</version>
<downloads>
<downloadurl format="zip" type="full">${update.download_folder}/mod_fabrik_list_${version}.zip</downloadurl>
</downloads>
<maintainer>${update.maintainer}</maintainer>
<maintainerurl>${update.url}</maintainerurl>
<targetplatform name="${update.target_platform}" version="${update.target_platform_version}"/>
</update>]]>
</insert>
</xmltask>
<xmltask source="${update_dir}/mod_fabrik_form.xml" dest="${update_dir}/mod_fabrik_form.xml">
<remove path="/updates/update[version='${version}']" />
</xmltask>
<xmltask source="${update_dir}/mod_fabrik_form.xml" dest="${update_dir}/mod_fabrik_form.xml">
<insert path="updates">
<![CDATA[<update>
<name>Fabrik Form Module</name>
<description>Fabrik Form Module</description>
<element>mod_fabrik_form</element>
<type>module</type>
<version>${version}</version>
<downloads>
<downloadurl format="zip" type="full">${update.download_folder}/mod_fabrik_form_${version}.zip</downloadurl>
</downloads>
<maintainer>${update.maintainer}</maintainer>
<maintainerurl>${update.url}</maintainerurl>
<targetplatform name="${update.target_platform}" version="${update.target_platform_version}"/>
</update>]]>
</insert>
</xmltask>
<xmltask source="${package_list}" dest="${package_list}">
<insert path="/extensionset">
<![CDATA[<extension name="Fabrik form" element="mod_fabrik_form" type="module" folder="" version="${version}" detailsurl="http://fabrikar.com/update/fabrik/mod_fabrik_form.xml" />]]>
<![CDATA[<extension name="Fabrik list" element="mod_fabrik_list" type="module" folder="" version="${version}" detailsurl="http://fabrikar.com/update/fabrik/mod_fabrik_list.xml" />]]>
</insert>
</xmltask>
</target>
<target name="fabrik.prepXML">
<if>
<available file="${update_dir}/${file}" />
<then>
<xmltask source="${update_dir}/${file}" dest="${update_dir}/${file}">
<remove path="/updates/update[version='${version}']" />
</xmltask>
</then>
<else>
<xmltask dest="${update_dir}/${file}">
<insert path="/" >
<![CDATA[<updates>
</updates>]]>
</insert>
</xmltask>
</else>
</if>
</target>
<target name="fabrik.component">
<!-- create a zip ( note you cant use as the file paths are more than 100 chars and the Joomla archieve class falls over) of the plugins dir for unpacking upon installation -->
<move file="${cfg.destdir}/admin/fabrik.xml" todir="${cfg.destdir}" />
<move file="${cfg.destdir}/admin/com_fabrik.manifest.class.php" todir="${cfg.destdir}" />
<!-- need to move the package.xml file out of the component to avoid nasties -->
<move file="${cfg.destdir}/admin/pkg_fabrik.xml" todir="${cfg.destdir}" />
<move file="${cfg.destdir}/admin/pkg_fabrik_sink.xml" todir="${cfg.destdir}" />
<zip destfile="${cfg.destdir}/com_fabrik_${version}.zip" basedir="${cfg.destdir}" excludes="modules/**, plugins/**, pkg_fabrik_sink/** pkg_fabrik.xml
/components/com_fabrik/sef_ext/**" />
<foreach list="com_fabrik.xml,mod_fabrik_list.xml,mod_fabrik_form.xml,plg_fabrik.xml,plg_search_fabrik.xml,plg_system_fabrikcron.xml,plg_system_fabrik.xml" param="file" target="fabrik.prepXML" inheritall="true" inheritrefs="true"/>
<xmltask source="${update_dir}/com_fabrik.xml" dest="${update_dir}/com_fabrik.xml">
<insert path="updates">
<![CDATA[<update>
<name>${update.product_name}</name>
<description>${update.product_name} Component</description>
<element>com_fabrik</element>
<type>component</type>
<version>${version}</version>
<downloads>
<downloadurl format="zip" type="full">${update.download_folder}/com_fabrik_${version}.zip</downloadurl>
</downloads>
<maintainer>${update.maintainer}</maintainer>
<maintainerurl>${update.url}</maintainerurl>
<targetplatform name="${update.target_platform}" version="${update.target_platform_version}"/>
</update>]]>
</insert>
</xmltask>
<xmltask source="${package_list}" dest="${package_list}">
<insert path="/extensionset">
<![CDATA[<extension name="fabrik" element="com_fabrik" type="component" folder="" version="${version}" client_id="administrator" detailsurl="http://fabrikar.com/update/fabrik/com_fabrik.xml" />]]>
</insert>
</xmltask>
</target>
<!-- package with the basics installed -->
<target name="fabrik.package.start">
<mkdir dir="${cfg.destdir}/pkg_fabrik/" />
<mkdir dir="${cfg.destdir}/pkg_fabrik/packages" />
<copy file="${cfg.destdir}/pkg_fabrik.xml" todir="${cfg.destdir}/pkg_fabrik" />
<copy file="${cfg.destdir}/com_fabrik_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
<copy file="${cfg.destdir}/mod_fabrik_form_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
<copy file="${cfg.destdir}/mod_fabrik_list_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
</target>
<target name="fabrik.plugin.cron.zip.copy">
<copy file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_cron_${plugin}_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
</target>
<target name="fabrik.plugin.element.zip.copy">
<copy file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_element_${plugin}_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
</target>
<target name="fabrik.plugin.form.zip.copy">
<copy file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_form_${plugin}_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
</target>
<target name="fabrik.plugin.list.zip.copy">
<copy file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_list_${plugin}_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
</target>
<target name="fabrik.plugin.validation.zip.copy">
<copy file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_validationrule_${plugin}_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
</target>
<target name="fabrik.plugin.visualization.zip.copy">
<copy file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_visualization_${plugin}_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
</target>
<target name="fabrik.package.end">
<var name="updatelist" value=""/>
<foreach list="email,php" param="plugin" target="fabrik.plugin.cron.zip.copy" inheritall="true" inheritrefs="true"/>
<echo>${updatelist}</echo>
<foreach list="button,checkbox,databasejoin,date,display,dropdown,field,fileupload,googlemap,image,internalid,link,radiobutton,textarea,user" param="plugin" target="fabrik.plugin.element.zip.copy" inheritall="true" inheritrefs="true"/>
<foreach list="email,php,receipt,redirect" target="fabrik.plugin.form.zip.copy" param="plugin" inheritall="true" inheritrefs="true"/>
<foreach list="copy,php" target="fabrik.plugin.list.zip.copy" inheritall="true" param="plugin" inheritrefs="true"/>
<foreach list="isgreaterorlessthan,notempty,php,regex" target="fabrik.plugin.validation.zip.copy" param="plugin" inheritall="true" inheritrefs="true"/>
<foreach list="calendar,chart,googlemap,media,slideshow" target="fabrik.plugin.visualization.zip.copy" param="plugin" inheritall="true" inheritrefs="true"/>
<copy file="${cfg.destdir}/pkg_fabrik_sink/packages/plg_fabrik_${version}.zip" todir="${cfg.destdir}/pkg_fabrik/packages/" />
<zip destfile="${cfg.destdir}/pkg_fabrik_${version}.zip" basedir="${cfg.destdir}/pkg_fabrik"/>
</target>
<!-- package which will install everything -->
<target name="fabrik.package.sink.start">
<mkdir dir="${cfg.destdir}/pkg_fabrik_sink/" />
<mkdir dir="${cfg.destdir}/pkg_fabrik_sink/packages" />
<replace file="${cfg.destdir}/pkg_fabrik_sink.xml" token="{version}" value="${version}"/>
<copy file="${cfg.destdir}/pkg_fabrik_sink.xml" todir="${cfg.destdir}/pkg_fabrik_sink" />
<copy file="${cfg.destdir}/com_fabrik_${version}.zip" todir="${cfg.destdir}/pkg_fabrik_sink/packages/" />
<copy file="${cfg.destdir}/mod_fabrik_form_${version}.zip" todir="${cfg.destdir}/pkg_fabrik_sink/packages/" />
<copy file="${cfg.destdir}/mod_fabrik_list_${version}.zip" todir="${cfg.destdir}/pkg_fabrik_sink/packages/" />
<copy file="${cfg.destdir}/mod_fabrik_list_${version}.zip" todir="${cfg.destdir}/pkg_fabrik_sink/packages/" />
</target>
<target name="fabrik.package.sink.end">
<zip destfile="${cfg.destdir}/pkg_fabrik_sink_${version}.zip" basedir="${cfg.destdir}/pkg_fabrik_sink" />
</target>
<target name="fabrik.refreshfiles">
<delete dir="${cfg.destdir}" />
<mkdir dir="${cfg.destdir}/admin/" />
<copy todir="${cfg.destdir}/admin/">
<fileset dir="${basedir}/administrator/components/com_fabrik/">
<exclude name="**/*.zip" />
</fileset>
</copy>
<mkdir dir="${cfg.destdir}/site/" />
<copy todir="${cfg.destdir}/site/">
<fileset dir="${basedir}/components/com_fabrik/">
<exclude name="**/*.zip" />
<exclude name="**/views/form/tmpl/**" />
<exclude name="**/views/list/tmpl/**" />
</fileset>
</copy>
<!-- explicitly include list templates -->
<copy file="${basedir}/components/com_fabrik/views/list/tmpl/default.xml" todir="${cfg.destdir}/site/views/list/tmpl/" />
<copy file="${basedir}/components/com_fabrik/views/list/tmpl/_advancedsearch.php" todir="${cfg.destdir}/site/views/list/tmpl/" />
<mkdir dir="${cfg.destdir}/site/views/list/tmpl/admin" />
<copy todir="${cfg.destdir}/site/views/list/tmpl/admin">
<fileset dir="${basedir}/components/com_fabrik/views/list/tmpl/admin" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/list/tmpl/adminmodule" />
<copy todir="${cfg.destdir}/site/views/list/tmpl/adminmodule">
<fileset dir="${basedir}/components/com_fabrik/views/list/tmpl/adminmodule" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/list/tmpl/bluesky" />
<copy todir="${cfg.destdir}/site/views/list/tmpl/bluesky">
<fileset dir="${basedir}/components/com_fabrik/views/list/tmpl/bluesky" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/list/tmpl/dbjoinselect" />
<copy todir="${cfg.destdir}/site/views/list/tmpl/dbjoinselect">
<fileset dir="${basedir}/components/com_fabrik/views/list/tmpl/dbjoinselect" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/list/tmpl/default" />
<copy todir="${cfg.destdir}/site/views/list/tmpl/default">
<fileset dir="${basedir}/components/com_fabrik/views/list/tmpl/default" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/list/tmpl/div" />
<copy todir="${cfg.destdir}/site/views/list/tmpl/div">
<fileset dir="${basedir}/components/com_fabrik/views/list/tmpl/div" />
</copy>
<!-- explicitly include form templates -->
<copy file="${basedir}/components/com_fabrik/views/form/tmpl/default.xml" todir="${cfg.destdir}/site/views/form/tmpl/" />
<mkdir dir="${cfg.destdir}/site/views/form/tmpl/admin" />
<copy todir="${cfg.destdir}/site/views/form/tmpl/admin">
<fileset dir="${basedir}/components/com_fabrik/views/form/tmpl/admin" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/form/tmpl/bluesky" />
<copy todir="${cfg.destdir}/site/views/form/tmpl/bluesky">
<fileset dir="${basedir}/components/com_fabrik/views/form/tmpl/bluesky" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/form/tmpl/contacts_custom" />
<copy todir="${cfg.destdir}/site/views/form/tmpl/contacts_custom">
<fileset dir="${basedir}/components/com_fabrik/views/form/tmpl/contacts_custom" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/form/tmpl/default" />
<copy todir="${cfg.destdir}/site/views/form/tmpl/default">
<fileset dir="${basedir}/components/com_fabrik/views/form/tmpl/default" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/form/tmpl/default_rtl" />
<copy todir="${cfg.destdir}/site/views/form/tmpl/default_rtl">
<fileset dir="${basedir}/components/com_fabrik/views/form/tmpl/default_rtl" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/form/tmpl/mint" />
<copy todir="${cfg.destdir}/site/views/form/tmpl/mint">
<fileset dir="${basedir}/components/com_fabrik/views/form/tmpl/mint" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/form/tmpl/no-labels" />
<copy todir="${cfg.destdir}/site/views/form/tmpl/no-labels">
<fileset dir="${basedir}/components/com_fabrik/views/form/tmpl/no-labels" />
</copy>
<mkdir dir="${cfg.destdir}/site/views/form/tmpl/tabs" />
<copy todir="${cfg.destdir}/site/views/form/tmpl/tabs">
<fileset dir="${basedir}/components/com_fabrik/views/form/tmpl/tabs" />
</copy>
<mkdir dir="${cfg.destdir}/media/com_fabrik" />
<copy todir="${cfg.destdir}/media/com_fabrik">
<fileset dir="${basedir}/media/com_fabrik">
<exclude name="**/*.zip" />
</fileset>
</copy>
<mkdir dir="${cfg.destdir}/site/fabrikfeed" />
<copy todir="${cfg.destdir}/site/fabrikfeed">
<fileset dir="${basedir}/libraries/joomla/document/fabrikfeed">
</fileset>
</copy>
<!-- copy over the database drivers -->
<mkdir dir="${cfg.destdir}/site/dbdriver" />
<copy file="${basedir}/libraries/joomla/database/database/mysql_fab.php" todir="${cfg.destdir}/site/dbdriver" />
<copy file="${basedir}/libraries/joomla/database/database/mysqli_fab.php" todir="${cfg.destdir}/site/dbdriver" />
<mkdir dir="${cfg.destdir}/modules/mod_fabrik_form/" />
<copy todir="${cfg.destdir}/modules/mod_fabrik_form/">
<fileset dir="${basedir}/modules/mod_fabrik_form/">
</fileset>
</copy>
<mkdir dir="${cfg.destdir}/modules/mod_fabrik_list/" />
<copy todir="${cfg.destdir}/modules/mod_fabrik_list/">
<fileset dir="${basedir}/modules/mod_fabrik_list/">
</fileset>
</copy>
<mkdir dir="${cfg.destdir}/plugins/content/fabrik" />
<copy todir="${cfg.destdir}/plugins/content/fabrik">
<fileset dir="${basedir}/plugins/content/fabrik">
</fileset>
</copy>
<mkdir dir="${cfg.destdir}/plugins/search" />
<copy file="${basedir}/plugins/search/fabrik/fabrik.xml" todir="${cfg.destdir}/plugins/search" />
<copy file="${basedir}/plugins/search/fabrik/fabrik.php" todir="${cfg.destdir}/plugins/search" />
<mkdir dir="${cfg.destdir}/plugins/system" />
<mkdir dir="${cfg.destdir}/plugins/system/fabrikcron" />
<copy file="${basedir}/plugins/system/fabrikcron/fabrikcron.xml" todir="${cfg.destdir}/plugins/system/fabrikcron" />
<copy file="${basedir}/plugins/system/fabrikcron/fabrikcron.php" todir="${cfg.destdir}/plugins/system/fabrikcron" />
<mkdir dir="${cfg.destdir}/plugins/system/fabrik" />
<copy todir="${cfg.destdir}/plugins/system/fabrik">
<fileset dir="${basedir}/plugins/system/fabrik"></fileset>
</copy>
<mkdir dir="${cfg.destdir}/plugins/fabrik_cron" />
<copy todir="${cfg.destdir}/plugins/fabrik_cron/">
<fileset dir="${basedir}/plugins/fabrik_cron/"></fileset>
</copy>
<mkdir dir="${cfg.destdir}/plugins/fabrik_element" />
<copy todir="${cfg.destdir}/plugins/fabrik_element/">
<fileset dir="${basedir}/plugins/fabrik_element/"></fileset>
</copy>
<mkdir dir="${cfg.destdir}/plugins/fabrik_form" />
<copy todir="${cfg.destdir}/plugins/fabrik_form/">
<fileset dir="${basedir}/plugins/fabrik_form/"></fileset>
</copy>
<mkdir dir="${cfg.destdir}/plugins/fabrik_list" />
<copy todir="${cfg.destdir}/plugins/fabrik_list/">
<fileset dir="${basedir}/plugins/fabrik_list/"></fileset>
</copy>
<mkdir dir="${cfg.destdir}/plugins/fabrik_validationrule" />
<copy todir="${cfg.destdir}/plugins/fabrik_validationrule/">
<fileset dir="${basedir}/plugins/fabrik_validationrule/"></fileset>
</copy>
<mkdir dir="${cfg.destdir}/plugins/fabrik_visualization" />
<copy todir="${cfg.destdir}/plugins/fabrik_visualization/">
<fileset dir="${basedir}/plugins/fabrik_visualization/"></fileset>
</copy>
<antcall target="refresh.updatexml" />
</target>
<target name="refresh.updatexml">
<tstamp>
<format property="createdate" pattern="MMMM yyyy" locale="en,UK"/>
</tstamp>
<tstamp>
<format property="year" pattern="yyyy" locale="en,UK"/>
</tstamp>
<replace dir="${cfg.destdir}" value="${version}">
<include name="**/*.xml"/>
<replacetoken>{version}</replacetoken>
</replace>
<replace dir="${cfg.destdir}" value="${createdate}">
<include name="**/*.xml"/>
<replacetoken>{createdate}</replacetoken>
</replace>
<replace dir="${cfg.destdir}" value="${year}">
<include name="**/*.xml"/>
<replacetoken>{year}</replacetoken>
</replace>
</target>
</project>