root/trunk/build.xml

Revision 1952 (checked in by douglm, 5 years ago)

Set things up so we use a common cache for all quickstart jars

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