root/trunk/build.xml

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

Fix up code to add a user to the directory

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. Each sub-project generates a libapi
389        directory which contains the public api for that project.
390        ================================================================= -->
391
392   <!-- .................................................................
393                           access
394        .................................................................. -->
395   <target name="build.access" depends="init"
396           description="builds the access project">
397     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
398            target="build-all" />
399   </target>
400
401   <target name="clean.access" depends="init"
402           description="cleans the access project">
403     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
404            target="deep-clean" />
405   </target>
406
407   <target name="clean.build.access" depends="clean.access,build.access"
408           description="builds the access project"/>
409
410   <!-- .................................................................
411                           bwtools
412        .................................................................. -->
413   <target name="build.bwtools" depends="init"
414           description="builds the bwtools project">
415     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
416            target="build-all" />
417   </target>
418
419   <target name="clean.bwtools" depends="init"
420           description="clean the bwtools project">
421     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
422            target="deep-clean" />
423   </target>
424
425   <target name="clean.build.bwtools" depends="clean.bwtools,build.bwtools"
426           description="builds the bwtools project"/>
427
428   <!-- .................................................................
429                           caldav
430        .................................................................. -->
431   <target name="build.caldav" depends="init"
432           description="builds the caldav project">
433     <if>
434       <isset property="org.bedework.qs.build.caldav"/>
435       <then>
436         <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
437              target="build-all" />
438       </then>
439     </if>
440   </target>
441
442   <target name="clean.caldav" depends="init"
443           description="clean the caldav project">
444     <if>
445       <isset property="org.bedework.qs.build.caldav"/>
446       <then>
447         <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
448              target="deep-clean" />
449       </then>
450     </if>
451   </target>
452
453   <target name="clean.build.caldav" depends="clean.caldav,build.caldav"
454           description="clean builds the caldav project"/>
455
456   <!-- .................................................................
457                           caldavTest
458        .................................................................. -->
459   <target name="build.caldavTest" depends="init"
460           description="builds the caldavTest project">
461     <if>
462       <isset property="org.bedework.qs.build.caldav"/>
463       <then>
464         <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
465              target="build-all" />
466       </then>
467     </if>
468   </target>
469
470   <target name="clean.caldavTest" depends="init"
471           description="clean the caldavTest project">
472     <if>
473       <isset property="org.bedework.qs.build.caldav"/>
474       <then>
475         <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
476              target="deep-clean" />
477       </then>
478     </if>
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   </target>
492
493   <target name="clean.calendarapi" depends="init"
494           description="clean the calendar project">
495     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
496            target="deep-clean" />
497   </target>
498
499   <target name="clean.build.calendarapi" depends="clean.calendarapi,build.calendarapi"
500           description="clean builds the caldavTest project"/>
501
502   <!-- .................................................................
503                           davutil
504        .................................................................. -->
505   <target name="build.davutil" depends="init"
506           description="builds the davutil project">
507     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
508            target="build-all" />
509   </target>
510
511   <target name="clean.davutil" depends="init"
512           description="cleans the davutil project">
513     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
514            target="deep-clean" />
515   </target>
516
517   <target name="clean.build.davutil" depends="clean.davutil,build.davutil"
518           description="clean builds the davutil project"/>
519
520   <!-- .................................................................
521                           dumprestore
522        .................................................................. -->
523   <target name="build.dumprestore" depends="init"
524           description="builds the dumprestore project">
525     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
526            target="build-all" />
527   </target>
528
529   <target name="clean.dumprestore" depends="init"
530           description="clean the dumprestore project">
531     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
532            target="deep-clean" />
533   </target>
534
535   <target name="clean.build.dumprestore" depends="clean.dumprestore,build.dumprestore"
536           description="builds the dumprestore project"/>
537
538   <!-- .................................................................
539                           freebusy
540        .................................................................. -->
541   <target name="build.freebusy" depends="init"
542           description="builds the freebusy project">
543     <if>
544       <isset property="org.bedework.qs.build.freebusy"/>
545       <then>
546         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
547              target="build-all" />
548       </then>
549     </if>
550   </target>
551
552   <target name="clean.freebusy" depends="init"
553           description="cleans the freebusy project">
554     <if>
555       <isset property="org.bedework.qs.build.freebusy"/>
556       <then>
557         <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
558              target="deep-clean" />
559       </then>
560     </if>
561   </target>
562
563   <target name="clean.build.freebusy" depends="clean.freebusy,build.freebusy"
564           description="builds the freebusy project"/>
565
566   <!-- .................................................................
567                           rpiutil
568        .................................................................. -->
569   <target name="build.rpiutil" depends="init"
570           description="builds the rpiutil project">
571     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
572            target="build-all" />
573   </target>
574
575   <target name="clean.rpiutil" depends="init"
576           description="cleans the rpiutil project">
577     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
578            target="deep-clean" />
579   </target>
580
581   <target name="clean.build.rpiutil" depends="clean.rpiutil,build.rpiutil"
582           description="builds the rpiutil project"/>
583
584   <!-- .................................................................
585                           synchml
586        .................................................................. -->
587   <target name="build.synchml" depends="init"
588           description="builds the synchml project">
589     <if>
590       <isset property="org.bedework.qs.build.synchml"/>
591       <then>
592         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
593              target="build-all" />
594       </then>
595     </if>
596   </target>
597
598   <target name="clean.synchml" depends="init"
599           description="clean the synchml project">
600     <if>
601       <isset property="org.bedework.qs.build.synchml"/>
602       <then>
603         <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
604              target="deep-clean" />
605       </then>
606     </if>
607   </target>
608
609   <target name="clean.build.synchml" depends="clean.synchml,clean.synchml"
610           description="builds the synchml project"/>
611
612   <!-- .................................................................
613                           testsuite
614        .................................................................. -->
615   <target name="build.testsuite" depends="init"
616           description="builds the testsuite project">
617     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
618          target="build-all" />
619   </target>
620
621   <target name="clean.testsuite" depends="init"
622           description="clean the testsuite project">
623     <ant antfile="${org.bedework.project.testsuite}/build.xml" inheritall="false"
624          target="deep-clean" />
625   </target>
626
627   <target name="clean.build.testsuite" depends="clean.testsuite,clean.testsuite"
628           description="builds the testsuite project"/>
629
630   <!-- .................................................................
631                           webapps
632        .................................................................. -->
633   <target name="build.webapps" depends="init"
634           description="builds the webapps project">
635     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
636            target="build-all" />
637   </target>
638
639   <target name="clean.webapps" depends="init"
640           description="clean the webapps project">
641     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
642            target="deep-clean" />
643   </target>
644
645   <target name="clean.build.webapps" depends="clean.webapps,build.webapps"
646           description="builds the webapps project"/>
647
648   <!-- .................................................................
649                           webdav
650        .................................................................. -->
651   <target name="build.webdav" depends="init"
652           description="builds the webdav project">
653     <if>
654       <isset property="org.bedework.qs.build.caldav"/>
655       <then>
656         <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
657              target="build-all" />
658       </then>
659     </if>
660   </target>
661
662   <target name="clean.webdav" depends="init"
663           description="cleans the webdav project">
664     <if>
665       <isset property="org.bedework.qs.build.caldav"/>
666       <then>
667         <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
668              target="deep-clean" />
669       </then>
670     </if>
671   </target>
672
673   <target name="clean.build.webdav" depends="clean.webdav,build.webdav"
674           description="builds the webdav project"/>
675
676   <!-- =================================================================
677        Targets to build sub-components of this project.
678        ================================================================= -->
679
680   <target name="build.deployutil" depends="init"
681           description="builds the deployutil component">
682     <ant antfile="${org.bedework.project.bedework}/deployutil/build.xml" inheritrefs="true"
683            target="build" >
684       <property name="build.jar.file" location="${org.bedework.deployutil.jar}" />
685     </ant>
686   </target>
687
688   <!-- =================================================================
689        Build and run the directory tools
690        ================================================================= -->
691
692   <target name="initDir" depends="init"
693           description="Build and run directory init">
694     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
695            target="initDir" />
696   </target>
697
698   <target name="addUser" depends="init"
699           description="Build and run directory tools to add a user">
700     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
701            target="addUser" />
702   </target>
703
704   <!-- =================================================================
705        Build and run the unit test suite
706        ================================================================= -->
707
708   <target name="bld.test" depends="init"
709           description="Build and run tests">
710     <ant antfile="${calendar.build.file}" inheritrefs="true"
711          target="bld.test" />
712   </target>
713
714   <target name="run.test" depends="init"
715           description="Build and run tests">
716     <ant antfile="${calendar.build.file}" inheritrefs="true"
717          target="run.test" />
718   </target>
719
720   <target name="run.test.debug" depends="init"
721           description="Build and run tests">
722     <ant antfile="${calendar.build.file}" inheritrefs="true"
723          target="run.test"  >
724       <property name="org.bedework.debug" value="yes" />
725     </ant>
726   </target>
727
728   <!-- Rebuild the http test suite only -->
729   <target name="httptest" depends="init"
730           description="Run httptest suite" >
731     <input message="httptest may destroy this calendar db. Proceed with test"
732            validargs="y,n"
733            addproperty="do.httptest" />
734     <condition property="do.abort">
735       <equals arg1="n" arg2="${do.httptest}"/>
736     </condition>
737     <fail if="do.abort">httptest aborted by user.</fail>
738
739     <ant antfile="${calendar.build.file}" inheritrefs="true"
740            target="bld.httptest" />
741
742     <ant antfile="${calendar.build.file}" inheritrefs="true"
743            target="run.httptest" />
744   </target>
745 </project>
Note: See TracBrowser for help on using the browser.