-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
1191 lines (1095 loc) · 51.4 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
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
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<!--
~ ConcourseConnect
~ Copyright 2009 Concursive Corporation
~ http://www.concursive.com
~
~ This file is part of ConcourseConnect, an open source social business
~ software and community platform.
~
~ Concursive ConcourseConnect is free software: you can redistribute it and/or
~ modify it under the terms of the GNU Affero General Public License as published
~ by the Free Software Foundation, version 3 of the License.
~
~ Under the terms of the GNU Affero General Public License you must release the
~ complete source code for any application that uses any part of ConcourseConnect
~ (system header files and libraries used by the operating system are excluded).
~ These terms must be included in any work that has ConcourseConnect components.
~ If you are developing and distributing open source applications under the
~ GNU Affero General Public License, then you are free to use ConcourseConnect
~ under the GNU Affero General Public License.
~
~ If you are deploying a web site in which users interact with any portion of
~ ConcourseConnect over a network, the complete source code changes must be made
~ available. For example, include a link to the source archive directly from
~ your web site.
~
~ For OEMs, ISVs, SIs and VARs who distribute ConcourseConnect with their
~ products, and do not license and distribute their source code under the GNU
~ Affero General Public License, Concursive provides a flexible commercial
~ license.
~
~ To anyone in doubt, we recommend the commercial license. Our commercial license
~ is competitively priced and will eliminate any confusion about how
~ ConcourseConnect can be used and distributed.
~
~ ConcourseConnect is distributed in the hope that it will be useful, but WITHOUT
~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
~ FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
~ details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with ConcourseConnect. If not, see <http://www.gnu.org/licenses/>.
~
~ Attribution Notice: ConcourseConnect is an Original Work of software created
~ by Concursive Corporation
-->
<project name="ConcourseConnect" default="usage" basedir=".">
<!-- enable environment variables -->
<property environment="env"/>
<!-- constants -->
<property name="POSTGRESQL" value="postgresql"/>
<property name="MSSQL" value="mssql"/>
<!-- project properties -->
<property name="project.build.finalName" value="concourseconnect" />
<property name="project.war.finalName" value="connect" />
<!-- computed properties -->
<property name="fs" value="${file.separator}"/>
<property name="lf" value="${line.separator}"/>
<!-- Look in the current directory for build.properties -->
<property file="build.properties"/>
<property file="version.properties"/>
<!-- Use an environment variable to read properties from -->
<property file="${env.BUILD_PROPERTIES}"/>
<!-- Setup path properties -->
<property name="lib.dir" value="${basedir}/lib" />
<property name="src.classes.dir" value="${basedir}/src/main/java" />
<property name="src.resources.dir" value="${basedir}/src/main/resources" />
<property name="src.config.dir" value="${basedir}/src/main/config" />
<property name="src.web.dir" value="${basedir}/src/main/webapp" />
<property name="src.database.dir" value="${src.web.dir}/WEB-INF/database" />
<property name="project.build.directory" value="${basedir}/target" />
<property name="build.lib.dir" value="${project.build.directory}/lib" />
<property name="build.sql.dir" value="${project.build.directory}/sql" />
<property name="build.classes.dir" value="${project.build.directory}/classes" />
<property name="build.jsp.dir" value="${project.build.directory}${fs}jsp"/>
<property name="build.jspclasses.dir" value="${project.build.directory}${fs}jspclasses"/>
<property name="build.docs.dir" value="${project.build.directory}/apidocs" />
<property name="test.src.classes.dir" value="${basedir}/src/test/java" />
<property name="test.build.dir" value="${project.build.directory}/test-cases" />
<property name="test.build.classes.dir" value="${test.build.dir}/classes" />
<property name="test.build.lib.dir" value="${test.build.dir}/lib" />
<property name="test.reports.dir" value="${project.build.directory}${fs}test-reports" />
<property name="dist.dir" value="${project.build.directory}/${project.build.finalName}"/>
<!-- Default properties -->
<property name="WEBSERVER.TYPE" value="catalina"/>
<property name="SITE.DBTYPE" value="postgresql"/>
<property name="SITE.DRIVER" value="org.postgresql.Driver"/>
<property name="TITLE" value="ConcourseConnect"/>
<property name="DESCRIPTION" value="A social networking community"/>
<property name="KEYWORDS" value="concourseconnect, community, collaboration, intranet"/>
<property name="MAIN_PROFILE" value="main-profile"/>
<property name="PURPOSE" value="intranet"/>
<!-- Show ant usage -->
<target name="usage">
<echo message="ant compile: compile the sources"/>
<echo message="ant test-compile: compile the tests"/>
<echo message="ant test: compile and run the tests using a test database"/>
<echo message="ant test -Dtest=specificTest: compile and run a specific test using a test database"/>
<echo message="ant package: compile and generate a war"/>
<echo message="ant package-tools: create a distributable tools jar file"/>
<echo message="ant site: generate java docs and web site info"/>
<echo message="ant clean: delete temporary files used in build"/>
<echo message=""/>
<echo message="ant deploy-webapp: deploy the webapp as an exploded directory"/>
<echo message="ant deploy-tomcat: deploy the webapp .war into a running Tomcat instance"/>
<echo message="ant installdb: install the database from the commandline"/>
<echo message="ant upgradedb: upgrade the database from the commandline"/>
<echo message=""/>
</target>
<!-- Clean -->
<target name="clean" description="Delete the build files">
<delete dir="${project.build.directory}"/>
</target>
<!-- Initialize -->
<target name="initialize">
<fail unless="WEBSERVER.TYPE">Initialization aborted
SOLUTION:
Uncomment and edit the WEBSERVER.TYPE property in the build.properties
file:
build.properties
</fail>
<!-- Verify the servlet container -->
<condition property="TYPE.CATALINA">
<equals arg1="${WEBSERVER.TYPE}" arg2="catalina" />
</condition>
<condition property="CATALINA_HOME" value="${env.CATALINA_HOME}">
<and>
<equals arg1="${WEBSERVER.TYPE}" arg2="catalina" />
<available file="${env.CATALINA_HOME}" />
</and>
</condition>
<condition property="TYPE.WEBLOGIC">
<equals arg1="${WEBSERVER.TYPE}" arg2="weblogic" />
</condition>
<condition property="WEBLOGIC_HOME" value="${env.WEBLOGIC_HOME}">
<and>
<equals arg1="${WEBSERVER.TYPE}" arg2="weblogic" />
<available file="${env.WEBLOGIC_HOME}" />
</and>
</condition>
<condition property="TYPE.GERONIMO">
<equals arg1="${WEBSERVER.TYPE}" arg2="geronimo" />
</condition>
<condition property="GERONIMO_HOME" value="${env.GERONIMO_HOME}">
<and>
<equals arg1="${WEBSERVER.TYPE}" arg2="geronimo" />
<available file="${env.GERONIMO_HOME}" />
</and>
</condition>
<condition property="TYPE.WEBSPHERE">
<equals arg1="${WEBSERVER.TYPE}" arg2="websphere" />
</condition>
<condition property="WEBSPHERE_HOME" value="${env.WEBSPHERE_HOME}">
<and>
<equals arg1="${WEBSERVER.TYPE}" arg2="websphere" />
<available file="${env.WEBSPHERE_HOME}" />
</and>
</condition>
<condition property="TYPE.JBOSS">
<equals arg1="${WEBSERVER.TYPE}" arg2="jboss" />
</condition>
<condition property="JBOSS_HOME" value="${env.JBOSS_HOME}">
<and>
<equals arg1="${WEBSERVER.TYPE}" arg2="jboss" />
<available file="${env.JBOSS_HOME}" />
</and>
</condition>
<condition property="TYPE.GLASSFISH">
<equals arg1="${WEBSERVER.TYPE}" arg2="glassfish" />
</condition>
<condition property="GLASSFISH_HOME" value="${env.GLASSFISH_HOME}">
<and>
<equals arg1="${WEBSERVER.TYPE}" arg2="glassfish" />
<available file="${env.GLASSFISH_HOME}" />
</and>
</condition>
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${lib.dir}/ant-contrib-20090603.jar"/>
</classpath>
</taskdef>
<condition property="test.contrib.file">
<available file="${basedir}/contrib"/>
</condition>
</target>
<!-- Tomcat 5.x -->
<target name="init.servlet5.exists" depends="initialize" if="TYPE.CATALINA">
<fail unless="CATALINA_HOME">CATALINA_HOME build.properties entry OR environment variable is required</fail>
<available file="${CATALINA_HOME}/common/lib/servlet-api.jar" property="build.servlet5.present" />
</target>
<target name="init.servlet5.set" depends="init.servlet5.exists" if="build.servlet5.present">
<property name="servletJar" value="${CATALINA_HOME}${fs}common${fs}lib${fs}servlet-api.jar" />
<property name="jspJar" value="${CATALINA_HOME}${fs}common${fs}lib${fs}jsp-api.jar" />
<property name="namingJar" value="${CATALINA_HOME}${fs}common${fs}lib${fs}naming-resources.jar" />
<property name="catalinaAntJar" value="${CATALINA_HOME}${fs}server${fs}lib${fs}catalina-ant.jar" />
<echo message="Web Server: Tomcat 5.x" />
</target>
<!-- Tomcat 6.x -->
<target name="init.servlet6.exists" depends="initialize" if="TYPE.CATALINA">
<fail unless="CATALINA_HOME">CATALINA_HOME build.properties entry OR environment variable is required</fail>
<available file="${CATALINA_HOME}/lib/servlet-api.jar" property="build.servlet6.present" />
</target>
<target name="init.servlet6.set" depends="init.servlet6.exists" if="build.servlet6.present">
<property name="servletJar" value="${CATALINA_HOME}${fs}lib${fs}servlet-api.jar" />
<property name="jspJar" value="${CATALINA_HOME}${fs}lib${fs}jsp-api.jar" />
<property name="namingJar" value="${CATALINA_HOME}${fs}lib${fs}catalina.jar" />
<property name="catalinaAntJar" value="${CATALINA_HOME}${fs}lib${fs}catalina-ant.jar" />
<echo message="Web Server: Tomcat 6.x" />
</target>
<!-- Weblogic -->
<target name="init.weblogic.exists" depends="initialize" if="TYPE.WEBLOGIC">
<fail unless="WEBLOGIC_HOME">WEBLOGIC_HOME build.properties entry OR environment variable is required</fail>
<available file="${WEBLOGIC_HOME}${fs}server${fs}lib${fs}weblogic.jar" property="build.weblogic.present" />
</target>
<target name="init.weblogic.set" depends="init.weblogic.exists" if="build.weblogic.present">
<property name="servletJar" value="${WEBLOGIC_HOME}${fs}server${fs}lib${fs}weblogic.jar" />
<property name="jspJar" value="${WEBLOGIC_HOME}${fs}server${fs}lib${fs}weblogic.jar" />
<echo message="Web Server: WebLogic" />
</target>
<!-- Geronimo 1.0 -->
<target name="init.geronimo10.exists" depends="initialize" if="TYPE.GERONIMO">
<fail unless="GERONIMO_HOME">GERONIMO_HOME build.properties entry OR environment variable is required</fail>
<available file="${GERONIMO_HOME}/repository/org.apache.geronimo.specs/jars/geronimo-servlet_2.4_spec-1.0.jar" property="build.geronimo10.present" />
</target>
<target name="init.geronimo10.set" depends="init.geronimo10.exists" if="build.geronimo10.present">
<property name="servletJar" value="${GERONIMO_HOME}/repository/org.apache.geronimo.specs/jars/geronimo-servlet_2.4_spec-1.0.jar" />
<property name="jspJar" value="${GERONIMO_HOME}/repository/org.apache.geronimo.specs/jars/geronimo-jsp_2.0_spec-1.0.jar" />
<property name="namingJar" value="${GERONIMO_HOME}/repository/tomcat/jars/naming-resources-5.5.9.jar" />
<echo message="Web Server: Geronimo 1.0" />
</target>
<!-- Geronimo 1.1 -->
<target name="init.geronimo11.exists" depends="initialize" if="TYPE.GERONIMO">
<fail unless="GERONIMO_HOME">GERONIMO_HOME build.properties entry OR environment variable is required</fail>
<available file="${GERONIMO_HOME}/repository/org/apache/geronimo/specs/geronimo-servlet_2.4_spec/1.0.1/geronimo-servlet_2.4_spec-1.0.1.jar" property="build.geronimo11.present" />
</target>
<target name="init.geronimo11.set" depends="init.geronimo11.exists" if="build.geronimo11.present">
<property name="servletJar" value="${GERONIMO_HOME}/repository/org/apache/geronimo/specs/geronimo-servlet_2.4_spec/1.0.1/geronimo-servlet_2.4_spec-1.0.1.jar" />
<property name="jspJar" value="${GERONIMO_HOME}/repository/org/apache/geronimo/specs/geronimo-jsp_2.0_spec/1.0.1/geronimo-jsp_2.0_spec-1.0.1.jar" />
<available file="${GERONIMO_HOME}/repository/tomcat/naming-resources/5.5.15/naming-resources-5.5.15.jar" property="namingJar" value="${GERONIMO_HOME}/repository/tomcat/naming-resources/5.5.15/naming-resources-5.5.15.jar" />
<available file="${GERONIMO_HOME}/repository/tomcat/naming-resources/5.5.15-142/naming-resources-5.5.15-142.jar" property="namingJar" value="${GERONIMO_HOME}/repository/tomcat/naming-resources/5.5.15-142/naming-resources-5.5.15-142.jar" />
<echo message="Web Server: Geronimo 1.1+" />
</target>
<!-- JBoss -->
<target name="init.jboss24.exists" depends="initialize" if="TYPE.JBOSS">
<fail unless="JBOSS_HOME">JBOSS_HOME build.properties entry OR environment variable is required</fail>
<available file="${JBOSS_HOME}/server/all/lib/javax.servlet.jar" property="build.jboss24.present" />
</target>
<target name="init.jboss24.set" depends="init.jboss24.exists" if="build.jboss24.present">
<property name="servletJar" value="${JBOSS_HOME}/server/all/lib/javax.servlet.jar" />
<property name="jspJar" value="${JBOSS_HOME}/server/all/lib/javax.servlet.jsp.jar" />
<property name="namingJar" value="${JBOSS_HOME}/server/all/deploy/jbossweb-tomcat55.sar/naming-resources.jar" />
<echo message="Web Server: JBoss using Servlet 2.4 API" />
</target>
<!-- IBM WebSphere -->
<target name="init.websphere.exists" depends="initialize" if="TYPE.WEBSPHERE">
<fail unless="WEBSPHERE_HOME">WEBSPHERE_HOME build.properties entry OR environment variable is required</fail>
<available file="${WEBSPHERE_HOME}{fs}lib{fs}j2ee.jar" property="build.websphere.present" />
</target>
<target name="init.websphere.set" depends="init.websphere.exists" if="TYPE.WEBSPHERE">
<property name="servletJar" value="${WEBSPHERE_HOME}/lib/j2ee.jar" />
<echo message="Servlet jar: ${servletJar}" />
<echo message="Web Server: WebSphere" />
</target>
<!-- Sun Glassfish -->
<target name="init.glassfish.exists" depends="initialize" if="TYPE.GLASSFISH">
<fail unless="GLASSFISH_HOME">GLASSFISH_HOME build.properties entry OR environment variable is required</fail>
<available file="${GLASSFISH_HOME}{fs}lib{fs}javaee.jar" property="build.glassfish.present" />
</target>
<target name="init.glassfish.set" depends="init.glassfish.exists" if="TYPE.GLASSFISH">
<property name="servletJar" value="${GLASSFISH_HOME}/lib/javaee.jar" />
<!--
<property name="jspJar" value="${GLASSFISH_HOME}/lib/appserv-rt.jar" />
-->
<echo message="Servlet jar: ${servletJar}" />
<echo message="Web Server: Glassfish" />
</target>
<target name="init.classpath"
depends="initialize,init.servlet6.set,init.servlet5.set,init.weblogic.set,init.geronimo10.set,init.geronimo11.set,init.jboss24.set,init.websphere.set,init.glassfish.set">
<path id="web.classpath">
<pathelement location="${servletJar}" />
<pathelement location="${jspJar}" />
<pathelement location="${namingJar}" />
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<tstamp>
<format property="date.short" pattern="yyyyMMdd-HHmmss" />
</tstamp>
<tstamp>
<format property="date.long" pattern="yyyy-MM-dd hh:mm:ss aa" />
</tstamp>
<!-- log the build -->
<record name="build.log" append="no" />
<!-- Begin output -->
<echo message="Project: ${ant.project.name}" />
<echo message="Date: ${date.long}" />
<echo message="User: ${user.name}" />
<echo message="System: ${os.name} ${os.arch} ${os.version}" />
<echo message="Ant version: ${ant.version}" />
<echo message="Java version: ${java.version}" />
<echo message="Base path: ${basedir}" />
</target>
<target name="init.contrib" if="test.contrib.file">
<!-- Look in the contrib/ path for .path files that contain a single path line to the contribution -->
<for param="contrib">
<path>
<fileset dir="${basedir}/contrib" includes="*.path"/>
</path>
<sequential>
<loadfile property="contrib.@{contrib}" srcFile="@{contrib}">
<filterchain>
<striplinebreaks/>
</filterchain>
</loadfile>
<echo>Found module: ${contrib.@{contrib}}</echo>
</sequential>
</for>
<propertyselector property="contrib.list" delimiter=","
match="contrib\.([^\.]*)\.path"
select="\0"
casesensitive="false" />
</target>
<!-- Creates build dir if it does not exist -->
<target name="prepare" depends="init.classpath,init.contrib">
<mkdir dir="${project.build.directory}"/>
<tstamp />
<!-- Check the application files -->
<outofdate property="classes.outofdate">
<sourcefiles>
<fileset dir="${src.classes.dir}" includes="**/*.java"/>
<fileset dir="${src.resources.dir}" includes="**/*"/>
</sourcefiles>
<targetfiles path="${build.lib.dir}/${project.build.finalName}.jar"/>
</outofdate>
<!-- Check the contrib files -->
<property name="contrib.list" value=""/>
<for list="${contrib.list}" param="contrib">
<sequential>
<outofdate property="classes.outofdate">
<sourcefiles>
<fileset dir="${@{contrib}}/src/main" includes="**/*"/>
</sourcefiles>
<targetfiles path="${build.lib.dir}/${project.build.finalName}.jar"/>
</outofdate>
</sequential>
</for>
</target>
<!-- Compile -->
<target name="compile" description="Compile source" depends="prepare" if="classes.outofdate">
<!-- Prepare the target compile directory -->
<delete dir="${build.classes.dir}"/>
<mkdir dir="${build.classes.dir}"/>
<!-- Get rid of any classes in the source dir that shouldn't be there -->
<delete>
<fileset dir="${src.classes.dir}" includes="**/*.class"/>
</delete>
<!-- Compile the source -->
<javac srcdir="${src.classes.dir}"
destdir="${build.classes.dir}"
verbose="off"
optimize="on"
source="1.5" target="1.5"
deprecation="off">
<classpath>
<path refid="web.classpath"/>
</classpath>
</javac>
<!-- Compile any contributed classes -->
<property name="contrib.list" value=""/>
<for list="${contrib.list}" param="contrib">
<sequential>
<echo> Adding module: ${@{contrib}}</echo>
<javac srcdir="${@{contrib}}"
destdir="${build.classes.dir}"
verbose="off"
optimize="on"
source="1.5" target="1.5"
deprecation="off">
<classpath>
<path refid="web.classpath"/>
</classpath>
</javac>
</sequential>
</for>
<!-- Prepare the target jars directory -->
<delete dir="${build.lib.dir}"/>
<mkdir dir="${build.lib.dir}"/>
<!-- concourseconnect.jar -->
<jar jarfile="${build.lib.dir}/${project.build.finalName}.jar"
basedir="${build.classes.dir}"
includes="com/concursive/connect/**/*.class"/>
<!-- concourseconnect resources -->
<jar jarfile="${build.lib.dir}/${project.build.finalName}-resources.jar"
basedir="${src.resources.dir}"
includes="**/*"/>
<!-- webdav.jar -->
<copy todir="${build.classes.dir}/org/apache/catalina/servlets">
<fileset dir="${src.classes.dir}/org/apache/catalina/servlets">
<include name="LocalStrings.properties"/>
</fileset>
</copy>
<jar jarfile="${build.lib.dir}/webdav.jar"
basedir="${build.classes.dir}"
includes="org/apache/**/*.class,org/apache/**/*.properties"/>
</target>
<!-- Compile Tests -->
<target name="test-compile" depends="compile">
<delete dir="${test.build.dir}" failonerror="false" />
<mkdir dir="${test.build.dir}" />
<mkdir dir="${test.build.classes.dir}" />
<mkdir dir="${test.build.lib.dir}" />
<property name="DEBUG" value="true"/>
<property name="DEBUGLEVEL" value="2"/>
<javac srcdir="${test.src.classes.dir}" destdir="${test.build.classes.dir}" verbose="off" deprecation="off" fork="true" memoryInitialSize="168m" memoryMaximumSize="168m" debug="${DEBUG}" debuglevel="${DEBUGLEVEL}">
<classpath>
<path refid="web.classpath" />
<pathelement path="${build.classes.dir}" />
</classpath>
</javac>
<jar jarfile="${test.build.lib.dir}/${project.build.finalName}-tests.jar" basedir="${test.build.classes.dir}" includes="**/*.class" />
<!-- Determine the property file to use -->
<condition property="test.properties.file" value="build.properties">
<available file="build.properties"/>
</condition>
<condition property="test.properties.file" value="${env.BUILD_PROPERTIES}">
<available file="${env.BUILD_PROPERTIES}"/>
</condition>
<fail unless="test.properties.file">Test properties file could not be found</fail>
</target>
<!-- Run Tests -->
<target name="test.runner" depends="test-compile" unless="test">
<delete dir="${test.reports.dir}" failonerror="false" />
<mkdir dir="${test.reports.dir}" />
<echo message="+-----------------------" />
<echo message="| Tests are running... See full-length results in '${test.reports.dir}'." />
<echo message="+---------------------" />
<junit printsummary="yes" haltonfailure="yes" fork="true" forkmode="perBatch" dir="${basedir}">
<jvmarg value="-DPropertyManager.file=${test.properties.file}"/>
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
<path refid="web.classpath" />
<pathelement path="${build.classes.dir}" />
<fileset dir="${build.lib.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${test.build.lib.dir}">
<include name="**/*.jar" />
</fileset>
<pathelement path="${src.resources.dir}" />
</classpath>
<!-- All Tests -->
<batchtest todir="${test.reports.dir}">
<formatter type="xml" />
<fileset dir="${test.src.classes.dir}">
<include name="**/*Test.java" />
<exclude name="**/Abstract*Test.java" />
</fileset>
</batchtest>
</junit>
</target>
<target name="test.single.test.runner" depends="test-compile" if="test">
<delete dir="${test.reports.dir}" failonerror="false" />
<mkdir dir="${test.reports.dir}" />
<echo message="+-----------------------" />
<echo message="| Tests are running... See full-length results in '${test.reports.dir}'." />
<echo message="+---------------------" />
<junit printsummary="yes" haltonfailure="yes" fork="true" forkmode="perBatch" dir="${basedir}">
<jvmarg value="-DPropertyManager.file=${test.properties.file}"/>
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
<path refid="web.classpath" />
<pathelement path="${build.classes.dir}" />
<fileset dir="${build.lib.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${test.build.lib.dir}">
<include name="**/*.jar" />
</fileset>
<pathelement path="${src.resources.dir}" />
</classpath>
<batchtest todir="${test.reports.dir}">
<formatter type="xml" />
<fileset dir="${test.src.classes.dir}">
<include name="**/${test}.java" />
</fileset>
</batchtest>
</junit>
</target>
<target name="test" depends="test.single.test.runner,test.runner" description="Run unit tests">
</target>
<!-- Package the Application -->
<target name="prepare-jspc" depends="init.classpath" description="The JSP compiler">
<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath id="jspc.classpath">
<pathelement location="${java.home}/../lib/tools.jar"/>
<fileset dir="${CATALINA_HOME}/bin">
<include name="*.jar"/>
</fileset>
<fileset dir="${CATALINA_HOME}/server/lib" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
<fileset dir="${CATALINA_HOME}/common/lib" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
<fileset dir="${CATALINA_HOME}/lib" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
</target>
<target name="taskdef.jasper" depends="initialize">
<taskdef name="compileJasperReport"
classname="net.sf.jasperreports.ant.JRAntCompileTask">
<classpath>
<fileset dir="${build.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
</target>
<target name="war.instance" unless="NODE">
<property name="NODE" value="primary"/>
</target>
<target name="war.archive" depends="taskdef.jasper">
<delete dir="${dist.dir}"/>
<mkdir dir="${dist.dir}"/>
<!-- Copy the .jars -->
<copy todir="${dist.dir}/${project.war.finalName}/WEB-INF/lib">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${dist.dir}/${project.war.finalName}/WEB-INF/lib">
<fileset dir="${build.lib.dir}">
<include name="*.jar"/>
</fileset>
</copy>
<!-- Copy the web data -->
<copy todir="${dist.dir}/${project.war.finalName}">
<fileset dir="${src.web.dir}">
<include name="**/*"/>
</fileset>
</copy>
<!-- Copy any contributions -->
<property name="contrib.list" value=""/>
<for list="${contrib.list}" param="contrib">
<sequential>
<echo>Checking module: ${@{contrib}}</echo>
<!-- Copy any .jars -->
<copy todir="${dist.dir}/${project.war.finalName}/WEB-INF/lib" overwrite="true" failonerror="false">
<fileset dir="${@{contrib}}/lib">
<include name="*.jar"/>
</fileset>
</copy>
<!-- Copy any web data -->
<copy todir="${dist.dir}/${project.war.finalName}" overwrite="true" failonerror="false">
<fileset dir="${@{contrib}}/src/main/webapp">
<include name="**/*"/>
</fileset>
</copy>
<!-- Copy any resources -->
<copy todir="${dist.dir}/${project.war.finalName}/WEB-INF/classes" overwrite="true" failonerror="false">
<fileset dir="${@{contrib}}/src/main/resources">
<include name="**/*"/>
</fileset>
</copy>
</sequential>
</for>
<!-- Copy the instance property -->
<echo file="${dist.dir}/${project.war.finalName}/WEB-INF/instance.property">name=ConnectInstance${lf}node=${NODE}</echo>
<loadresource property="message">
<file file="${dist.dir}/${project.war.finalName}/WEB-INF/instance.property"/>
</loadresource>
<echo message="${message}"/>
<!-- Copy any customizations -->
<!-- JSPs -->
<copy todir="${dist.dir}/${project.war.finalName}" overwrite="true" failonerror="false">
<fileset dir="${CUSTOMIZATIONS.PATH}/src/web/jsp">
<include name="**" />
</fileset>
</copy>
<!-- Resources -->
<copy todir="${dist.dir}/${project.war.finalName}/WEB-INF/classes" overwrite="true" failonerror="false">
<fileset dir="${CUSTOMIZATIONS.PATH}/src/resources">
<include name="**" />
</fileset>
</copy>
<!-- Images, Javascript, CSS, WEB-INF -->
<copy todir="${dist.dir}/${project.war.finalName}" overwrite="true" failonerror="false">
<fileset dir="${CUSTOMIZATIONS.PATH}/src/web">
<include name="images/**" />
<include name="css/**" />
<include name="flash/**" />
<include name="javascript/**" />
<include name="themes/**" />
<include name="WEB-INF/**" />
<include name="favicon.ico" />
</fileset>
</copy>
<!-- Compile the JSPs -->
<mkdir dir="${dist.dir}/${project.war.finalName}/WEB-INF/compiled"/>
<jasper2
validateXml="false"
uriroot="${dist.dir}/${project.war.finalName}"
webXmlFragment="${dist.dir}/${project.war.finalName}/WEB-INF/generated_web.xml"
addWebXmlMappings="true"
outputDir="${dist.dir}/${project.war.finalName}/WEB-INF/src" />
<javac srcdir="${dist.dir}/${project.war.finalName}/WEB-INF/src" excludes="**/*.smap"
destdir="${dist.dir}/${project.war.finalName}/WEB-INF/compiled"
debug="off" failonerror="true"
source="1.5" target="1.5"
optimize="on">
<classpath>
<pathelement location="${dist.dir}/${project.war.finalName}/WEB-INF/compiled"/>
<fileset dir="${dist.dir}/${project.war.finalName}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${CATALINA_HOME}/common/lib" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
<fileset dir="${CATALINA_HOME}/shared/lib" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
<fileset dir="${CATALINA_HOME}/lib" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
<fileset dir="${CATALINA_HOME}/bin">
<include name="*.jar"/>
</fileset>
</classpath>
<include name="**" />
<exclude name="tags/**" />
</javac>
<!-- JAR the JSPs -->
<jar jarfile="${dist.dir}/${project.war.finalName}/WEB-INF/lib/${project.build.finalName}-jsp.jar"
basedir="${dist.dir}/${project.war.finalName}/WEB-INF/compiled" includes="**/*.class" />
<!-- Cleanup temp files -->
<delete>
<fileset dir="${dist.dir}/${project.war.finalName}">
<include name="**/*.jsp"/>
<include name="**/*.jspf"/>
</fileset>
</delete>
<delete dir="${dist.dir}/${project.war.finalName}/WEB-INF/src"/>
<delete dir="${dist.dir}/${project.war.finalName}/WEB-INF/compiled"/>
<!-- Compile the reports -->
<compileJasperReport
srcdir="${dist.dir}/${project.war.finalName}/WEB-INF/reports"
destdir="${dist.dir}/${project.war.finalName}/WEB-INF/reports"/>
<!-- Archive the folder -->
<war destfile="${dist.dir}/${project.war.finalName}.war"
webxml="${dist.dir}/${project.war.finalName}/WEB-INF/web.xml"
basedir="${dist.dir}/${project.war.finalName}"
compress="true"
manifest="${src.web.dir}/META-INF/MANIFEST.MF"
/>
<copy file="${basedir}/README.txt" todir="${dist.dir}/" verbose="true"/>
<copy file="${basedir}/CHANGES.txt" todir="${dist.dir}/" verbose="true"/>
<copy file="${basedir}/LICENSE.txt" todir="${dist.dir}/" verbose="true"/>
<!-- Create the distributable .zip file -->
<zip destfile="${dist.dir}/${project.build.finalName}-${project.version}.zip">
<zipfileset dir="${basedir}" includes="README.txt" prefix="${project.build.finalName}"/>
<zipfileset dir="${basedir}" includes="CHANGES.txt" prefix="${project.build.finalName}"/>
<zipfileset dir="${basedir}" includes="LICENSE.txt" prefix="${project.build.finalName}"/>
<zipfileset dir="${dist.dir}" includes="${project.war.finalName}.war" prefix="${project.build.finalName}"/>
</zip>
<!-- Cleanup files -->
<delete dir="${dist.dir}/${project.war.finalName}"/>
</target>
<target name="package"
description="Compile, build jars and generate web archive"
depends="compile,prepare-jspc,war.instance,war.archive">
</target>
<!-- Generate the documentation for the site -->
<target name="site" description="Install documentation and site files" depends="compile">
<delete dir="${build.docs.dir}"/>
<mkdir dir="${build.docs.dir}"/>
<javadoc sourcepath="${src.classes.dir}"
packagenames="com.concursive.*"
destdir="${build.docs.dir}">
<header>Copyright 2010 Concursive Corporation</header>
<footer>Copyright 2010 Concursive Corporation</footer>
<classpath>
<path refid="web.classpath"/>
</classpath>
</javadoc>
</target>
<!-- Deploy to an Exploded Webapp Directory -->
<target name="deploy.initialize" depends="initialize">
<fail unless="WEBAPP_EXPLODED_HOME">WEBAPP_EXPLODED_HOME is a required property in build.properties</fail>
<fail unless="FILE_LIBRARY_HOME">FILE_LIBRARY_HOME is a required property in build.properties</fail>
<mkdir dir="${WEBAPP_EXPLODED_HOME}/WEB-INF"/>
<copy file="${src.config.dir}/master.properties" tofile="${FILE_LIBRARY_HOME}/build.properties" overwrite="false"/>
<echo message="Exploded webapp path: ${WEBAPP_EXPLODED_HOME}" />
<echo message="File library path: ${FILE_LIBRARY_HOME}" />
<uptodate property="FAIL_ON_OUTDATED_PROPERTIES"
srcfile="${src.config.dir}/master.properties"
targetfile="${FILE_LIBRARY_HOME}/build.properties"/>
<fail unless="FAIL_ON_OUTDATED_PROPERTIES">Initialization aborted${lf}${lf}The build.properties file might be out of date. Compare and update the site copy with the source template, making any necessary changes.${lf}${lf}Site File: ${FILE_LIBRARY_HOME}/build.properties${lf}Source Template: ${src.config.dir}/master.properties</fail>
</target>
<target name="deploy.jasper.check" depends="init.classpath">
<uptodate property="deploy.jasper.uptodate">
<srcfiles dir="${src.web.dir}/WEB-INF/reports" includes="*.xml"/>
<mapper type="merge" to="${WEBAPP_EXPLODED_HOME}/WEB-INF/reports/project_ticket_trend.jasper"/>
</uptodate>
</target>
<target name="deploy.jasper" depends="deploy.jasper.check,taskdef.jasper" unless="deploy.jasper.uptodate">
<!-- Copy the jasperreports, only if new -->
<copy todir="${WEBAPP_EXPLODED_HOME}/WEB-INF/reports" verbose="true">
<fileset dir="${src.web.dir}/WEB-INF/reports">
<include name="*.xml"/>
</fileset>
</copy>
<!-- The old .jasper file must be removed when a new .xml is copied -->
<delete>
<fileset dir="${WEBAPP_EXPLODED_HOME}/WEB-INF/reports" includes="*.jasper"/>
</delete>
<!-- Compile the reports -->
<compileJasperReport
srcdir="${WEBAPP_EXPLODED_HOME}/WEB-INF/reports"
destdir="${WEBAPP_EXPLODED_HOME}/WEB-INF/reports"/>
</target>
<!-- Delete outdated files -->
<target name="deploy.delete" description="Removes outdated files from web application">
<delete verbose="true">
<fileset dir="${WEBAPP_EXPLODED_HOME}" includesfile="build.cleanup"/>
</delete>
<!-- Delete any contributions -->
<property name="contrib.list" value=""/>
<for list="${contrib.list}" param="contrib">
<sequential>
<echo>Checking module: ${@{contrib}}</echo>
<delete verbose="true" failonerror="false">
<fileset dir="${WEBAPP_EXPLODED_HOME}" includesfile="${@{contrib}}/build.cleanup"/>
</delete>
</sequential>
</for>
</target>
<target name="deploy.copy" description="Copies all files to the deployment directory">
<!-- Copy the jars -->
<copy todir="${WEBAPP_EXPLODED_HOME}/WEB-INF/lib" verbose="true">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${WEBAPP_EXPLODED_HOME}/WEB-INF/lib" verbose="true">
<fileset dir="${project.build.directory}/lib">
<include name="*.jar"/>
</fileset>
</copy>
<!-- Copy the web data -->
<copy todir="${WEBAPP_EXPLODED_HOME}" verbose="true">
<fileset dir="${src.web.dir}">
<include name="**"/>
</fileset>
</copy>
<!-- Copy the resources -->
<copy todir="${WEBAPP_EXPLODED_HOME}/WEB-INF/classes" verbose="true">
<fileset dir="${src.resources.dir}">
<include name="**/*"/>
</fileset>
</copy>
<!-- Copy any contributions -->
<property name="contrib.list" value=""/>
<for list="${contrib.list}" param="contrib">
<sequential>
<echo>Checking module: ${@{contrib}}</echo>
<!-- Copy any .jars -->
<copy todir="${WEBAPP_EXPLODED_HOME}/WEB-INF/lib" overwrite="true" failonerror="false">
<fileset dir="${@{contrib}}/lib">
<include name="*.jar"/>
</fileset>
</copy>
<!-- Copy any web data -->
<copy todir="${WEBAPP_EXPLODED_HOME}" overwrite="true" failonerror="false">
<fileset dir="${@{contrib}}/src/main/webapp">
<include name="**/*"/>
</fileset>
</copy>
<!-- Copy any resources -->
<copy todir="${WEBAPP_EXPLODED_HOME}/WEB-INF/classes" overwrite="true" failonerror="false">
<fileset dir="${@{contrib}}/src/main/resources">
<include name="**/*"/>
</fileset>
</copy>
</sequential>
</for>
<!-- Custom email templates can go in the fileLibrary -->
<mkdir dir="${FILE_LIBRARY_HOME}/1/email"/>
</target>
<!-- See if there is an updated file to merge -->
<target name="deploy.merge.prepare" depends="compile">
<!-- Generate a new web.xml if any of the following: -->
<!-- 1. source web.xml is newer than target web.xml -->
<!-- 2. source build.properties is newer than target web.xml -->
<!-- 3. Any of the xml or tld files are newer than target web.xml -->
<condition property="deploy.merge.uptodate">
<and>
<available file="${WEBAPP_EXPLODED_HOME}/WEB-INF/web.xml"/>
<available file="build.properties"/>
<uptodate srcfile="${src.web.dir}/WEB-INF/web.xml" targetfile="${WEBAPP_EXPLODED_HOME}/WEB-INF/web.xml"/>
<uptodate srcfile="${project.build.directory}/lib/${project.build.finalName}.jar" targetfile="${WEBAPP_EXPLODED_HOME}/WEB-INF/web.xml"/>
<uptodate targetfile="${WEBAPP_EXPLODED_HOME}/WEB-INF/web.xml">
<srcfiles dir="${WEBAPP_EXPLODED_HOME}/WEB-INF" includes="*.xml,*.tld,*.properties" excludes="web.xml"/>
</uptodate>
</and>
</condition>
</target>
<!-- Merge meta-data with build.properties, only if changed so reload doesn't kick in -->
<target name="deploy.merge" depends="deploy.merge.prepare" unless="deploy.merge.uptodate">
<copy file="${src.web.dir}/WEB-INF/web.xml" todir="${WEBAPP_EXPLODED_HOME}/WEB-INF" overwrite="true" verbose="true"/>
</target>
<!-- See if there are any customizations -->
<target name="deploy.customizations.prepare" depends="prepare" if="CUSTOMIZATIONS.PATH">
<condition property="deploy.customizations.exists">
<available file="${CUSTOMIZATIONS.PATH}/README.txt"/>
</condition>
</target>
<target name="deploy.customizations" depends="deploy.customizations.prepare" if="deploy.customizations.exists">
<echo message="Customizations path: ${CUSTOMIZATIONS.PATH}"/>
<!-- JSPs -->
<copy todir="${WEBAPP_EXPLODED_HOME}" verbose="true" overwrite="true">
<fileset dir="${CUSTOMIZATIONS.PATH}/src/web/jsp">
<include name="**/*" />
</fileset>
</copy>
<!-- Resources -->
<copy todir="${WEBAPP_EXPLODED_HOME}/WEB-INF/classes" verbose="true" overwrite="true">
<fileset dir="${CUSTOMIZATIONS.PATH}/src/resources">
<include name="**/*" />
</fileset>
</copy>
<!-- Images, Javascript, CSS, and WEB-INF -->
<copy todir="${WEBAPP_EXPLODED_HOME}" verbose="true" overwrite="true">
<fileset dir="${CUSTOMIZATIONS.PATH}/src/web">
<include name="images/**" />
<include name="javascript/**" />
<include name="css/**" />
<include name="flash/**" />
<include name="themes/**" />
<include name="WEB-INF/**" />
</fileset>
</copy>
</target>
<target name="deploy-webapp" depends="deploy.initialize,compile,deploy.delete,deploy.merge,deploy.jasper,deploy.copy,deploy.customizations" />
<!-- Run Database Scripts -->
<target name="install.prepare">
<fail unless="SITE.DBTYPE">build.properties requires SITE.DBTYPE</fail>
<fail unless="SITE.DRIVER">build.properties requires SITE.DRIVER</fail>
<fail unless="SITE.URL">build.properties requires SITE.URL</fail>
<fail unless="SITE.USER">build.properties requires SITE.USER</fail>
<fail unless="SITE.PASSWORD">build.properties requires SITE.PASSWORD</fail>
</target>
<target name="install.prepare.init" depends="install.prepare">
<!-- Copy template files to be used -->
<delete dir="${build.sql.dir}" failonerror="false"/>
<mkdir dir="${build.sql.dir}"/>
<copy todir="${build.sql.dir}">
<fileset dir="${src.web.dir}/WEB-INF/database/init">
<include name="*.sql" />
</fileset>
</copy>
<!-- Determine the database to execute the compatible tasks -->
<condition property="DBTYPE.POSTGRESQL">
<equals arg1="${SITE.DBTYPE}" arg2="${POSTGRESQL}" casesensitive="false" trim="true"/>
</condition>
<condition property="DBTYPE.MSSQL">
<equals arg1="${SITE.DBTYPE}" arg2="${MSSQL}" casesensitive="false" trim="true"/>
</condition>
</target>
<!-- Prepare the PostgreSQL files -->
<target name="install.check.postgresql" depends="install.prepare.init" if="DBTYPE.POSTGRESQL">
<echo message="SQL files prepared for database type: PostgreSQL"/>
<replace dir="${build.sql.dir}" token="@TRUE@" value="true">
<include name="*.sql"/>
</replace>
<replace dir="${build.sql.dir}" token="@FALSE@" value="false">
<include name="*.sql"/>
</replace>
</target>
<!-- Prepare the MicrosoftSQL files -->
<target name="install.check.mssql" depends="install.prepare.init" if="DBTYPE.MSSQL">
<echo message="SQL files prepared for database type: MSSQL"/>
<replace dir="${build.sql.dir}" token="@TRUE@" value="1">
<include name="*.sql"/>
</replace>
<replace dir="${build.sql.dir}" token="@FALSE@" value="0">
<include name="*.sql"/>
</replace>
</target>
<target name="installschema" depends="prepare,install.prepare.init,install.check.postgresql,install.check.mssql">
<!-- Create database and initialize data -->
<sql
driver="${SITE.DRIVER}"
url="${SITE.URL}"
userid="${SITE.USER}"
password="${SITE.PASSWORD}">
<classpath>
<path refid="web.classpath"/>
</classpath>
<!-- base data -->
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_db.sql"/>
<!-- project management -->
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_project.sql"/>
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_project_blog.sql"/>
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_project_wiki.sql"/>
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_project_ads.sql"/>
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_project_badges.sql"/>
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_project_classifieds.sql"/>
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_project_webcast.sql"/>
<transaction src="${build.sql.dir}/project.sql"/>
<!-- task management -->
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_task.sql"/>
<transaction src="${build.sql.dir}/task.sql"/>
<!-- ticket management -->
<transaction src="${src.web.dir}/WEB-INF/database/${SITE.DBTYPE}/new_ticket.sql"/>
<transaction src="${build.sql.dir}/ticket.sql"/>
<!-- orders/requests -->