root/trunk/bedework/build.xml

Revision 961 (checked in by douglm, 7 years ago)

Add quickstart-clean target
Add scheduling fields to dump/restore

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 project -->
12   <property name="org.bedework.project.bedework"
13             location="${basedir}" />
14
15   <!-- Wheer we put other projects -->
16   <property name="org.bedework.projects"
17             location="${org.bedework.project.bedework}/projects" />
18
19   <property name="org.bedework.project.access"
20             location="${org.bedework.projects}/access" />
21
22   <property name="org.bedework.project.bwtools"
23             location="${org.bedework.projects}/bwtools" />
24
25   <property name="org.bedework.project.caldav"
26             location="${org.bedework.projects}/caldav" />
27
28   <property name="org.bedework.project.caldavTest"
29             location="${org.bedework.projects}/caldavTest" />
30
31   <property name="org.bedework.project.calendarapi"
32             location="${org.bedework.projects}/calendarapi" />
33
34   <property name="org.bedework.project.davutil"
35             location="${org.bedework.projects}/davutil" />
36
37   <property name="org.bedework.project.dumprestore"
38             location="${org.bedework.projects}/dumprestore" />
39
40   <property name="org.bedework.project.freebusy"
41             location="${org.bedework.projects}/freebusy" />
42
43   <property name="org.bedework.project.rpiutil"
44             location="${org.bedework.projects}/rpiutil" />
45
46   <property name="org.bedework.project.synchml"
47             location="${org.bedework.projects}/synchml" />
48
49   <property name="org.bedework.project.webapps"
50             location="${org.bedework.projects}/webapps" />
51
52   <property name="org.bedework.project.webdav"
53             location="${org.bedework.projects}/webdav" />
54
55   <target name="README" depends="init"
56           description="Describe targets and their usage">
57     <loadfile property="org.bedework.README"
58               srcFile="${org.bedework.project.bedework}/docs/README"/>
59     <echo message="${org.bedework.README}" />
60   </target>
61
62   <target name="usage" depends="init"
63           description="Describe targets and their usage">
64     <echo message="As distributed the package should be ready to go."/>
65     <echo message="Ensure ant is on your path, (a version is in the" />
66     <echo message="package)"/>
67     <echo message=""/>
68     <echo message="First in one window do"/>
69     <echo message="    ant hsqldb"/>
70     <echo message="This will start the hsqldb server ready for the "/>
71     <echo message="application."/>
72     <echo message=""/>
73     <echo message="In another window do"/>
74     <echo message="    ant tomcatstart"/>
75     <echo message=""/>
76     <echo message="Once tomcat is running you should be able to go to a"/>
77     <echo message="browser and connect to"/>
78     <echo message="    http://localhost:8080/bedework"/>
79     <echo message="and follow the instructions."/>
80     <echo message=""/>
81     <echo message="To build the calendar do"/>
82     <echo message="    ant deploy    or "/>
83     <echo message="    ant deploy.debug "/>
84     <echo message="which does a build and deploy of all components"/>
85     <echo message=""/>
86     <echo message="To rebuild the calendar do"/>
87     <echo message="    ant clean.deploy    or "/>
88     <echo message="    ant clean.deploy.debug "/>
89     <echo message="which does a clean, build and deploy of all components"/>
90     <echo message=""/>
91     <echo message="See documentation in the docs directory or on bedework.org"/>
92     <echo message="for instructions on creating a locally configured calendar application"/>
93     <echo message=""/>
94   </target>
95
96   <target name="init" >
97     <property name="org.bedework.qs.build.synchml" value="yes" />
98
99     <!-- Overriding this when invoking ant allows different user property
100          files to be included e.g.
101             ant -Dorg.bedework.user.build.properties=/home/me/bedework.properties ...
102             -->
103     <property name="org.bedework.user.build.properties"
104               location="${user.home}/bedework.build.properties" />
105
106     <echo message="Load user properties from ${org.bedework.user.build.properties}" />
107
108     <!-- Load user property definition overrides -->
109     <property file="${org.bedework.user.build.properties}" />
110
111     <!-- ===============================================================
112               Default properties.
113          =============================================================== -->
114
115     <property name="project.home" location="${org.bedework.project.bedework}"/>
116
117     <property file="${project.home}/build.properties" />
118
119     <property name="project.name" value="${org.bedework.package.name}"/>
120     <property name="project.version" value="${org.bedework.version}"/>
121
122     <property name="dist.home" location="${project.home}/dist"/>
123     <property name="lib.dir" location="${project.home}/lib"/>
124     <property name="bin.home" location="${project.home}/bin"/>
125
126     <property name="build.dir" location="${project.home}/build"/>
127     <property name="buildjar" location="${build.dir}/buildjar.xml"/>
128     <property name="buildsh" location="${build.dir}/buildsh.xml"/>
129     <property name="buildwar" location="${build.dir}/buildwar.xml"/>
130
131     <property name="org.bedework.build.caldav" value="yes" />
132
133     <condition property="org.bedework.qs.build.caldav">
134       <equals arg1="yes" arg2="${org.bedework.build.caldav}"/>
135     </condition>
136
137     <property name="org.bedework.build.freebusy" value="no" />
138
139     <condition property="org.bedework.qs.build.freebusy">
140       <equals arg1="yes" arg2="${org.bedework.build.freebusy}"/>
141     </condition>
142
143     <mkdir dir="${dist.home}" />
144
145     <mkdir dir="${bin.home}" />
146
147     <property name="org.bedework.empty.dir"
148               location="${dist.home}/empty-dir" />
149     <mkdir dir="${org.bedework.empty.dir}" />
150
151     <fileset id="empty.fileset" dir="${org.bedework.empty.dir}"
152              excludes="*" />
153     <!-- default to empty -->
154     <fileset id="base.resource.files" refid="empty.fileset" />
155
156     <!-- ==================== Subcomponent Compilation Classpath ==================== -->
157
158     <path id="compile.classpath">
159       <fileset dir="${lib.dir}">
160          <include name="*.jar"/>
161       </fileset>
162       <fileset dir="${dist.home}">
163          <include name="*.jar"/>
164       </fileset>
165     </path>
166
167     <!-- ===============================================================
168               Locations and jar files built by this project.
169          =============================================================== -->
170
171     <property name="org.bedework.temp.dir"
172               location="${dist.home}/temp" />
173
174     <property name="org.bedework.temp.wars.home"
175               location="${org.bedework.temp.dir}/wars" />
176
177     <property name="org.bedework.temp.shellscr.home"
178               location="${org.bedework.temp.dir}/shellscr" />
179
180     <property name="org.bedework.config.base"
181               location="${org.bedework.project.bedework}/config" />
182
183     <property name="org.bedework.default.lib"
184               location="${org.bedework.project.bedework}/lib" />
185
186     <property name="org.bedework.deployment.base"
187               location="${org.bedework.project.bedework}/deployment" />
188
189     <property name="org.bedework.deployutil.jar"
190               location="${bin.home}/${org.bedework.deployutil.jar.name}-${project.version}.jar" />
191
192     <!-- ===============================================================
193               Default properties.
194          =============================================================== -->
195     <property file="${org.bedework.defaultdefs.properties}" />
196   </target>
197
198   <!-- =================================================================
199        "build" and "clean" targets for the project - does not build
200        subsidiary projects like rpiutil and access
201        ================================================================= -->
202
203   <target name="build" depends="build.rpiutil,build.access,build.davutil,
204                                 build.calendarapi,build.dumprestore,build.synchml.if,
205                                 build.webdav.if,build.caldav.if,build.caldavTest.if,
206                                 build.freebusy.if,build.bwtools,build.webapps,
207                                 build.deployutil"
208           description="builds the project"/>
209
210   <target name="clean" depends="clean.rpiutil,clean.access,clean.davutil,
211                                 clean.calendarapi,clean.dumprestore,clean.synchml.if,
212                                 clean.webdav.if,clean.caldav.if,clean.caldavTest.if,
213                                 clean.freebusy.if,clean.bwtools,clean.webapps"
214           description="Remove all generated files.">
215     <delete dir="${dist.home}" />
216     <delete dir="${bin.home}" />
217   </target>
218
219   <target name="quickstart-clean" depends="clean.rpiutil,clean.access,clean.davutil,
220                                            clean.calendarapi,clean.dumprestore,clean.synchml.if,
221                                            clean.webdav.if,clean.caldav.if,clean.caldavTest.if,
222                                            clean.freebusy.if,clean.bwtools,clean.webapps"
223           description="partial clean up for quickstart.">
224     <delete dir="${bin.home}" />
225     <delete dir="${org.bedework.temp.dir}" />
226     <delete dir="${org.bedework.empty.dir}" />
227
228     <delete>
229       <fileset dir="${dist.home}" includes="*.war"/>
230     </delete>
231   </target>
232
233   <target name="clean.build" depends="clean, build"
234           description="cleans then builds the project"/>
235
236   <!-- =================================================================
237        "build.all" and "clean.all" targets for the project - build
238        subsidiary projects as well
239        ================================================================= -->
240
241   <target name="build.all" depends="build.rpiutil,build.access,build"
242           description="builds the entire project"/>
243
244   <target name="clean.all" depends="clean.rpiutil,clean.access,clean"
245           description="Remove all generated files for entire project."/>
246
247   <target name="clean.build.all" depends="clean.all, build.all"
248           description="cleans then builds the entire project"/>
249
250   <!-- =================================================================
251        The "deploy" and "deploy.all" target builds and deploys the applications
252        ================================================================= -->
253
254   <target name="deploy.debug" depends="build"
255           description="builds and deploys the applications">
256     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
257          target="deploy"  >
258       <property name="app.debug.val" value="9" />
259     </ant>
260   </target>
261
262   <target name="deploy" depends="build"
263           description="builds and deploys the applications">
264     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
265          target="deploy" />
266   </target>
267
268   <!-- =================================================================
269        The "clean.deploy" target cleans, builds and deploys the applications
270        ================================================================= -->
271
272   <target name="clean.deploy" depends="clean,deploy" />
273
274   <target name="clean.deploy.debug" depends="clean,deploy.debug" />
275
276   <!-- =================================================================
277        The "build.configured" target builds configured applications
278        ================================================================= -->
279
280   <target name="build.configured" depends="build"
281           description="Build configured applications" >
282     <ant antfile="${org.bedework.project.bedework}/deployment}/build.xml" inheritrefs="true"
283          target="build.configured"  >
284       <property name="app.debug.val" value="9" />
285     </ant>
286   </target>
287
288   <target name="build.configured.debug" depends="build"
289           description="Build configured applications" >
290     <ant antfile="${org.bedework.project.bedework}/deployment}/build.xml" inheritrefs="true"
291          target="build.configured" />
292   </target>
293
294   <target name="clean.build.configured" depends="clean,build.configured" />
295
296   <target name="clean.build.configured.debug" depends="clean,build.configured.debug"/>
297
298   <!-- =================================================================
299        Targets to build sub-projects and copy the results into dependent
300        libraries. Each sub-project generates a libapi directory which
301        contains the public api for that project.
302        ================================================================= -->
303
304   <!-- .................................................................
305                           access
306        .................................................................. -->
307   <target name="build.access" depends="init"
308           description="builds the access project">
309     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
310            target="build-all" />
311
312     <copy-to-dependent this="${org.bedework.project.access}"
313                        target="${org.bedework.project.caldav}" />
314     <copy-to-dependent this="${org.bedework.project.access}"
315                        target="${org.bedework.project.calendarapi}" />
316     <copy-to-dependent this="${org.bedework.project.access}"
317                        target="${org.bedework.project.davutil}" />
318     <copy-to-dependent this="${org.bedework.project.access}"
319                        target="${org.bedework.project.dumprestore}" />
320     <copy-to-dependent this="${org.bedework.project.access}"
321                        target="${org.bedework.project.webdav}" />
322
323     <copy-to-bin this="${org.bedework.project.access}"/>
324   </target>
325
326   <target name="clean.access" depends="init"
327           description="cleans the access project">
328     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
329            target="clean" />
330   </target>
331
332   <target name="clean.build.access" depends="clean.access,build.access"
333           description="builds the access project"/>
334
335   <!-- .................................................................
336                           bwtools
337        .................................................................. -->
338   <target name="build.bwtools" depends="init"
339           description="builds the bwtools project">
340     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
341            target="build-all" />
342
343     <copy-to-bin this="${org.bedework.project.bwtools}"/>
344   </target>
345
346   <target name="clean.bwtools" depends="init"
347           description="clean the bwtools project">
348     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
349            target="clean" />
350   </target>
351
352   <target name="clean.build.bwtools" depends="clean.bwtools,build.bwtools"
353           description="builds the bwtools project"/>
354
355   <!-- .................................................................
356                           caldav
357        .................................................................. -->
358   <target name="build.caldav" depends="init"
359           description="builds the caldav project">
360     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
361            target="build-all" />
362
363     <copy-to-bin this="${org.bedework.project.caldav}"/>
364   </target>
365
366   <target name="clean.caldav" depends="init"
367           description="clean the caldav project">
368     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
369            target="clean" />
370   </target>
371
372   <target name="clean.build.caldav" depends="clean.caldav,build.caldav"
373           description="clean builds the caldav project"/>
374
375   <target name="build.caldav.if" depends="init"
376           description="builds the jars" if="org.bedework.qs.build.caldav" >
377     <antcall inheritrefs="true" target="build.caldav" />
378   </target>
379
380   <target name="clean.caldav.if" depends="init"
381           description="cleans jars" if="org.bedework.qs.build.caldav" >
382     <antcall inheritrefs="true" target="clean.caldav" />
383   </target>
384
385   <!-- .................................................................
386                           caldavTest
387        .................................................................. -->
388   <target name="build.caldavTest" depends="init"
389           description="builds the caldavTest project">
390     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
391            target="build-all" />
392
393     <copy-to-bin this="${org.bedework.project.caldavTest}"/>
394   </target>
395
396   <target name="clean.caldavTest" depends="init"
397           description="clean the caldavTest project">
398     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
399            target="clean" />
400   </target>
401
402   <target name="clean.build.caldavTest" depends="clean.caldavTest,build.caldavTest"
403           description="clean builds the caldavTest project"/>
404
405   <target name="build.caldavTest.if" depends="init"
406           description="builds the jars" if="org.bedework.qs.build.caldav" >
407     <antcall inheritrefs="true" target="build.caldavTest" />
408   </target>
409
410   <target name="clean.caldavTest.if" depends="init"
411           description="cleans jars" if="org.bedework.qs.build.caldav" >
412     <antcall inheritrefs="true" target="clean.caldavTest" />
413   </target>
414
415   <!-- .................................................................
416                           calendarapi
417        .................................................................. -->
418   <target name="build.calendarapi" depends="init"
419           description="builds the calendar project">
420     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
421            target="build-all" />
422
423     <copy-to-dependent this="${org.bedework.project.calendarapi}"
424                        target="${org.bedework.project.caldav}" />
425     <copy-to-dependent this="${org.bedework.project.calendarapi}"
426                        target="${org.bedework.project.dumprestore}" />
427     <copy-to-dependent this="${org.bedework.project.calendarapi}"
428                        target="${org.bedework.project.freebusy}" />
429     <copy-to-dependent this="${org.bedework.project.calendarapi}"
430                        target="${org.bedework.project.synchml}" />
431     <copy-to-dependent this="${org.bedework.project.calendarapi}"
432                        target="${org.bedework.project.webapps}" />
433
434     <copy-to-bin this="${org.bedework.project.calendarapi}"/>
435   </target>
436
437   <target name="clean.calendarapi" depends="init"
438           description="clean the calendar project">
439     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
440            target="clean" />
441   </target>
442
443   <target name="clean.build.calendarapi" depends="clean.calendarapi,build.calendarapi"
444           description="clean builds the caldavTest project"/>
445
446   <!-- .................................................................
447                           davutil
448        .................................................................. -->
449   <target name="build.davutil" depends="init"
450           description="builds the davutil project">
451     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
452            target="build-all" />
453
454     <copy-to-dependent this="${org.bedework.project.davutil}"
455                        target="${org.bedework.project.caldav}" />
456     <copy-to-dependent this="${org.bedework.project.davutil}"
457                        target="${org.bedework.project.caldavTest}" />
458     <copy-to-dependent this="${org.bedework.project.davutil}"
459                        target="${org.bedework.project.calendarapi}" />
460     <copy-to-dependent this="${org.bedework.project.davutil}"
461                        target="${org.bedework.project.webdav}" />
462
463     <copy-to-bin this="${org.bedework.project.davutil}"/>
464   </target>
465
466   <target name="clean.davutil" depends="init"
467           description="cleans the davutil project">
468     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
469            target="clean" />
470   </target>
471
472   <target name="clean.build.davutil" depends="clean.davutil,build.davutil"
473           description="clean builds the davutil project"/>
474
475   <!-- .................................................................
476                           dumprestore
477        .................................................................. -->
478   <target name="build.dumprestore" depends="init"
479           description="builds the dumprestore project">
480     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
481            target="build-all" />
482
483     <copy-to-bin this="${org.bedework.project.dumprestore}"/>
484   </target>
485
486   <target name="clean.dumprestore" depends="init"
487           description="clean the dumprestore project">
488     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
489            target="clean" />
490   </target>
491
492   <target name="clean.build.dumprestore" depends="clean.dumprestore,build.dumprestore"
493           description="builds the dumprestore project"/>
494
495   <!-- .................................................................
496                           freebusy
497        .................................................................. -->
498   <target name="build.freebusy" depends="init"
499           description="builds the freebusy project">
500     <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
501            target="build-all" />
502
503     <copy-to-bin this="${org.bedework.project.freebusy}"/>
504   </target>
505
506   <target name="clean.freebusy" depends="init"
507           description="cleans the freebusy project">
508     <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
509            target="clean" />
510   </target>
511
512   <target name="clean.build.freebusy" depends="clean.freebusy,build.freebusy"
513           description="builds the freebusy project"/>
514
515   <target name="build.freebusy.if" depends="init"
516           description="builds the jars" if="org.bedework.qs.build.freebusy" >
517     <antcall inheritrefs="true" target="build.freebusy" />
518   </target>
519
520   <target name="clean.freebusy.if" depends="init" if="org.bedework.qs.build.freebusy" >
521   </target>
522
523   <!-- .................................................................
524                           rpiutil
525        .................................................................. -->
526   <target name="build.rpiutil" depends="init"
527           description="builds the rpiutil project">
528     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
529            target="build-all" />
530
531     <copy-to-dependent this="${org.bedework.project.rpiutil}"
532                        target="${org.bedework.project.access}" />
533     <copy-to-dependent this="${org.bedework.project.rpiutil}"
534                        target="${org.bedework.project.caldav}" />
535     <copy-to-dependent this="${org.bedework.project.rpiutil}"
536                        target="${org.bedework.project.calendarapi}" />
537     <copy-to-dependent this="${org.bedework.project.rpiutil}"
538                        target="${org.bedework.project.davutil}" />
539     <copy-to-dependent this="${org.bedework.project.rpiutil}"
540                        target="${org.bedework.project.freebusy}" />
541     <copy-to-dependent this="${org.bedework.project.rpiutil}"
542                        target="${org.bedework.project.webdav}" />
543
544     <copy-to-bin this="${org.bedework.project.rpiutil}"/>
545   </target>
546
547   <target name="clean.rpiutil" depends="init"
548           description="cleans the rpiutil project">
549     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
550            target="clean" />
551   </target>
552
553   <target name="clean.build.rpiutil" depends="clean.rpiutil,build.rpiutil"
554           description="builds the rpiutil project"/>
555
556   <!-- .................................................................
557                           synchml
558        .................................................................. -->
559   <target name="build.synchml" depends="init"
560           description="builds the synchml project">
561     <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
562            target="build-all" />
563
564     <copy-to-bin this="${org.bedework.project.synchml}"/>
565   </target>
566
567   <target name="clean.synchml" depends="init"
568           description="clean the synchml project">
569     <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
570            target="clean" />
571   </target>
572
573   <target name="clean.build.synchml" depends="clean.synchml,clean.synchml"
574           description="builds the synchml project"/>
575
576   <target name="build.synchml.if" depends="init"
577           description="builds the jars" if="org.bedework.qs.build.synchml" >
578     <antcall inheritrefs="true" target="build.synchml" />
579   </target>
580
581   <target name="clean.synchml.if" depends="init"
582           description="cleans jars" if="org.bedework.qs.build.synchml" >
583     <antcall inheritrefs="true" target="clean.synchml" />
584   </target>
585
586   <!-- .................................................................
587                           webapps
588        .................................................................. -->
589   <target name="build.webapps" depends="init"
590           description="builds the webapps project">
591     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
592            target="build-all" />
593
594     <copy-to-bin this="${org.bedework.project.webapps}"/>
595   </target>
596
597   <target name="clean.webapps" depends="init"
598           description="clean the webapps project">
599     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
600            target="clean" />
601   </target>
602
603   <target name="clean.build.webapps" depends="clean.webapps,build.webapps"
604           description="builds the webapps project"/>
605
606   <!-- .................................................................
607                           webdav
608        .................................................................. -->
609   <target name="build.webdav" depends="init"
610           description="builds the webdav project">
611     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
612            target="build-all" />
613
614     <copy-to-dependent this="${org.bedework.project.webdav}"
615                        target="${org.bedework.project.caldav}" />
616
617     <copy-to-bin this="${org.bedework.project.webdav}"/>
618   </target>
619
620   <target name="clean.webdav" depends="init"
621           description="cleans the webdav project">
622     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
623            target="clean" />
624   </target>
625
626   <target name="clean.build.webdav" depends="clean.webdav,build.webdav"
627           description="builds the webdav project"/>
628
629   <target name="build.webdav.if" depends="init"
630           description="builds the jars" if="org.bedework.qs.build.caldav" >
631     <antcall inheritrefs="true" target="build.webdav" />
632   </target>
633
634   <target name="clean.webdav.if" depends="init"
635           description="cleans jars" if="org.bedework.qs.build.caldav" >
636     <antcall inheritrefs="true" target="clean.webdav" />
637   </target>
638
639   <!-- =================================================================
640        Targets to build sub-components of this project.
641        ================================================================= -->
642
643   <target name="build.deployutil" depends="init"
644           description="builds the deployutil component">
645     <ant antfile="${org.bedework.project.bedework}/deployutil/build.xml" inheritrefs="true"
646            target="build" >
647       <property name="build.jar.file" location="${org.bedework.deployutil.jar}" />
648     </ant>
649   </target>
650
651   <!-- =================================================================
652        Build and run the unit test suite
653        ================================================================= -->
654
655   <target name="bld.test" depends="init"
656           description="Build and run tests">
657     <ant antfile="${calendar.build.file}" inheritrefs="true"
658          target="bld.test" />
659   </target>
660
661   <target name="run.test" depends="init"
662           description="Build and run tests">
663     <ant antfile="${calendar.build.file}" inheritrefs="true"
664          target="run.test" />
665   </target>
666
667   <target name="run.test.debug" depends="init"
668           description="Build and run tests">
669     <ant antfile="${calendar.build.file}" inheritrefs="true"
670          target="run.test"  >
671       <property name="org.bedework.debug" value="yes" />
672     </ant>
673   </target>
674
675   <!-- Rebuild the http test suite only -->
676   <target name="httptest" depends="init"
677           description="Run httptest suite" >
678     <input message="httptest may destroy this calendar db. Proceed with test"
679            validargs="y,n"
680            addproperty="do.httptest" />
681     <condition property="do.abort">
682       <equals arg1="n" arg2="${do.httptest}"/>
683     </condition>
684     <fail if="do.abort">httptest aborted by user.</fail>
685
686     <ant antfile="${calendar.build.file}" inheritrefs="true"
687            target="bld.httptest" />
688
689     <ant antfile="${calendar.build.file}" inheritrefs="true"
690            target="run.httptest" />
691   </target>
692
693   <!-- ======================== javadoc target =======================
694        ================================================================= -->
695
696   <target name="javadoc" depends="init"
697           description="Generate javadoc">
698     <echo message="*************** Needs to do javadoc for all sub-projects and" />
699     <echo message="*************** link them in some way." />
700   </target>
701
702   <!-- =============================================================================
703        Update dependent project (target) from a project just built (this).
704        ============================================================================= -->
705   <macrodef name="copy-to-dependent">
706     <attribute name="target"/>
707     <attribute name="this"/>
708     <sequential>
709       <copy todir="@{target}/lib" overwrite="yes">
710         <fileset dir="@{this}/libapi">
711           <include name="*.jar" />
712         </fileset>
713       </copy>
714     </sequential>
715   </macrodef>
716
717   <!-- =============================================================================
718        Copy from a project just built (this) into bedework bin directory.
719        ============================================================================= -->
720   <macrodef name="copy-to-bin">
721     <attribute name="this"/>
722     <sequential>
723       <copy todir="${org.bedework.project.bedework}/bin" overwrite="yes">
724         <fileset dir="@{this}/dist">
725           <include name="*.jar" />
726         </fileset>
727       </copy>
728     </sequential>
729   </macrodef>
730 </project>
Note: See TracBrowser for help on using the browser.