root/trunk/build.xml

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

Updated version of ical4j

Further changes to support draft 06 of CalDAV sched

This update requires schema changes to support some new scheduling properties

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="no" />
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="buildjar.resource.files" refid="empty.fileset" />
165     <fileset id="buildjar.generated.java.sources" refid="empty.fileset" />
166
167     <!-- ==================== Subcomponent Compilation Classpath ==================== -->
168
169     <path id="compile.classpath">
170       <fileset dir="${lib.dir}">
171          <include name="*.jar"/>
172       </fileset>
173       <fileset dir="${dist.home}">
174          <include name="*.jar"/>
175       </fileset>
176     </path>
177
178     <!-- ===============================================================
179               Locations and jar files built by this project.
180          =============================================================== -->
181
182     <property name="org.bedework.temp.dir"
183               location="${dist.home}/temp" />
184
185     <property name="org.bedework.config.base"
186               location="${org.bedework.project.bedework}/config" />
187
188     <property name="org.bedework.default.lib"
189               location="${org.bedework.project.bedework}/lib" />
190
191     <property name="org.bedework.deployment.base"
192               location="${org.bedework.project.bedework}/deployment" />
193
194     <property name="org.bedework.deployutil.jar"
195               location="${bin.home}/${org.bedework.deployutil.jar.name}-${project.version}.jar" />
196   </target>
197
198   <target name="init.build" depends="init">
199     <mkdir dir="${dist.home}" />
200
201     <mkdir dir="${bin.home}" />
202
203     <mkdir dir="${org.bedework.empty.dir}" />
204   </target>
205
206   <!-- =================================================================
207        "build" and "clean" targets for the project
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     <copy toDir="${dist.home}" >
217       <fileset dir="${org.bedework.project.bwtools}/dist" includes="*.jar" />
218     </copy>
219   </target>
220
221   <target name="clean" depends="init,clean.rpiutil,clean.access,clean.davutil,
222                                 clean.calendarapi,clean.dumprestore,clean.synchml,
223                                 clean.webdav,clean.caldav,clean.caldavTest,
224                                 clean.freebusy,clean.bwtools,clean.webapps,
225                                 clean.testsuite"
226           description="Remove all generated files.">
227     <delete dir="${dist.home}" />
228     <delete dir="${bin.home}" />
229   </target>
230
231   <target name="quickstart-clean" depends="init,clean.rpiutil,clean.access,clean.davutil,
232                                            clean.calendarapi,clean.dumprestore,clean.synchml,
233                                            clean.webdav,clean.caldav,clean.caldavTest,
234                                            clean.freebusy,clean.bwtools,clean.webapps,
235                                            clean.testsuite"
236           description="partial clean up for quickstart.">
237     <delete dir="${bin.home}" />
238     <delete dir="${org.bedework.temp.dir}" />
239     <delete dir="${org.bedework.empty.dir}" />
240
241     <delete>
242       <fileset dir="${dist.home}" includes="*.war"/>
243     </delete>
244   </target>
245
246   <target name="clean.build" depends="clean, build"
247           description="cleans then builds the project"/>
248
249   <!-- =================================================================
250        The "deploy" and "deploy.all" target builds and deploys the applications
251        ================================================================= -->
252
253   <target name="deploy.debug" depends="build"
254           description="builds and deploys the applications">
255     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
256          target="deploy"  >
257       <property name="app.debug.val" value="9" />
258     </ant>
259   </target>
260
261   <target name="deploy" depends="build"
262           description="builds and deploys the applications">
263     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
264          target="deploy" />
265   </target>
266
267   <!-- =================================================================
268        The "clean.deploy" target cleans, builds and deploys the applications
269        ================================================================= -->
270
271   <target name="clean.deploy" depends="clean,deploy" />
272
273   <target name="clean.deploy.debug" depends="clean,deploy.debug" />
274
275   <!-- =================================================================
276        The "build.configured" target builds configured applications
277        ================================================================= -->
278
279   <target name="build.configured" depends="build"
280           description="Build configured applications" >
281     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
282          target="build.configured"  >
283       <property name="app.debug.val" value="9" />
284     </ant>
285   </target>
286
287   <target name="build.configured.debug" depends="build"
288           description="Build configured applications" >
289     <ant antfile="${org.bedework.project.bedework}/deployment}/build.xml" inheritrefs="true"
290          target="build.configured" />
291   </target>
292
293   <target name="clean.build.configured" depends="clean,build.configured" />
294
295   <target name="clean.build.configured.debug" depends="clean,build.configured.debug"/>
296
297   <!-- ======================== javadoc target =======================
298        We build these and copy in turn into the main bedework docs directory.
299
300        The org.bedework.projectdocs.home property allows each project to
301        locate the previously built javadocs so they can link to it.
302
303        We also assume access to the java api docs.
304        ================================================================= -->
305
306   <target name="javadoc" depends="init" description="Generate javadoc">
307     <property name="docs.home" location="${project.home}/docs"/>
308     <property name="org.bedework.projectdocs.home" location="${docs.home}/projectdocs"/>
309     <delete dir="${org.bedework.projectdocs.home}" />
310     <mkdir dir="${org.bedework.projectdocs.home}" />
311
312     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
313          target="javadoc" >
314       <property name="destdir"
315                 location="${org.bedework.projectdocs.home}/rpiutil/api" />
316     </ant>
317
318     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
319          target="javadoc" >
320       <property name="destdir"
321                 location="${org.bedework.projectdocs.home}/access/api" />
322     </ant>
323
324     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
325          target="javadoc" >
326       <property name="destdir"
327                 location="${org.bedework.projectdocs.home}/davutil/api" />
328     </ant>
329
330     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
331          target="javadoc" >
332       <property name="destdir"
333                 location="${org.bedework.projectdocs.home}/calendarapi/api" />
334     </ant>
335
336     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
337          target="javadoc" >
338       <property name="destdir"
339                 location="${org.bedework.projectdocs.home}/dumprestore/api" />
340     </ant>
341
342     <if>
343       <isset property="org.bedework.qs.build.synchml"/>
344       <then>
345         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
346              target="javadoc" >
347           <property name="destdir"
348                     location="${org.bedework.projectdocs.home}/synchml/api" />
349         </ant>
350       </then>
351     </if>
352
353     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
354          target="javadoc" >
355       <property name="destdir"
356                 location="${org.bedework.projectdocs.home}/webdav/api" />
357     </ant>
358
359     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
360          target="javadoc" >
361       <property name="destdir"
362                 location="${org.bedework.projectdocs.home}/caldav/api" />
363     </ant>
364
365     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
366          target="javadoc" >
367       <property name="destdir"
368                 location="${org.bedework.projectdocs.home}/caldavTest/api" />
369     </ant>
370
371     <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
372          target="javadoc" >
373       <property name="destdir"
374                 location="${org.bedework.projectdocs.home}/freebusy/api" />
375     </ant>
376
377     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
378          target="javadoc" >
379       <property name="destdir"
380                 location="${org.bedework.projectdocs.home}/bwtools/api" />
381     </ant>
382
383     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
384          target="javadoc" >
385       <property name="destdir"
386                 location="${org.bedework.projectdocs.home}/webapps/api" />
387     </ant>
388
389     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
390          target="javadoc" >
391       <property name="destdir"
392                 location="${org.bedework.projectdocs.home}/testsuite/api" />
393     </ant>
394   </target>
395
396   <!-- =================================================================
397        Targets to build sub-projects.
398        ================================================================= -->
399
400   <!-- .................................................................
401                           access
402        .................................................................. -->
403   <target name="build.access" depends="init"
404           description="builds the access project">
405     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
406            target="build-all" >
407       <property name="org.bedework.libcache.dir"
408                 location="${org.bedework.project.bedework}/libcache"/>
409     </ant>
410   </target>
411
412   <target name="clean.access" depends="init"
413           description="cleans the access project">
414     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
415            target="deep-clean" />
416   </target>
417
418   <target name="clean.build.access" depends="clean.access,build.access"
419           description="builds the access project"/>
420
421   <!-- .................................................................
422                           bwtools
423        .................................................................. -->
424   <target name="build.bwtools" depends="init"
425           description="builds the bwtools project">
426     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
427            target="build-all"  >
428       <property name="org.bedework.libcache.dir"
429                 location="${org.bedework.project.bedework}/libcache"/>
430     </ant>
431   </target>
432
433   <target name="clean.bwtools" depends="init"
434           description="clean the bwtools project">
435     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
436            target="deep-clean" />
437   </target>
438
439   <target name="clean.build.bwtools" depends="clean.bwtools,build.bwtools"
440           description="builds the bwtools project"/>
441
442   <!-- .................................................................
443                           caldav
444        .................................................................. -->
445   <target name="build.caldav" depends="init"
446           description="builds the caldav project">
447     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
448        target="build-all"  >
449       <property name="org.bedework.libcache.dir"
450                 location="${org.bedework.project.bedework}/libcache"/>
451     </ant>
452   </target>
453
454   <target name="clean.caldav" depends="init"
455           description="clean the caldav project">
456     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
457          target="deep-clean" />
458   </target>
459
460   <target name="clean.build.caldav" depends="clean.caldav,build.caldav"
461           description="clean builds the caldav project"/>
462
463   <!-- .................................................................
464                           caldavTest
465        .................................................................. -->
466   <target name="build.caldavTest" depends="init"
467           description="builds the caldavTest project">
468     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
469          target="build-all"  >
470       <property name="org.bedework.libcache.dir"
471                 location="${org.bedework.project.bedework}/libcache"/>
472     </ant>
473   </target>
474
475   <target name="clean.caldavTest" depends="init"
476           description="clean the caldavTest project">
477     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
478          target="deep-clean" />
479   </target>
480
481   <target name="clean.build.caldavTest" depends="clean.caldavTest,build.caldavTest"
482           description="clean builds the caldavTest project"/>
483
484   <!-- .................................................................
485                           calendarapi
486        .................................................................. -->
487   <target name="build.calendarapi" depends="init"
488           description="builds the calendar project">
489     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
490            target="build-all"  >
491       <property name="org.bedework.libcache.dir"
492                 location="${org.bedework.project.bedework}/libcache"/>
493     </ant>
494   </target>
495
496   <target name="clean.calendarapi" depends="init"
497           description="clean the calendar project">
498     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
499            target="deep-clean" />
500   </target>
501
502   <target name="clean.build.calendarapi" depends="clean.calendarapi,build.calendarapi"
503           description="clean builds the caldavTest project"/>
504
505   <!-- .................................................................
506                           davutil
507        .................................................................. -->
508   <target name="build.davutil" depends="init"
509           description="builds the davutil project">
510     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
511            target="build-all"  >
512       <property name="org.bedework.libcache.dir"
513                 location="${org.bedework.project.bedework}/libcache"/>
514     </ant>
515   </target>
516
517   <target name="clean.davutil" depends="init"
518           description="cleans the davutil project">
519     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
520            target="deep-clean" />
521   </target>
522
523   <target name="clean.build.davutil" depends="clean.davutil,build.davutil"
524           description="clean builds the davutil project"/>
525
526   <!-- .................................................................
527                           dumprestore
528        .................................................................. -->
529   <target name="build.dumprestore" depends="init"
530           description="builds the dumprestore project">
531     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
532            target="build-all"  >
533       <property name="org.bedework.libcache.dir"
534                 location="${org.bedework.project.bedework}/libcache"/>
535     </ant>
536   </target>
537
538   <target name="clean.dumprestore" depends="init"
539           description="clean the dumprestore project">
540     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
541            target="deep-clean" />
542   </target>
543
544   <target name="clean.build.dumprestore" depends="clean.dumprestore,build.dumprestore"
545           description="builds the dumprestore project"/>
546
547   <!-- .................................................................
548                           freebusy
549        .................................................................. -->
550   <target name="build.freebusy" depends="init"
551           description="builds the freebusy project">
552     <if>
553       <isset property="org.bedework.qs.build.freebusy"/>
554       <then>
555         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
556              target="build-all"  >
557           <property name="org.bedework.libcache.dir"
558                     location="${org.bedework.project.bedework}/libcache"/>
559         </ant>
560       </then>
561     </if>
562   </target>
563
564   <target name="clean.freebusy" depends="init"
565           description="cleans the freebusy project">
566     <if>
567       <isset property="org.bedework.qs.build.freebusy"/>
568       <then>
569         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
570              target="deep-clean" />
571       </then>
572     </if>
573   </target>
574
575   <target name="clean.build.freebusy" depends="clean.freebusy,build.freebusy"
576           description="builds the freebusy project"/>
577
578   <!-- .................................................................
579                           rpiutil
580        .................................................................. -->
581   <target name="build.rpiutil" depends="init"
582           description="builds the rpiutil project">
583     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
584            target="build-all"  >
585       <property name="org.bedework.libcache.dir"
586                 location="${org.bedework.project.bedework}/libcache"/>
587     </ant>
588   </target>
589
590   <target name="clean.rpiutil" depends="init"
591           description="cleans the rpiutil project">
592     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
593            target="deep-clean" />
594   </target>
595
596   <target name="clean.build.rpiutil" depends="clean.rpiutil,build.rpiutil"
597           description="builds the rpiutil project"/>
598
599   <!-- .................................................................
600                           synchml
601        .................................................................. -->
602   <target name="build.synchml" depends="init"
603           description="builds the synchml project">
604     <if>
605       <isset property="org.bedework.qs.build.synchml"/>
606       <then>
607         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
608              target="build-all"  >
609           <property name="org.bedework.libcache.dir"
610                     location="${org.bedework.project.bedework}/libcache"/>
611         </ant>
612       </then>
613     </if>
614   </target>
615
616   <target name="clean.synchml" depends="init"
617           description="clean the synchml project">
618     <if>
619       <isset property="org.bedework.qs.build.synchml"/>
620       <then>
621         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
622              target="deep-clean" />
623       </then>
624     </if>
625   </target>
626
627   <target name="clean.build.synchml" depends="clean.synchml,clean.synchml"
628           description="builds the synchml project"/>
629
630   <!-- .................................................................
631                           testsuite
632        .................................................................. -->
633   <target name="build.testsuite" depends="init"
634           description="builds the testsuite project">
635     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
636          target="build-all"  >
637       <property name="org.bedework.libcache.dir"
638                 location="${org.bedework.project.bedework}/libcache"/>
639     </ant>
640   </target>
641
642   <target name="clean.testsuite" depends="init"
643           description="clean the testsuite project">
644     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
645          target="deep-clean" />
646   </target>
647
648   <target name="clean.build.testsuite" depends="clean.testsuite,clean.testsuite"
649           description="builds the testsuite project"/>
650
651   <!-- .................................................................
652                           webapps
653        .................................................................. -->
654   <target name="build.webapps" depends="init"
655           description="builds the webapps project">
656     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
657            target="build-all"  >
658       <property name="org.bedework.libcache.dir"
659                 location="${org.bedework.project.bedework}/libcache"/>
660     </ant>
661   </target>
662
663   <target name="clean.webapps" depends="init"
664           description="clean the webapps project">
665     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
666            target="deep-clean" />
667   </target>
668
669   <target name="clean.build.webapps" depends="clean.webapps,build.webapps"
670           description="builds the webapps project"/>
671
672   <!-- .................................................................
673                           webdav
674        .................................................................. -->
675   <target name="build.webdav" depends="init"
676           description="builds the webdav project">
677     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
678          target="build-all"  >
679       <property name="org.bedework.libcache.dir"
680                 location="${org.bedework.project.bedework}/libcache"/>
681     </ant>
682   </target>
683
684   <target name="clean.webdav" depends="init"
685           description="cleans the webdav project">
686     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
687          target="deep-clean" />
688   </target>
689
690   <target name="clean.build.webdav" depends="clean.webdav,build.webdav"
691           description="builds the webdav project"/>
692
693   <!-- =================================================================
694        Targets to build sub-components of this project.
695        ================================================================= -->
696
697   <target name="build.deployutil" depends="init"
698           description="builds the deployutil component">
699     <ant antfile="${org.bedework.project.bedework}/deployutil/build.xml" inheritrefs="true"
700            target="build" >
701       <property name="build.jar.file" location="${org.bedework.deployutil.jar}" />
702     </ant>
703   </target>
704
705   <!-- =================================================================
706        Build and run the directory tools
707        ================================================================= -->
708
709   <target name="initDir" depends="init"
710           description="Build and run directory init">
711     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
712               target="initDir"
713               return="org.bedework.directory.init.status" >
714       <propertyset>
715         <propertyref prefix="org.bedework.directory."/>
716       </propertyset>
717       <property name="org.bedework.libcache.dir"
718                 location="${org.bedework.project.bedework}/libcache"/>
719     </antfetch>
720   </target>
721
722   <target name="initDirForQuickstart" depends="init"
723           description="Build and run directory tool to initialise a quickstart system">
724     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
725               target="initDirForQuickstart"
726               return="org.bedework.directory.init.status" >
727       <propertyset>
728         <propertyref prefix="org.bedework.directory."/>
729       </propertyset>
730       <property name="org.bedework.libcache.dir"
731                 location="${org.bedework.project.bedework}/libcache"/>
732     </antfetch>
733   </target>
734
735   <target name="addUser" depends="init"
736           description="Build and run directory tools to add a user">
737     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
738            target="addUser" >
739       <propertyset>
740         <propertyref prefix="org.bedework.directory."/>
741       </propertyset>
742       <property name="org.bedework.libcache.dir"
743                 location="${org.bedework.project.bedework}/libcache"/>
744     </ant>
745   </target>
746
747   <target name="addGroup" depends="init"
748           description="Build and run directory tools to add a group">
749     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
750            target="addGroup" >
751       <propertyset>
752         <propertyref prefix="org.bedework.directory."/>
753       </propertyset>
754       <property name="org.bedework.libcache.dir"
755                 location="${org.bedework.project.bedework}/libcache"/>
756     </ant>
757   </target>
758
759   <target name="addGroupMember" depends="init"
760           description="Build and run directory tools to add a group member">
761     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
762            target="addGroupMember" >
763       <propertyset>
764         <propertyref prefix="org.bedework.directory."/>
765       </propertyset>
766       <property name="org.bedework.libcache.dir"
767                 location="${org.bedework.project.bedework}/libcache"/>
768     </ant>
769   </target>
770
771   <!-- =================================================================
772        Build and run the unit test suite
773        ================================================================= -->
774
775   <target name="bld.test" depends="init"
776           description="Build and run tests">
777     <ant antfile="${calendar.build.file}" inheritrefs="true"
778          target="bld.test" />
779   </target>
780
781   <target name="run.test" depends="init"
782           description="Build and run tests">
783     <ant antfile="${calendar.build.file}" inheritrefs="true"
784          target="run.test" />
785   </target>
786
787   <target name="run.test.debug" depends="init"
788           description="Build and run tests">
789     <ant antfile="${calendar.build.file}" inheritrefs="true"
790          target="run.test"  >
791       <property name="org.bedework.debug" value="yes" />
792     </ant>
793   </target>
794
795   <!-- Rebuild the http test suite only -->
796   <target name="httptest" depends="init"
797           description="Run httptest suite" >
798     <input message="httptest may destroy this calendar db. Proceed with test"
799            validargs="y,n"
800            addproperty="do.httptest" />
801     <condition property="do.abort">
802       <equals arg1="n" arg2="${do.httptest}"/>
803     </condition>
804     <fail if="do.abort">httptest aborted by user.</fail>
805
806     <ant antfile="${calendar.build.file}" inheritrefs="true"
807            target="bld.httptest" />
808
809     <ant antfile="${calendar.build.file}" inheritrefs="true"
810            target="run.httptest" />
811   </target>
812 </project>
Note: See TracBrowser for help on using the browser.