root/trunk/build.xml

Revision 1998 (checked in by douglm, 4 years ago)

Allow build of timezones server in bedework

Line 
1 <?xml version="1.0"?>
2
3 <!-- This is the ant build file for the bedework uber project.
4
5      Authors: Mike Douglass   douglm @ rpi.edu
6 -->
7
8 <project name="bedework.build" default="usage" basedir=".">
9   <property environment="env"/>
10
11   <!-- This affects some of the build process in the projects -->
12   <property name="org.bedework.quickstart.build" value="true" />
13
14   <!-- this project -->
15   <property name="org.bedework.project.bedework"
16             location="${basedir}" />
17
18     <property name="org.bedework.libcache.dir"
19               location="${org.bedework.project.bedework}/libcache"/>
20
21   <!-- Where we put other projects -->
22   <property name="org.bedework.projects"
23             location="${org.bedework.project.bedework}/projects" />
24
25   <property name="org.bedework.project.access"
26             location="${org.bedework.projects}/access" />
27
28   <property name="org.bedework.project.bwtools"
29             location="${org.bedework.projects}/bwtools" />
30
31   <property name="org.bedework.project.bwtzsvr"
32             location="${org.bedework.projects}/bwtzsvr" />
33
34   <property name="org.bedework.project.caldav"
35             location="${org.bedework.projects}/caldav" />
36
37   <property name="org.bedework.project.caldavTest"
38             location="${org.bedework.projects}/caldavTest" />
39
40   <property name="org.bedework.project.calendarapi"
41             location="${org.bedework.projects}/calendarapi" />
42
43   <property name="org.bedework.project.davutil"
44             location="${org.bedework.projects}/davutil" />
45
46   <property name="org.bedework.project.dumprestore"
47             location="${org.bedework.projects}/dumprestore" />
48
49   <property name="org.bedework.project.freebusy"
50             location="${org.bedework.projects}/freebusy" />
51
52   <property name="org.bedework.project.rpiutil"
53             location="${org.bedework.projects}/rpiutil" />
54
55   <property name="org.bedework.project.synchml"
56             location="${org.bedework.projects}/synchml" />
57
58   <property name="org.bedework.project.testsuite"
59             location="${org.bedework.projects}/testsuite" />
60
61   <property name="org.bedework.project.webapps"
62             location="${org.bedework.projects}/webapps" />
63
64   <property name="org.bedework.project.webdav"
65             location="${org.bedework.projects}/webdav" />
66
67   <target name="README" depends="init"
68           description="Describe targets and their usage">
69     <loadfile property="org.bedework.README"
70               srcFile="${org.bedework.project.bedework}/docs/README"/>
71     <echo message="${org.bedework.README}" />
72   </target>
73
74   <target name="usage" depends="init"
75           description="Describe targets and their usage">
76     <echo message="As distributed the package should be ready to go."/>
77     <echo message="Ensure ant is on your path, (a version is in the" />
78     <echo message="package)"/>
79     <echo message=""/>
80     <echo message="First in one window do"/>
81     <echo message="    ant hsqldb"/>
82     <echo message="This will start the hsqldb server ready for the "/>
83     <echo message="application."/>
84     <echo message=""/>
85     <echo message="In another window do"/>
86     <echo message="    ant tomcatstart"/>
87     <echo message=""/>
88     <echo message="Once tomcat is running you should be able to go to a"/>
89     <echo message="browser and connect to"/>
90     <echo message="    http://localhost:8080/bedework"/>
91     <echo message="and follow the instructions."/>
92     <echo message=""/>
93     <echo message="To build the calendar do"/>
94     <echo message="    ant deploy    or "/>
95     <echo message="    ant deploy.debug "/>
96     <echo message="which does a build and deploy of all components"/>
97     <echo message=""/>
98     <echo message="To rebuild the calendar do"/>
99     <echo message="    ant clean.deploy    or "/>
100     <echo message="    ant clean.deploy.debug "/>
101     <echo message="which does a clean, build and deploy of all components"/>
102     <echo message=""/>
103     <echo message="See documentation in the docs directory or on bedework.org"/>
104     <echo message="for instructions on creating a locally configured calendar application"/>
105     <echo message=""/>
106   </target>
107
108   <target name="init" >
109     <property name="org.bedework.qs.build.synchml" value="no" />
110
111     <!-- Overriding this when invoking ant allows different user property
112          files to be included e.g.
113             ant -Dorg.bedework.user.build.properties=/home/me/bedework.properties ...
114             -->
115     <property name="org.bedework.user.build.properties"
116               location="${user.home}/bedework.build.properties" />
117
118     <echo message="Load user properties from ${org.bedework.user.build.properties}" />
119
120     <!-- Load user property definition overrides -->
121     <property file="${org.bedework.user.build.properties}" />
122
123     <!-- ===============================================================
124               Default properties.
125          =============================================================== -->
126
127     <property name="bw.project.home" location="${org.bedework.project.bedework}"/>
128
129     <property file="${bw.project.home}/build.properties" />
130
131     <property name="project.name" value="${org.bedework.package.name}"/>
132     <property name="project.version" value="${org.bedework.version}"/>
133
134     <property name="dist.home" location="${bw.project.home}/dist"/>
135     <property name="lib.dir" location="${bw.project.home}/lib"/>
136     <property name="resources.dir" location="${bw.project.home}/resources"/>
137     <property name="bin.home" location="${bw.project.home}/bin"/>
138
139     <property name="build.dir" location="${bw.project.home}/build"/>
140     <property name="buildjar" location="${build.dir}/buildTools/buildjar.xml"/>
141     <property name="buildsh" location="${build.dir}/buildsh.xml"/>
142     <property name="buildwar" location="${build.dir}/buildwar.xml"/>
143
144     <property name="org.bedework.build.caldav" value="yes" />
145
146     <condition property="org.bedework.qs.build.caldav">
147       <equals arg1="yes" arg2="${org.bedework.build.caldav}"/>
148     </condition>
149
150     <property name="org.bedework.build.freebusy" value="no" />
151
152     <condition property="org.bedework.qs.build.freebusy">
153       <equals arg1="yes" arg2="${org.bedework.build.freebusy}"/>
154     </condition>
155
156     <mkdir dir="${dist.home}" />
157
158     <mkdir dir="${bin.home}" />
159
160     <property name="org.bedework.empty.dir"
161               location="${dist.home}/empty-dir" />
162     <mkdir dir="${org.bedework.empty.dir}" />
163
164     <fileset id="empty.fileset" dir="${org.bedework.empty.dir}"
165              excludes="*" />
166     <!-- default to empty -->
167     <fileset id="buildjar.resource.files" refid="empty.fileset" />
168     <fileset id="buildjar.generated.java.sources" refid="empty.fileset" />
169
170     <!-- ==================== Subcomponent Compilation Classpath ==================== -->
171
172     <path id="compile.classpath">
173       <fileset dir="${lib.dir}">
174          <include name="*.jar"/>
175       </fileset>
176       <fileset dir="${dist.home}">
177          <include name="*.jar"/>
178       </fileset>
179     </path>
180
181     <!-- ===============================================================
182               Locations and jar files built by this project.
183          =============================================================== -->
184
185     <property name="org.bedework.temp.dir"
186               location="${dist.home}/temp" />
187
188     <property name="org.bedework.config.base"
189               location="${org.bedework.project.bedework}/config" />
190
191     <property name="org.bedework.default.lib"
192               location="${org.bedework.project.bedework}/lib" />
193
194     <property name="org.bedework.deployment.base"
195               location="${org.bedework.project.bedework}/deployment" />
196
197     <property name="org.bedework.deployutil.jar"
198               location="${bin.home}/${org.bedework.deployutil.jar.name}-${project.version}.jar" />
199   </target>
200
201   <target name="init.build" depends="init">
202     <mkdir dir="${dist.home}" />
203
204     <mkdir dir="${bin.home}" />
205
206     <mkdir dir="${org.bedework.empty.dir}" />
207   </target>
208
209   <!-- =================================================================
210        "build" and "clean" targets for the project
211        ================================================================= -->
212
213   <target name="build" depends="init.build,build.rpiutil,build.bwtzsvr,
214                                 build.access,build.davutil,
215                                 build.calendarapi,build.dumprestore,build.synchml,
216                                 build.webdav,build.caldav,build.caldavTest,
217                                 build.freebusy,build.bwtools,build.webapps,
218                                 build.testsuite,build.deployutil"
219           description="builds the project">
220     <copy toDir="${dist.home}" >
221       <fileset dir="${org.bedework.project.bwtools}/dist" includes="*.jar" />
222     </copy>
223   </target>
224
225   <target name="clean" depends="init,clean.rpiutil,clean.bwtzsvr,
226                                 clean.access,clean.davutil,
227                                 clean.calendarapi,clean.dumprestore,clean.synchml,
228                                 clean.webdav,clean.caldav,clean.caldavTest,
229                                 clean.freebusy,clean.bwtools,clean.webapps,
230                                 clean.testsuite"
231           description="Remove all generated files.">
232     <delete dir="${dist.home}" />
233     <delete dir="${bin.home}" />
234   </target>
235
236   <target name="quickstart-clean" depends="init,clean.rpiutil,clean.bwtzsvr,
237                                            clean.access,clean.davutil,
238                                            clean.calendarapi,clean.dumprestore,clean.synchml,
239                                            clean.webdav,clean.caldav,clean.caldavTest,
240                                            clean.freebusy,clean.bwtools,clean.webapps,
241                                            clean.testsuite"
242           description="partial clean up for quickstart.">
243     <delete dir="${bin.home}" />
244     <delete dir="${org.bedework.temp.dir}" />
245     <delete dir="${org.bedework.empty.dir}" />
246
247     <delete>
248       <fileset dir="${dist.home}" includes="*.war"/>
249     </delete>
250   </target>
251
252   <target name="clean.build" depends="clean, build"
253           description="cleans then builds the project"/>
254
255   <!-- =================================================================
256        The "deploy" and "deploy.all" target builds and deploys the applications
257        ================================================================= -->
258
259   <target name="deploy.debug" depends="build"
260           description="builds and deploys the applications">
261     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
262          target="deploy"  >
263       <property name="app.debug.val" value="9" />
264     </ant>
265   </target>
266
267   <target name="deploy" depends="build"
268           description="builds and deploys the applications">
269     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
270          target="deploy" />
271   </target>
272
273   <!-- =================================================================
274        The "clean.deploy" target cleans, builds and deploys the applications
275        ================================================================= -->
276
277   <target name="clean.deploy" depends="clean,deploy" />
278
279   <target name="clean.deploy.debug" depends="clean,deploy.debug" />
280
281   <!-- =================================================================
282        The "build.configured" target builds configured applications
283        ================================================================= -->
284
285   <target name="build.configured" depends="build"
286           description="Build configured applications" >
287     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
288          target="build.configured"  >
289       <property name="app.debug.val" value="9" />
290     </ant>
291   </target>
292
293   <target name="build.configured.debug" depends="build"
294           description="Build configured applications" >
295     <ant antfile="${org.bedework.project.bedework}/deployment}/build.xml" inheritrefs="true"
296          target="build.configured" />
297   </target>
298
299   <target name="clean.build.configured" depends="clean,build.configured" />
300
301   <target name="clean.build.configured.debug" depends="clean,build.configured.debug"/>
302
303   <!-- ======================== javadoc target =======================
304        We build these and copy in turn into the main bedework docs directory.
305
306        The org.bedework.projectdocs.home property allows each project to
307        locate the previously built javadocs so they can link to it.
308
309        We also assume access to the java api docs.
310        ================================================================= -->
311
312   <target name="javadoc" depends="init" description="Generate javadoc">
313     <property name="docs.home" location="${bw.project.home}/docs"/>
314     <property name="org.bedework.projectdocs.home" location="${docs.home}/projectdocs"/>
315     <delete dir="${org.bedework.projectdocs.home}" />
316     <mkdir dir="${org.bedework.projectdocs.home}" />
317
318     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
319          target="javadoc" >
320       <property name="destdir"
321                 location="${org.bedework.projectdocs.home}/rpiutil/api" />
322     </ant>
323
324     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
325          target="javadoc" >
326       <property name="destdir"
327                 location="${org.bedework.projectdocs.home}/access/api" />
328     </ant>
329
330     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
331          target="javadoc" >
332       <property name="destdir"
333                 location="${org.bedework.projectdocs.home}/davutil/api" />
334     </ant>
335
336     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
337          target="javadoc" >
338       <property name="destdir"
339                 location="${org.bedework.projectdocs.home}/calendarapi/api" />
340     </ant>
341
342     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
343          target="javadoc" >
344       <property name="destdir"
345                 location="${org.bedework.projectdocs.home}/dumprestore/api" />
346     </ant>
347
348     <if>
349       <isset property="org.bedework.qs.build.synchml"/>
350       <then>
351         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
352              target="javadoc" >
353           <property name="destdir"
354                     location="${org.bedework.projectdocs.home}/synchml/api" />
355         </ant>
356       </then>
357     </if>
358
359     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
360          target="javadoc" >
361       <property name="destdir"
362                 location="${org.bedework.projectdocs.home}/webdav/api" />
363     </ant>
364
365     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
366          target="javadoc" >
367       <property name="destdir"
368                 location="${org.bedework.projectdocs.home}/caldav/api" />
369     </ant>
370
371     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
372          target="javadoc" >
373       <property name="destdir"
374                 location="${org.bedework.projectdocs.home}/caldavTest/api" />
375     </ant>
376
377     <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
378          target="javadoc" >
379       <property name="destdir"
380                 location="${org.bedework.projectdocs.home}/freebusy/api" />
381     </ant>
382
383     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
384          target="javadoc" >
385       <property name="destdir"
386                 location="${org.bedework.projectdocs.home}/bwtools/api" />
387     </ant>
388
389     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
390          target="javadoc" >
391       <property name="destdir"
392                 location="${org.bedework.projectdocs.home}/webapps/api" />
393     </ant>
394
395     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
396          target="javadoc" >
397       <property name="destdir"
398                 location="${org.bedework.projectdocs.home}/testsuite/api" />
399     </ant>
400   </target>
401
402   <!-- =================================================================
403        Targets to build sub-projects.
404        ================================================================= -->
405
406   <!-- .................................................................
407                           access
408        .................................................................. -->
409   <target name="build.access" depends="init"
410           description="builds the access project">
411     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
412            target="build-all" >
413       <property name="org.bedework.libcache.dir"
414                 location="${org.bedework.project.bedework}/libcache"/>
415     </ant>
416   </target>
417
418   <target name="clean.access" depends="init"
419           description="cleans the access project">
420     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
421            target="deep-clean" />
422   </target>
423
424   <target name="clean.build.access" depends="clean.access,build.access"
425           description="builds the access project"/>
426
427   <!-- .................................................................
428                           bwtools
429        .................................................................. -->
430   <target name="build.bwtools" depends="init"
431           description="builds the bwtools project">
432     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
433            target="build-all"  >
434       <property name="org.bedework.libcache.dir"
435                 location="${org.bedework.project.bedework}/libcache"/>
436     </ant>
437   </target>
438
439   <target name="clean.bwtools" depends="init"
440           description="clean the bwtools project">
441     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
442            target="deep-clean" />
443   </target>
444
445   <target name="clean.build.bwtools" depends="clean.bwtools,build.bwtools"
446           description="builds the bwtools project"/>
447
448   <!-- .................................................................
449                           bwtzsvr
450        .................................................................. -->
451   <target name="build.bwtzsvr" depends="init"
452           description="builds the bwtzsvr project">
453     <ant antfile="${org.bedework.project.bwtzsvr}/build.xml" inheritall="false"
454            target="build-all"  >
455       <property name="org.bedework.libcache.dir"
456                 location="${org.bedework.project.bedework}/libcache"/>
457     </ant>
458   </target>
459
460   <target name="clean.bwtzsvr" depends="init"
461           description="clean the bwtzsvr project">
462     <ant antfile="${org.bedework.project.bwtzsvr}/build.xml" inheritall="false"
463            target="deep-clean" />
464   </target>
465
466   <target name="clean.build.bwtzsvr" depends="clean.bwtzsvr,build.bwtzsvr"
467           description="builds the bwtzsvr project"/>
468
469   <!-- .................................................................
470                           caldav
471        .................................................................. -->
472   <target name="build.caldav" depends="init"
473           description="builds the caldav project">
474     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
475        target="build-all"  >
476       <property name="org.bedework.libcache.dir"
477                 location="${org.bedework.project.bedework}/libcache"/>
478     </ant>
479   </target>
480
481   <target name="clean.caldav" depends="init"
482           description="clean the caldav project">
483     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
484          target="deep-clean" />
485   </target>
486
487   <target name="clean.build.caldav" depends="clean.caldav,build.caldav"
488           description="clean builds the caldav project"/>
489
490   <!-- .................................................................
491                           caldavTest
492        .................................................................. -->
493   <target name="build.caldavTest" depends="init"
494           description="builds the caldavTest project">
495     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
496          target="build-all"  >
497       <property name="org.bedework.libcache.dir"
498                 location="${org.bedework.project.bedework}/libcache"/>
499     </ant>
500   </target>
501
502   <target name="clean.caldavTest" depends="init"
503           description="clean the caldavTest project">
504     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
505          target="deep-clean" />
506   </target>
507
508   <target name="clean.build.caldavTest" depends="clean.caldavTest,build.caldavTest"
509           description="clean builds the caldavTest project"/>
510
511   <!-- .................................................................
512                           calendarapi
513        .................................................................. -->
514   <target name="build.calendarapi" depends="init"
515           description="builds the calendar project">
516     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
517            target="build-all"  >
518       <property name="org.bedework.libcache.dir"
519                 location="${org.bedework.project.bedework}/libcache"/>
520     </ant>
521   </target>
522
523   <target name="clean.calendarapi" depends="init"
524           description="clean the calendar project">
525     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
526            target="deep-clean" />
527   </target>
528
529   <target name="clean.build.calendarapi" depends="clean.calendarapi,build.calendarapi"
530           description="clean builds the caldavTest project"/>
531
532   <!-- .................................................................
533                           davutil
534        .................................................................. -->
535   <target name="build.davutil" depends="init"
536           description="builds the davutil project">
537     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
538            target="build-all"  >
539       <property name="org.bedework.libcache.dir"
540                 location="${org.bedework.project.bedework}/libcache"/>
541     </ant>
542   </target>
543
544   <target name="clean.davutil" depends="init"
545           description="cleans the davutil project">
546     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
547            target="deep-clean" />
548   </target>
549
550   <target name="clean.build.davutil" depends="clean.davutil,build.davutil"
551           description="clean builds the davutil project"/>
552
553   <!-- .................................................................
554                           dumprestore
555        .................................................................. -->
556   <target name="build.dumprestore" depends="init"
557           description="builds the dumprestore project">
558     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
559            target="build-all"  >
560       <property name="org.bedework.libcache.dir"
561                 location="${org.bedework.project.bedework}/libcache"/>
562     </ant>
563   </target>
564
565   <target name="clean.dumprestore" depends="init"
566           description="clean the dumprestore project">
567     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
568            target="deep-clean" />
569   </target>
570
571   <target name="clean.build.dumprestore" depends="clean.dumprestore,build.dumprestore"
572           description="builds the dumprestore project"/>
573
574   <!-- .................................................................
575                           freebusy
576        .................................................................. -->
577   <target name="build.freebusy" depends="init"
578           description="builds the freebusy project">
579     <if>
580       <isset property="org.bedework.qs.build.freebusy"/>
581       <then>
582         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
583              target="build-all"  >
584           <property name="org.bedework.libcache.dir"
585                     location="${org.bedework.project.bedework}/libcache"/>
586         </ant>
587       </then>
588     </if>
589   </target>
590
591   <target name="clean.freebusy" depends="init"
592           description="cleans the freebusy project">
593     <if>
594       <isset property="org.bedework.qs.build.freebusy"/>
595       <then>
596         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
597              target="deep-clean" />
598       </then>
599     </if>
600   </target>
601
602   <target name="clean.build.freebusy" depends="clean.freebusy,build.freebusy"
603           description="builds the freebusy project"/>
604
605   <!-- .................................................................
606                           rpiutil
607        .................................................................. -->
608   <target name="build.rpiutil" depends="init"
609           description="builds the rpiutil project">
610     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
611            target="build-all"  >
612       <property name="org.bedework.libcache.dir"
613                 location="${org.bedework.project.bedework}/libcache"/>
614     </ant>
615   </target>
616
617   <target name="clean.rpiutil" depends="init"
618           description="cleans the rpiutil project">
619     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
620            target="deep-clean" />
621   </target>
622
623   <target name="clean.build.rpiutil" depends="clean.rpiutil,build.rpiutil"
624           description="builds the rpiutil project"/>
625
626   <!-- .................................................................
627                           synchml
628        .................................................................. -->
629   <target name="build.synchml" depends="init"
630           description="builds the synchml project">
631     <if>
632       <isset property="org.bedework.qs.build.synchml"/>
633       <then>
634         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
635              target="build-all"  >
636           <property name="org.bedework.libcache.dir"
637                     location="${org.bedework.project.bedework}/libcache"/>
638         </ant>
639       </then>
640     </if>
641   </target>
642
643   <target name="clean.synchml" depends="init"
644           description="clean the synchml project">
645     <if>
646       <isset property="org.bedework.qs.build.synchml"/>
647       <then>
648         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
649              target="deep-clean" />
650       </then>
651     </if>
652   </target>
653
654   <target name="clean.build.synchml" depends="clean.synchml,clean.synchml"
655           description="builds the synchml project"/>
656
657   <!-- .................................................................
658                           testsuite
659        .................................................................. -->
660   <target name="build.testsuite" depends="init"
661           description="builds the testsuite project">
662     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
663          target="build-all"  >
664       <property name="org.bedework.libcache.dir"
665                 location="${org.bedework.project.bedework}/libcache"/>
666     </ant>
667   </target>
668
669   <target name="clean.testsuite" depends="init"
670           description="clean the testsuite project">
671     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
672          target="deep-clean" />
673   </target>
674
675   <target name="clean.build.testsuite" depends="clean.testsuite,clean.testsuite"
676           description="builds the testsuite project"/>
677
678   <!-- .................................................................
679                           webapps
680        .................................................................. -->
681   <target name="build.webapps" depends="init"
682           description="builds the webapps project">
683     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
684            target="build-all"  >
685       <property name="org.bedework.libcache.dir"
686                 location="${org.bedework.project.bedework}/libcache"/>
687     </ant>
688   </target>
689
690   <target name="clean.webapps" depends="init"
691           description="clean the webapps project">
692     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
693            target="deep-clean" />
694   </target>
695
696   <target name="clean.build.webapps" depends="clean.webapps,build.webapps"
697           description="builds the webapps project"/>
698
699   <!-- .................................................................
700                           webdav
701        .................................................................. -->
702   <target name="build.webdav" depends="init"
703           description="builds the webdav project">
704     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
705          target="build-all"  >
706       <property name="org.bedework.libcache.dir"
707                 location="${org.bedework.project.bedework}/libcache"/>
708     </ant>
709   </target>
710
711   <target name="clean.webdav" depends="init"
712           description="cleans the webdav project">
713     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
714          target="deep-clean" />
715   </target>
716
717   <target name="clean.build.webdav" depends="clean.webdav,build.webdav"
718           description="builds the webdav project"/>
719
720   <!-- =================================================================
721        Targets to build sub-components of this project.
722        ================================================================= -->
723
724   <target name="build.deployutil" depends="init"
725           description="builds the deployutil component">
726     <ant antfile="${org.bedework.project.bedework}/deployutil/build.xml" inheritrefs="true"
727            target="build" >
728       <property name="build.jar.file" location="${org.bedework.deployutil.jar}" />
729     </ant>
730   </target>
731
732   <!-- =================================================================
733        Build and run the directory tools
734        ================================================================= -->
735
736   <target name="initDir" depends="init"
737           description="Build and run directory init">
738     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
739               target="initDir"
740               return="org.bedework.directory.init.status" >
741       <propertyset>
742         <propertyref prefix="org.bedework.directory."/>
743       </propertyset>
744       <property name="org.bedework.libcache.dir"
745                 location="${org.bedework.project.bedework}/libcache"/>
746     </antfetch>
747   </target>
748
749   <target name="initDirForQuickstart" depends="init"
750           description="Build and run directory tool to initialise a quickstart system">
751     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
752               target="initDirForQuickstart"
753               return="org.bedework.directory.init.status" >
754       <propertyset>
755         <propertyref prefix="org.bedework.directory."/>
756       </propertyset>
757       <property name="org.bedework.libcache.dir"
758                 location="${org.bedework.project.bedework}/libcache"/>
759     </antfetch>
760   </target>
761
762   <target name="addUser" depends="init"
763           description="Build and run directory tools to add a user">
764     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
765            target="addUser" >
766       <propertyset>
767         <propertyref prefix="org.bedework.directory."/>
768       </propertyset>
769       <property name="org.bedework.libcache.dir"
770                 location="${org.bedework.project.bedework}/libcache"/>
771     </ant>
772   </target>
773
774   <target name="addGroup" depends="init"
775           description="Build and run directory tools to add a group">
776     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
777            target="addGroup" >
778       <propertyset>
779         <propertyref prefix="org.bedework.directory."/>
780       </propertyset>
781       <property name="org.bedework.libcache.dir"
782                 location="${org.bedework.project.bedework}/libcache"/>
783     </ant>
784   </target>
785
786   <target name="addGroupMember" depends="init"
787           description="Build and run directory tools to add a group member">
788     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
789            target="addGroupMember" >
790       <propertyset>
791         <propertyref prefix="org.bedework.directory."/>
792       </propertyset>
793       <property name="org.bedework.libcache.dir"
794                 location="${org.bedework.project.bedework}/libcache"/>
795     </ant>
796   </target>
797
798   <!-- =================================================================
799        Build and run the unit test suite
800        ================================================================= -->
801
802   <target name="bld.test" depends="init"
803           description="Build and run tests">
804     <ant antfile="${calendar.build.file}" inheritrefs="true"
805          target="bld.test" />
806   </target>
807
808   <target name="run.test" depends="init"
809           description="Build and run tests">
810     <ant antfile="${calendar.build.file}" inheritrefs="true"
811          target="run.test" />
812   </target>
813
814   <target name="run.test.debug" depends="init"
815           description="Build and run tests">
816     <ant antfile="${calendar.build.file}" inheritrefs="true"
817          target="run.test"  >
818       <property name="org.bedework.debug" value="yes" />
819     </ant>
820   </target>
821
822   <!-- Rebuild the http test suite only -->
823   <target name="httptest" depends="init"
824           description="Run httptest suite" >
825     <input message="httptest may destroy this calendar db. Proceed with test"
826            validargs="y,n"
827            addproperty="do.httptest" />
828     <condition property="do.abort">
829       <equals arg1="n" arg2="${do.httptest}"/>
830     </condition>
831     <fail if="do.abort">httptest aborted by user.</fail>
832
833     <ant antfile="${calendar.build.file}" inheritrefs="true"
834            target="bld.httptest" />
835
836     <ant antfile="${calendar.build.file}" inheritrefs="true"
837            target="run.httptest" />
838   </target>
839 </project>
Note: See TracBrowser for help on using the browser.