root/trunk/build.xml

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

More install script

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   <!-- Where we put other projects -->
19   <property name="org.bedework.projects"
20             location="${org.bedework.project.bedework}/projects" />
21
22   <property name="org.bedework.project.access"
23             location="${org.bedework.projects}/access" />
24
25   <property name="org.bedework.project.bwtools"
26             location="${org.bedework.projects}/bwtools" />
27
28   <property name="org.bedework.project.caldav"
29             location="${org.bedework.projects}/caldav" />
30
31   <property name="org.bedework.project.caldavTest"
32             location="${org.bedework.projects}/caldavTest" />
33
34   <property name="org.bedework.project.calendarapi"
35             location="${org.bedework.projects}/calendarapi" />
36
37   <property name="org.bedework.project.davutil"
38             location="${org.bedework.projects}/davutil" />
39
40   <property name="org.bedework.project.dumprestore"
41             location="${org.bedework.projects}/dumprestore" />
42
43   <property name="org.bedework.project.freebusy"
44             location="${org.bedework.projects}/freebusy" />
45
46   <property name="org.bedework.project.rpiutil"
47             location="${org.bedework.projects}/rpiutil" />
48
49   <property name="org.bedework.project.synchml"
50             location="${org.bedework.projects}/synchml" />
51
52   <property name="org.bedework.project.testsuite"
53             location="${org.bedework.projects}/testsuite" />
54
55   <property name="org.bedework.project.webapps"
56             location="${org.bedework.projects}/webapps" />
57
58   <property name="org.bedework.project.webdav"
59             location="${org.bedework.projects}/webdav" />
60
61   <target name="README" depends="init"
62           description="Describe targets and their usage">
63     <loadfile property="org.bedework.README"
64               srcFile="${org.bedework.project.bedework}/docs/README"/>
65     <echo message="${org.bedework.README}" />
66   </target>
67
68   <target name="usage" depends="init"
69           description="Describe targets and their usage">
70     <echo message="As distributed the package should be ready to go."/>
71     <echo message="Ensure ant is on your path, (a version is in the" />
72     <echo message="package)"/>
73     <echo message=""/>
74     <echo message="First in one window do"/>
75     <echo message="    ant hsqldb"/>
76     <echo message="This will start the hsqldb server ready for the "/>
77     <echo message="application."/>
78     <echo message=""/>
79     <echo message="In another window do"/>
80     <echo message="    ant tomcatstart"/>
81     <echo message=""/>
82     <echo message="Once tomcat is running you should be able to go to a"/>
83     <echo message="browser and connect to"/>
84     <echo message="    http://localhost:8080/bedework"/>
85     <echo message="and follow the instructions."/>
86     <echo message=""/>
87     <echo message="To build the calendar do"/>
88     <echo message="    ant deploy    or "/>
89     <echo message="    ant deploy.debug "/>
90     <echo message="which does a build and deploy of all components"/>
91     <echo message=""/>
92     <echo message="To rebuild the calendar do"/>
93     <echo message="    ant clean.deploy    or "/>
94     <echo message="    ant clean.deploy.debug "/>
95     <echo message="which does a clean, build and deploy of all components"/>
96     <echo message=""/>
97     <echo message="See documentation in the docs directory or on bedework.org"/>
98     <echo message="for instructions on creating a locally configured calendar application"/>
99     <echo message=""/>
100   </target>
101
102   <target name="init" >
103     <property name="org.bedework.qs.build.synchml" value="yes" />
104
105     <!-- Overriding this when invoking ant allows different user property
106          files to be included e.g.
107             ant -Dorg.bedework.user.build.properties=/home/me/bedework.properties ...
108             -->
109     <property name="org.bedework.user.build.properties"
110               location="${user.home}/bedework.build.properties" />
111
112     <echo message="Load user properties from ${org.bedework.user.build.properties}" />
113
114     <!-- Load user property definition overrides -->
115     <property file="${org.bedework.user.build.properties}" />
116
117     <!-- ===============================================================
118               Default properties.
119          =============================================================== -->
120
121     <property name="project.home" location="${org.bedework.project.bedework}"/>
122
123     <property file="${project.home}/build.properties" />
124
125     <property name="project.name" value="${org.bedework.package.name}"/>
126     <property name="project.version" value="${org.bedework.version}"/>
127
128     <property name="dist.home" location="${project.home}/dist"/>
129     <property name="lib.dir" location="${project.home}/lib"/>
130     <property name="resources.dir" location="${project.home}/resources"/>
131     <property name="bin.home" location="${project.home}/bin"/>
132
133     <property name="build.dir" location="${project.home}/build"/>
134     <property name="buildjar" location="${build.dir}/buildjar.xml"/>
135     <property name="buildsh" location="${build.dir}/buildsh.xml"/>
136     <property name="buildwar" location="${build.dir}/buildwar.xml"/>
137
138     <property name="org.bedework.libcache.dir"
139               location="${project.home}/libcache"/>
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   </target>
399
400   <target name="clean.access" depends="init"
401           description="cleans the access project">
402     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
403            target="deep-clean" />
404   </target>
405
406   <target name="clean.build.access" depends="clean.access,build.access"
407           description="builds the access project"/>
408
409   <!-- .................................................................
410                           bwtools
411        .................................................................. -->
412   <target name="build.bwtools" depends="init"
413           description="builds the bwtools project">
414     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
415            target="build-all" />
416   </target>
417
418   <target name="clean.bwtools" depends="init"
419           description="clean the bwtools project">
420     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
421            target="deep-clean" />
422   </target>
423
424   <target name="clean.build.bwtools" depends="clean.bwtools,build.bwtools"
425           description="builds the bwtools project"/>
426
427   <!-- .................................................................
428                           caldav
429        .................................................................. -->
430   <target name="build.caldav" depends="init"
431           description="builds the caldav project">
432     <if>
433       <isset property="org.bedework.qs.build.caldav"/>
434       <then>
435         <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
436              target="build-all" />
437       </then>
438     </if>
439   </target>
440
441   <target name="clean.caldav" depends="init"
442           description="clean the caldav project">
443     <if>
444       <isset property="org.bedework.qs.build.caldav"/>
445       <then>
446         <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
447              target="deep-clean" />
448       </then>
449     </if>
450   </target>
451
452   <target name="clean.build.caldav" depends="clean.caldav,build.caldav"
453           description="clean builds the caldav project"/>
454
455   <!-- .................................................................
456                           caldavTest
457        .................................................................. -->
458   <target name="build.caldavTest" depends="init"
459           description="builds the caldavTest project">
460     <if>
461       <isset property="org.bedework.qs.build.caldav"/>
462       <then>
463         <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
464              target="build-all" />
465       </then>
466     </if>
467   </target>
468
469   <target name="clean.caldavTest" depends="init"
470           description="clean the caldavTest project">
471     <if>
472       <isset property="org.bedework.qs.build.caldav"/>
473       <then>
474         <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
475              target="deep-clean" />
476       </then>
477     </if>
478   </target>
479
480   <target name="clean.build.caldavTest" depends="clean.caldavTest,build.caldavTest"
481           description="clean builds the caldavTest project"/>
482
483   <!-- .................................................................
484                           calendarapi
485        .................................................................. -->
486   <target name="build.calendarapi" depends="init"
487           description="builds the calendar project">
488     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
489            target="build-all" />
490   </target>
491
492   <target name="clean.calendarapi" depends="init"
493           description="clean the calendar project">
494     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
495            target="deep-clean" />
496   </target>
497
498   <target name="clean.build.calendarapi" depends="clean.calendarapi,build.calendarapi"
499           description="clean builds the caldavTest project"/>
500
501   <!-- .................................................................
502                           davutil
503        .................................................................. -->
504   <target name="build.davutil" depends="init"
505           description="builds the davutil project">
506     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
507            target="build-all" />
508   </target>
509
510   <target name="clean.davutil" depends="init"
511           description="cleans the davutil project">
512     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
513            target="deep-clean" />
514   </target>
515
516   <target name="clean.build.davutil" depends="clean.davutil,build.davutil"
517           description="clean builds the davutil project"/>
518
519   <!-- .................................................................
520                           dumprestore
521        .................................................................. -->
522   <target name="build.dumprestore" depends="init"
523           description="builds the dumprestore project">
524     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
525            target="build-all" />
526   </target>
527
528   <target name="clean.dumprestore" depends="init"
529           description="clean the dumprestore project">
530     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
531            target="deep-clean" />
532   </target>
533
534   <target name="clean.build.dumprestore" depends="clean.dumprestore,build.dumprestore"
535           description="builds the dumprestore project"/>
536
537   <!-- .................................................................
538                           freebusy
539        .................................................................. -->
540   <target name="build.freebusy" depends="init"
541           description="builds the freebusy project">
542     <if>
543       <isset property="org.bedework.qs.build.freebusy"/>
544       <then>
545         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
546              target="build-all" />
547       </then>
548     </if>
549   </target>
550
551   <target name="clean.freebusy" depends="init"
552           description="cleans the freebusy project">
553     <if>
554       <isset property="org.bedework.qs.build.freebusy"/>
555       <then>
556         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
557              target="deep-clean" />
558       </then>
559     </if>
560   </target>
561
562   <target name="clean.build.freebusy" depends="clean.freebusy,build.freebusy"
563           description="builds the freebusy project"/>
564
565   <!-- .................................................................
566                           rpiutil
567        .................................................................. -->
568   <target name="build.rpiutil" depends="init"
569           description="builds the rpiutil project">
570     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
571            target="build-all" />
572   </target>
573
574   <target name="clean.rpiutil" depends="init"
575           description="cleans the rpiutil project">
576     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
577            target="deep-clean" />
578   </target>
579
580   <target name="clean.build.rpiutil" depends="clean.rpiutil,build.rpiutil"
581           description="builds the rpiutil project"/>
582
583   <!-- .................................................................
584                           synchml
585        .................................................................. -->
586   <target name="build.synchml" depends="init"
587           description="builds the synchml project">
588     <if>
589       <isset property="org.bedework.qs.build.synchml"/>
590       <then>
591         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
592              target="build-all" />
593       </then>
594     </if>
595   </target>
596
597   <target name="clean.synchml" depends="init"
598           description="clean 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="deep-clean" />
604       </then>
605     </if>
606   </target>
607
608   <target name="clean.build.synchml" depends="clean.synchml,clean.synchml"
609           description="builds the synchml project"/>
610
611   <!-- .................................................................
612                           testsuite
613        .................................................................. -->
614   <target name="build.testsuite" depends="init"
615           description="builds the testsuite project">
616     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
617          target="build-all" />
618   </target>
619
620   <target name="clean.testsuite" depends="init"
621           description="clean the testsuite project">
622     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
623          target="deep-clean" />
624   </target>
625
626   <target name="clean.build.testsuite" depends="clean.testsuite,clean.testsuite"
627           description="builds the testsuite project"/>
628
629   <!-- .................................................................
630                           webapps
631        .................................................................. -->
632   <target name="build.webapps" depends="init"
633           description="builds the webapps project">
634     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
635            target="build-all" />
636   </target>
637
638   <target name="clean.webapps" depends="init"
639           description="clean the webapps project">
640     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
641            target="deep-clean" />
642   </target>
643
644   <target name="clean.build.webapps" depends="clean.webapps,build.webapps"
645           description="builds the webapps project"/>
646
647   <!-- .................................................................
648                           webdav
649        .................................................................. -->
650   <target name="build.webdav" depends="init"
651           description="builds the webdav project">
652     <if>
653       <isset property="org.bedework.qs.build.caldav"/>
654       <then>
655         <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
656              target="build-all" />
657       </then>
658     </if>
659   </target>
660
661   <target name="clean.webdav" depends="init"
662           description="cleans the webdav project">
663     <if>
664       <isset property="org.bedework.qs.build.caldav"/>
665       <then>
666         <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
667              target="deep-clean" />
668       </then>
669     </if>
670   </target>
671
672   <target name="clean.build.webdav" depends="clean.webdav,build.webdav"
673           description="builds the webdav project"/>
674
675   <!-- =================================================================
676        Targets to build sub-components of this project.
677        ================================================================= -->
678
679   <target name="build.deployutil" depends="init"
680           description="builds the deployutil component">
681     <ant antfile="${org.bedework.project.bedework}/deployutil/build.xml" inheritrefs="true"
682            target="build" >
683       <property name="build.jar.file" location="${org.bedework.deployutil.jar}" />
684     </ant>
685   </target>
686
687   <!-- =================================================================
688        Build and run the directory tools
689        ================================================================= -->
690
691   <target name="initDir" depends="init"
692           description="Build and run directory init">
693     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
694               target="initDir"
695               return="org.bedework.directory.init.status" >
696       <propertyset>
697         <propertyref prefix="org.bedework.directory."/>
698       </propertyset>
699     </antfetch>
700   </target>
701
702   <target name="addUser" depends="init"
703           description="Build and run directory tools to add a user">
704     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
705            target="addUser" >
706       <propertyset>
707         <propertyref prefix="org.bedework.directory."/>
708       </propertyset>
709     </ant>
710   </target>
711
712   <target name="addGroup" depends="init"
713           description="Build and run directory tools to add a group">
714     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
715            target="addGroup" >
716       <propertyset>
717         <propertyref prefix="org.bedework.directory."/>
718       </propertyset>
719     </ant>
720   </target>
721
722   <target name="addGroupMember" depends="init"
723           description="Build and run directory tools to add a group member">
724     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
725            target="addGroupMember" >
726       <propertyset>
727         <propertyref prefix="org.bedework.directory."/>
728       </propertyset>
729     </ant>
730   </target>
731
732   <!-- =================================================================
733        Build and run the unit test suite
734        ================================================================= -->
735
736   <target name="bld.test" depends="init"
737           description="Build and run tests">
738     <ant antfile="${calendar.build.file}" inheritrefs="true"
739          target="bld.test" />
740   </target>
741
742   <target name="run.test" depends="init"
743           description="Build and run tests">
744     <ant antfile="${calendar.build.file}" inheritrefs="true"
745          target="run.test" />
746   </target>
747
748   <target name="run.test.debug" depends="init"
749           description="Build and run tests">
750     <ant antfile="${calendar.build.file}" inheritrefs="true"
751          target="run.test"  >
752       <property name="org.bedework.debug" value="yes" />
753     </ant>
754   </target>
755
756   <!-- Rebuild the http test suite only -->
757   <target name="httptest" depends="init"
758           description="Run httptest suite" >
759     <input message="httptest may destroy this calendar db. Proceed with test"
760            validargs="y,n"
761            addproperty="do.httptest" />
762     <condition property="do.abort">
763       <equals arg1="n" arg2="${do.httptest}"/>
764     </condition>
765     <fail if="do.abort">httptest aborted by user.</fail>
766
767     <ant antfile="${calendar.build.file}" inheritrefs="true"
768            target="bld.httptest" />
769
770     <ant antfile="${calendar.build.file}" inheritrefs="true"
771            target="run.httptest" />
772   </target>
773 </project>
Note: See TracBrowser for help on using the browser.