root/trunk/build.xml

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

More changes to the build process. Main build now pulls jars out of the archive and out of each projects bin directory.

Also remove some unused ant build code.

Not yet complete but close.

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