root/trunk/build.xml

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

Move some build stuff into its own repository.

Change build files ot use same properties throughout

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="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     <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
343          target="javadoc" >
344       <property name="destdir"
345                 location="${org.bedework.projectdocs.home}/synchml/api" />
346     </ant>
347
348     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
349          target="javadoc" >
350       <property name="destdir"
351                 location="${org.bedework.projectdocs.home}/webdav/api" />
352     </ant>
353
354     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
355          target="javadoc" >
356       <property name="destdir"
357                 location="${org.bedework.projectdocs.home}/caldav/api" />
358     </ant>
359
360     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
361          target="javadoc" >
362       <property name="destdir"
363                 location="${org.bedework.projectdocs.home}/caldavTest/api" />
364     </ant>
365
366     <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
367          target="javadoc" >
368       <property name="destdir"
369                 location="${org.bedework.projectdocs.home}/freebusy/api" />
370     </ant>
371
372     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
373          target="javadoc" >
374       <property name="destdir"
375                 location="${org.bedework.projectdocs.home}/bwtools/api" />
376     </ant>
377
378     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
379          target="javadoc" >
380       <property name="destdir"
381                 location="${org.bedework.projectdocs.home}/webapps/api" />
382     </ant>
383
384     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
385          target="javadoc" >
386       <property name="destdir"
387                 location="${org.bedework.projectdocs.home}/testsuite/api" />
388     </ant>
389   </target>
390
391   <!-- =================================================================
392        Targets to build sub-projects.
393        ================================================================= -->
394
395   <!-- .................................................................
396                           access
397        .................................................................. -->
398   <target name="build.access" depends="init"
399           description="builds the access project">
400     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
401            target="build-all" >
402       <property name="org.bedework.libcache.dir"
403                 location="${org.bedework.project.bedework}/libcache"/>
404     </ant>
405   </target>
406
407   <target name="clean.access" depends="init"
408           description="cleans the access project">
409     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
410            target="deep-clean" />
411   </target>
412
413   <target name="clean.build.access" depends="clean.access,build.access"
414           description="builds the access project"/>
415
416   <!-- .................................................................
417                           bwtools
418        .................................................................. -->
419   <target name="build.bwtools" depends="init"
420           description="builds the bwtools project">
421     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
422            target="build-all"  >
423       <property name="org.bedework.libcache.dir"
424                 location="${org.bedework.project.bedework}/libcache"/>
425     </ant>
426   </target>
427
428   <target name="clean.bwtools" depends="init"
429           description="clean the bwtools project">
430     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
431            target="deep-clean" />
432   </target>
433
434   <target name="clean.build.bwtools" depends="clean.bwtools,build.bwtools"
435           description="builds the bwtools project"/>
436
437   <!-- .................................................................
438                           caldav
439        .................................................................. -->
440   <target name="build.caldav" depends="init"
441           description="builds the caldav project">
442     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
443        target="build-all"  >
444       <property name="org.bedework.libcache.dir"
445                 location="${org.bedework.project.bedework}/libcache"/>
446     </ant>
447   </target>
448
449   <target name="clean.caldav" depends="init"
450           description="clean the caldav project">
451     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
452          target="deep-clean" />
453   </target>
454
455   <target name="clean.build.caldav" depends="clean.caldav,build.caldav"
456           description="clean builds the caldav project"/>
457
458   <!-- .................................................................
459                           caldavTest
460        .................................................................. -->
461   <target name="build.caldavTest" depends="init"
462           description="builds the caldavTest project">
463     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
464          target="build-all"  >
465       <property name="org.bedework.libcache.dir"
466                 location="${org.bedework.project.bedework}/libcache"/>
467     </ant>
468   </target>
469
470   <target name="clean.caldavTest" depends="init"
471           description="clean the caldavTest project">
472     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
473          target="deep-clean" />
474   </target>
475
476   <target name="clean.build.caldavTest" depends="clean.caldavTest,build.caldavTest"
477           description="clean builds the caldavTest project"/>
478
479   <!-- .................................................................
480                           calendarapi
481        .................................................................. -->
482   <target name="build.calendarapi" depends="init"
483           description="builds the calendar project">
484     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
485            target="build-all"  >
486       <property name="org.bedework.libcache.dir"
487                 location="${org.bedework.project.bedework}/libcache"/>
488     </ant>
489   </target>
490
491   <target name="clean.calendarapi" depends="init"
492           description="clean the calendar project">
493     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
494            target="deep-clean" />
495   </target>
496
497   <target name="clean.build.calendarapi" depends="clean.calendarapi,build.calendarapi"
498           description="clean builds the caldavTest project"/>
499
500   <!-- .................................................................
501                           davutil
502        .................................................................. -->
503   <target name="build.davutil" depends="init"
504           description="builds the davutil project">
505     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
506            target="build-all"  >
507       <property name="org.bedework.libcache.dir"
508                 location="${org.bedework.project.bedework}/libcache"/>
509     </ant>
510   </target>
511
512   <target name="clean.davutil" depends="init"
513           description="cleans the davutil project">
514     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
515            target="deep-clean" />
516   </target>
517
518   <target name="clean.build.davutil" depends="clean.davutil,build.davutil"
519           description="clean builds the davutil project"/>
520
521   <!-- .................................................................
522                           dumprestore
523        .................................................................. -->
524   <target name="build.dumprestore" depends="init"
525           description="builds the dumprestore project">
526     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
527            target="build-all"  >
528       <property name="org.bedework.libcache.dir"
529                 location="${org.bedework.project.bedework}/libcache"/>
530     </ant>
531   </target>
532
533   <target name="clean.dumprestore" depends="init"
534           description="clean the dumprestore project">
535     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
536            target="deep-clean" />
537   </target>
538
539   <target name="clean.build.dumprestore" depends="clean.dumprestore,build.dumprestore"
540           description="builds the dumprestore project"/>
541
542   <!-- .................................................................
543                           freebusy
544        .................................................................. -->
545   <target name="build.freebusy" depends="init"
546           description="builds the freebusy project">
547     <if>
548       <isset property="org.bedework.qs.build.freebusy"/>
549       <then>
550         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
551              target="build-all"  >
552           <property name="org.bedework.libcache.dir"
553                     location="${org.bedework.project.bedework}/libcache"/>
554         </ant>
555       </then>
556     </if>
557   </target>
558
559   <target name="clean.freebusy" depends="init"
560           description="cleans the freebusy project">
561     <if>
562       <isset property="org.bedework.qs.build.freebusy"/>
563       <then>
564         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
565              target="deep-clean" />
566       </then>
567     </if>
568   </target>
569
570   <target name="clean.build.freebusy" depends="clean.freebusy,build.freebusy"
571           description="builds the freebusy project"/>
572
573   <!-- .................................................................
574                           rpiutil
575        .................................................................. -->
576   <target name="build.rpiutil" depends="init"
577           description="builds the rpiutil project">
578     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
579            target="build-all"  >
580       <property name="org.bedework.libcache.dir"
581                 location="${org.bedework.project.bedework}/libcache"/>
582     </ant>
583   </target>
584
585   <target name="clean.rpiutil" depends="init"
586           description="cleans the rpiutil project">
587     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
588            target="deep-clean" />
589   </target>
590
591   <target name="clean.build.rpiutil" depends="clean.rpiutil,build.rpiutil"
592           description="builds the rpiutil project"/>
593
594   <!-- .................................................................
595                           synchml
596        .................................................................. -->
597   <target name="build.synchml" depends="init"
598           description="builds the synchml project">
599     <if>
600       <isset property="org.bedework.qs.build.synchml"/>
601       <then>
602         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
603              target="build-all"  >
604           <property name="org.bedework.libcache.dir"
605                     location="${org.bedework.project.bedework}/libcache"/>
606         </ant>
607       </then>
608     </if>
609   </target>
610
611   <target name="clean.synchml" depends="init"
612           description="clean the synchml project">
613     <if>
614       <isset property="org.bedework.qs.build.synchml"/>
615       <then>
616         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
617              target="deep-clean" />
618       </then>
619     </if>
620   </target>
621
622   <target name="clean.build.synchml" depends="clean.synchml,clean.synchml"
623           description="builds the synchml project"/>
624
625   <!-- .................................................................
626                           testsuite
627        .................................................................. -->
628   <target name="build.testsuite" depends="init"
629           description="builds the testsuite project">
630     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
631          target="build-all"  >
632       <property name="org.bedework.libcache.dir"
633                 location="${org.bedework.project.bedework}/libcache"/>
634     </ant>
635   </target>
636
637   <target name="clean.testsuite" depends="init"
638           description="clean the testsuite project">
639     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
640          target="deep-clean" />
641   </target>
642
643   <target name="clean.build.testsuite" depends="clean.testsuite,clean.testsuite"
644           description="builds the testsuite project"/>
645
646   <!-- .................................................................
647                           webapps
648        .................................................................. -->
649   <target name="build.webapps" depends="init"
650           description="builds the webapps project">
651     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
652            target="build-all"  >
653       <property name="org.bedework.libcache.dir"
654                 location="${org.bedework.project.bedework}/libcache"/>
655     </ant>
656   </target>
657
658   <target name="clean.webapps" depends="init"
659           description="clean the webapps project">
660     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
661            target="deep-clean" />
662   </target>
663
664   <target name="clean.build.webapps" depends="clean.webapps,build.webapps"
665           description="builds the webapps project"/>
666
667   <!-- .................................................................
668                           webdav
669        .................................................................. -->
670   <target name="build.webdav" depends="init"
671           description="builds the webdav project">
672     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
673          target="build-all"  >
674       <property name="org.bedework.libcache.dir"
675                 location="${org.bedework.project.bedework}/libcache"/>
676     </ant>
677   </target>
678
679   <target name="clean.webdav" depends="init"
680           description="cleans the webdav project">
681     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
682          target="deep-clean" />
683   </target>
684
685   <target name="clean.build.webdav" depends="clean.webdav,build.webdav"
686           description="builds the webdav project"/>
687
688   <!-- =================================================================
689        Targets to build sub-components of this project.
690        ================================================================= -->
691
692   <target name="build.deployutil" depends="init"
693           description="builds the deployutil component">
694     <ant antfile="${org.bedework.project.bedework}/deployutil/build.xml" inheritrefs="true"
695            target="build" >
696       <property name="build.jar.file" location="${org.bedework.deployutil.jar}" />
697     </ant>
698   </target>
699
700   <!-- =================================================================
701        Build and run the directory tools
702        ================================================================= -->
703
704   <target name="initDir" depends="init"
705           description="Build and run directory init">
706     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
707               target="initDir"
708               return="org.bedework.directory.init.status" >
709       <propertyset>
710         <propertyref prefix="org.bedework.directory."/>
711       </propertyset>
712       <property name="org.bedework.libcache.dir"
713                 location="${org.bedework.project.bedework}/libcache"/>
714     </antfetch>
715   </target>
716
717   <target name="initDirForQuickstart" depends="init"
718           description="Build and run directory tool to initialise a quickstart system">
719     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
720               target="initDirForQuickstart"
721               return="org.bedework.directory.init.status" >
722       <propertyset>
723         <propertyref prefix="org.bedework.directory."/>
724       </propertyset>
725       <property name="org.bedework.libcache.dir"
726                 location="${org.bedework.project.bedework}/libcache"/>
727     </antfetch>
728   </target>
729
730   <target name="addUser" depends="init"
731           description="Build and run directory tools to add a user">
732     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
733            target="addUser" >
734       <propertyset>
735         <propertyref prefix="org.bedework.directory."/>
736       </propertyset>
737       <property name="org.bedework.libcache.dir"
738                 location="${org.bedework.project.bedework}/libcache"/>
739     </ant>
740   </target>
741
742   <target name="addGroup" depends="init"
743           description="Build and run directory tools to add a group">
744     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
745            target="addGroup" >
746       <propertyset>
747         <propertyref prefix="org.bedework.directory."/>
748       </propertyset>
749       <property name="org.bedework.libcache.dir"
750                 location="${org.bedework.project.bedework}/libcache"/>
751     </ant>
752   </target>
753
754   <target name="addGroupMember" depends="init"
755           description="Build and run directory tools to add a group member">
756     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
757            target="addGroupMember" >
758       <propertyset>
759         <propertyref prefix="org.bedework.directory."/>
760       </propertyset>
761       <property name="org.bedework.libcache.dir"
762                 location="${org.bedework.project.bedework}/libcache"/>
763     </ant>
764   </target>
765
766   <!-- =================================================================
767        Build and run the unit test suite
768        ================================================================= -->
769
770   <target name="bld.test" depends="init"
771           description="Build and run tests">
772     <ant antfile="${calendar.build.file}" inheritrefs="true"
773          target="bld.test" />
774   </target>
775
776   <target name="run.test" depends="init"
777           description="Build and run tests">
778     <ant antfile="${calendar.build.file}" inheritrefs="true"
779          target="run.test" />
780   </target>
781
782   <target name="run.test.debug" depends="init"
783           description="Build and run tests">
784     <ant antfile="${calendar.build.file}" inheritrefs="true"
785          target="run.test"  >
786       <property name="org.bedework.debug" value="yes" />
787     </ant>
788   </target>
789
790   <!-- Rebuild the http test suite only -->
791   <target name="httptest" depends="init"
792           description="Run httptest suite" >
793     <input message="httptest may destroy this calendar db. Proceed with test"
794            validargs="y,n"
795            addproperty="do.httptest" />
796     <condition property="do.abort">
797       <equals arg1="n" arg2="${do.httptest}"/>
798     </condition>
799     <fail if="do.abort">httptest aborted by user.</fail>
800
801     <ant antfile="${calendar.build.file}" inheritrefs="true"
802            target="bld.httptest" />
803
804     <ant antfile="${calendar.build.file}" inheritrefs="true"
805            target="run.httptest" />
806   </target>
807 </project>
Note: See TracBrowser for help on using the browser.