root/trunk/build.xml

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

--

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="init,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="init,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="init,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        The "deploy" and "deploy.all" target builds and deploys the applications
238        ================================================================= -->
239
240   <target name="deploy.debug" depends="build"
241           description="builds and deploys the applications">
242     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
243          target="deploy"  >
244       <property name="app.debug.val" value="9" />
245     </ant>
246   </target>
247
248   <target name="deploy" depends="build"
249           description="builds and deploys the applications">
250     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
251          target="deploy" />
252   </target>
253
254   <!-- =================================================================
255        The "clean.deploy" target cleans, builds and deploys the applications
256        ================================================================= -->
257
258   <target name="clean.deploy" depends="clean,deploy" />
259
260   <target name="clean.deploy.debug" depends="clean,deploy.debug" />
261
262   <!-- =================================================================
263        The "build.configured" target builds configured applications
264        ================================================================= -->
265
266   <target name="build.configured" depends="build"
267           description="Build configured applications" >
268     <ant antfile="${org.bedework.project.bedework}/deployment}/build.xml" inheritrefs="true"
269          target="build.configured"  >
270       <property name="app.debug.val" value="9" />
271     </ant>
272   </target>
273
274   <target name="build.configured.debug" depends="build"
275           description="Build configured applications" >
276     <ant antfile="${org.bedework.project.bedework}/deployment}/build.xml" inheritrefs="true"
277          target="build.configured" />
278   </target>
279
280   <target name="clean.build.configured" depends="clean,build.configured" />
281
282   <target name="clean.build.configured.debug" depends="clean,build.configured.debug"/>
283
284   <!-- =================================================================
285        Targets to build sub-projects and copy the results into dependent
286        libraries. Each sub-project generates a libapi directory which
287        contains the public api for that project.
288        ================================================================= -->
289
290   <!-- .................................................................
291                           access
292        .................................................................. -->
293   <target name="build.access" depends="init"
294           description="builds the access project">
295     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
296            target="build-all" />
297
298     <copy-to-dependent this="${org.bedework.project.access}"
299                        target="${org.bedework.project.caldav}" />
300     <copy-to-dependent this="${org.bedework.project.access}"
301                        target="${org.bedework.project.calendarapi}" />
302     <copy-to-dependent this="${org.bedework.project.access}"
303                        target="${org.bedework.project.davutil}" />
304     <copy-to-dependent this="${org.bedework.project.access}"
305                        target="${org.bedework.project.dumprestore}" />
306     <copy-to-dependent this="${org.bedework.project.access}"
307                        target="${org.bedework.project.webdav}" />
308
309     <copy-to-bin this="${org.bedework.project.access}"/>
310   </target>
311
312   <target name="clean.access" depends="init"
313           description="cleans the access project">
314     <ant antfile="${org.bedework.project.access}/build.xml" inheritall="false"
315            target="clean" />
316   </target>
317
318   <target name="clean.build.access" depends="clean.access,build.access"
319           description="builds the access project"/>
320
321   <!-- .................................................................
322                           bwtools
323        .................................................................. -->
324   <target name="build.bwtools" depends="init"
325           description="builds the bwtools project">
326     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
327            target="build-all" />
328
329     <copy-to-bin this="${org.bedework.project.bwtools}"/>
330   </target>
331
332   <target name="clean.bwtools" depends="init"
333           description="clean the bwtools project">
334     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
335            target="clean" />
336   </target>
337
338   <target name="clean.build.bwtools" depends="clean.bwtools,build.bwtools"
339           description="builds the bwtools project"/>
340
341   <!-- .................................................................
342                           caldav
343        .................................................................. -->
344   <target name="build.caldav" depends="init"
345           description="builds the caldav project">
346     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
347            target="build-all" />
348
349     <copy-to-bin this="${org.bedework.project.caldav}"/>
350     <copy-to-dependent this="${org.bedework.project.caldav}"
351                        target="${org.bedework.project.freebusy}"
352                        fromdir="dist" />
353   </target>
354
355   <target name="clean.caldav" depends="init"
356           description="clean the caldav project">
357     <ant antfile="${org.bedework.project.caldav}/build.xml" inheritall="false"
358            target="clean" />
359   </target>
360
361   <target name="clean.build.caldav" depends="clean.caldav,build.caldav"
362           description="clean builds the caldav project"/>
363
364   <target name="build.caldav.if" depends="init"
365           description="builds the jars" if="org.bedework.qs.build.caldav" >
366     <antcall inheritrefs="true" target="build.caldav" />
367   </target>
368
369   <target name="clean.caldav.if" depends="init"
370           description="cleans jars" if="org.bedework.qs.build.caldav" >
371     <antcall inheritrefs="true" target="clean.caldav" />
372   </target>
373
374   <!-- .................................................................
375                           caldavTest
376        .................................................................. -->
377   <target name="build.caldavTest" depends="init"
378           description="builds the caldavTest project">
379     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
380            target="build-all" />
381
382     <copy-to-bin this="${org.bedework.project.caldavTest}"/>
383   </target>
384
385   <target name="clean.caldavTest" depends="init"
386           description="clean the caldavTest project">
387     <ant antfile="${org.bedework.project.caldavTest}/build.xml" inheritall="false"
388            target="clean" />
389   </target>
390
391   <target name="clean.build.caldavTest" depends="clean.caldavTest,build.caldavTest"
392           description="clean builds the caldavTest project"/>
393
394   <target name="build.caldavTest.if" depends="init"
395           description="builds the jars" if="org.bedework.qs.build.caldav" >
396     <antcall inheritrefs="true" target="build.caldavTest" />
397   </target>
398
399   <target name="clean.caldavTest.if" depends="init"
400           description="cleans jars" if="org.bedework.qs.build.caldav" >
401     <antcall inheritrefs="true" target="clean.caldavTest" />
402   </target>
403
404   <!-- .................................................................
405                           calendarapi
406        .................................................................. -->
407   <target name="build.calendarapi" depends="init"
408           description="builds the calendar project">
409     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
410            target="build-all" />
411
412     <copy-to-dependent this="${org.bedework.project.calendarapi}"
413                        target="${org.bedework.project.caldav}" />
414     <copy-to-dependent this="${org.bedework.project.calendarapi}"
415                        target="${org.bedework.project.dumprestore}" />
416     <copy-to-dependent this="${org.bedework.project.calendarapi}"
417                        target="${org.bedework.project.freebusy}" />
418     <copy-to-dependent this="${org.bedework.project.calendarapi}"
419                        target="${org.bedework.project.synchml}" />
420     <copy-to-dependent this="${org.bedework.project.calendarapi}"
421                        target="${org.bedework.project.webapps}" />
422
423     <copy-to-bin this="${org.bedework.project.calendarapi}"/>
424   </target>
425
426   <target name="clean.calendarapi" depends="init"
427           description="clean the calendar project">
428     <ant antfile="${org.bedework.project.calendarapi}/build.xml" inheritall="false"
429            target="clean" />
430   </target>
431
432   <target name="clean.build.calendarapi" depends="clean.calendarapi,build.calendarapi"
433           description="clean builds the caldavTest project"/>
434
435   <!-- .................................................................
436                           davutil
437        .................................................................. -->
438   <target name="build.davutil" depends="init"
439           description="builds the davutil project">
440     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
441            target="build-all" />
442
443     <copy-to-dependent this="${org.bedework.project.davutil}"
444                        target="${org.bedework.project.caldav}" />
445     <copy-to-dependent this="${org.bedework.project.davutil}"
446                        target="${org.bedework.project.caldavTest}" />
447     <copy-to-dependent this="${org.bedework.project.davutil}"
448                        target="${org.bedework.project.calendarapi}" />
449     <copy-to-dependent this="${org.bedework.project.davutil}"
450                        target="${org.bedework.project.webdav}" />
451
452     <copy-to-bin this="${org.bedework.project.davutil}"/>
453   </target>
454
455   <target name="clean.davutil" depends="init"
456           description="cleans the davutil project">
457     <ant antfile="${org.bedework.project.davutil}/build.xml" inheritall="false"
458            target="clean" />
459   </target>
460
461   <target name="clean.build.davutil" depends="clean.davutil,build.davutil"
462           description="clean builds the davutil project"/>
463
464   <!-- .................................................................
465                           dumprestore
466        .................................................................. -->
467   <target name="build.dumprestore" depends="init"
468           description="builds the dumprestore project">
469     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
470            target="build-all" />
471
472     <copy-to-bin this="${org.bedework.project.dumprestore}"/>
473   </target>
474
475   <target name="clean.dumprestore" depends="init"
476           description="clean the dumprestore project">
477     <ant antfile="${org.bedework.project.dumprestore}/build.xml" inheritall="false"
478            target="clean" />
479   </target>
480
481   <target name="clean.build.dumprestore" depends="clean.dumprestore,build.dumprestore"
482           description="builds the dumprestore project"/>
483
484   <!-- .................................................................
485                           freebusy
486        .................................................................. -->
487   <target name="build.freebusy" depends="init"
488           description="builds the freebusy project">
489     <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
490            target="build-all" />
491
492     <copy-to-bin this="${org.bedework.project.freebusy}"/>
493   </target>
494
495   <target name="clean.freebusy" depends="init"
496           description="cleans the freebusy project">
497     <ant antfile="${org.bedework.project.freebusy}/build.xml" inheritall="false"
498            target="clean" />
499   </target>
500
501   <target name="clean.build.freebusy" depends="clean.freebusy,build.freebusy"
502           description="builds the freebusy project"/>
503
504   <target name="build.freebusy.if" depends="init"
505           description="builds the jars" if="org.bedework.qs.build.freebusy" >
506     <antcall inheritrefs="true" target="build.freebusy" />
507   </target>
508
509   <target name="clean.freebusy.if" depends="init" if="org.bedework.qs.build.freebusy" >
510   </target>
511
512   <!-- .................................................................
513                           rpiutil
514        .................................................................. -->
515   <target name="build.rpiutil" depends="init"
516           description="builds the rpiutil project">
517     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
518            target="build-all" />
519
520     <copy-to-dependent this="${org.bedework.project.rpiutil}"
521                        target="${org.bedework.project.access}" />
522     <copy-to-dependent this="${org.bedework.project.rpiutil}"
523                        target="${org.bedework.project.caldav}" />
524     <copy-to-dependent this="${org.bedework.project.rpiutil}"
525                        target="${org.bedework.project.calendarapi}" />
526     <copy-to-dependent this="${org.bedework.project.rpiutil}"
527                        target="${org.bedework.project.davutil}" />
528     <copy-to-dependent this="${org.bedework.project.rpiutil}"
529                        target="${org.bedework.project.freebusy}" />
530     <copy-to-dependent this="${org.bedework.project.rpiutil}"
531                        target="${org.bedework.project.webdav}" />
532
533     <copy-to-bin this="${org.bedework.project.rpiutil}"/>
534   </target>
535
536   <target name="clean.rpiutil" depends="init"
537           description="cleans the rpiutil project">
538     <ant antfile="${org.bedework.project.rpiutil}/build.xml" inheritall="false"
539            target="clean" />
540   </target>
541
542   <target name="clean.build.rpiutil" depends="clean.rpiutil,build.rpiutil"
543           description="builds the rpiutil project"/>
544
545   <!-- .................................................................
546                           synchml
547        .................................................................. -->
548   <target name="build.synchml" depends="init"
549           description="builds the synchml project">
550     <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
551            target="build-all" />
552
553     <copy-to-bin this="${org.bedework.project.synchml}"/>
554   </target>
555
556   <target name="clean.synchml" depends="init"
557           description="clean the synchml project">
558     <ant antfile="${org.bedework.project.synchml}/build.xml" inheritall="false"
559            target="clean" />
560   </target>
561
562   <target name="clean.build.synchml" depends="clean.synchml,clean.synchml"
563           description="builds the synchml project"/>
564
565   <target name="build.synchml.if" depends="init"
566           description="builds the jars" if="org.bedework.qs.build.synchml" >
567     <antcall inheritrefs="true" target="build.synchml" />
568   </target>
569
570   <target name="clean.synchml.if" depends="init"
571           description="cleans jars" if="org.bedework.qs.build.synchml" >
572     <antcall inheritrefs="true" target="clean.synchml" />
573   </target>
574
575   <!-- .................................................................
576                           webapps
577        .................................................................. -->
578   <target name="build.webapps" depends="init"
579           description="builds the webapps project">
580     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
581            target="build-all" />
582
583     <copy-to-bin this="${org.bedework.project.webapps}"/>
584   </target>
585
586   <target name="clean.webapps" depends="init"
587           description="clean the webapps project">
588     <ant antfile="${org.bedework.project.webapps}/build.xml" inheritall="false"
589            target="clean" />
590   </target>
591
592   <target name="clean.build.webapps" depends="clean.webapps,build.webapps"
593           description="builds the webapps project"/>
594
595   <!-- .................................................................
596                           webdav
597        .................................................................. -->
598   <target name="build.webdav" depends="init"
599           description="builds the webdav project">
600     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
601            target="build-all" />
602
603     <copy-to-dependent this="${org.bedework.project.webdav}"
604                        target="${org.bedework.project.caldav}" />
605
606     <copy-to-bin this="${org.bedework.project.webdav}"/>
607   </target>
608
609   <target name="clean.webdav" depends="init"
610           description="cleans the webdav project">
611     <ant antfile="${org.bedework.project.webdav}/build.xml" inheritall="false"
612            target="clean" />
613   </target>
614
615   <target name="clean.build.webdav" depends="clean.webdav,build.webdav"
616           description="builds the webdav project"/>
617
618   <target name="build.webdav.if" depends="init"
619           description="builds the jars" if="org.bedework.qs.build.caldav" >
620     <antcall inheritrefs="true" target="build.webdav" />
621   </target>
622
623   <target name="clean.webdav.if" depends="init"
624           description="cleans jars" if="org.bedework.qs.build.caldav" >
625     <antcall inheritrefs="true" target="clean.webdav" />
626   </target>
627
628   <!-- =================================================================
629        Targets to build sub-components of this project.
630        ================================================================= -->
631
632   <target name="build.deployutil" depends="init"
633           description="builds the deployutil component">
634     <ant antfile="${org.bedework.project.bedework}/deployutil/build.xml" inheritrefs="true"
635            target="build" >
636       <property name="build.jar.file" location="${org.bedework.deployutil.jar}" />
637     </ant>
638   </target>
639
640   <!-- =================================================================
641        Build and run the unit test suite
642        ================================================================= -->
643
644   <target name="bld.test" depends="init"
645           description="Build and run tests">
646     <ant antfile="${calendar.build.file}" inheritrefs="true"
647          target="bld.test" />
648   </target>
649
650   <target name="run.test" depends="init"
651           description="Build and run tests">
652     <ant antfile="${calendar.build.file}" inheritrefs="true"
653          target="run.test" />
654   </target>
655
656   <target name="run.test.debug" depends="init"
657           description="Build and run tests">
658     <ant antfile="${calendar.build.file}" inheritrefs="true"
659          target="run.test"  >
660       <property name="org.bedework.debug" value="yes" />
661     </ant>
662   </target>
663
664   <!-- Rebuild the http test suite only -->
665   <target name="httptest" depends="init"
666           description="Run httptest suite" >
667     <input message="httptest may destroy this calendar db. Proceed with test"
668            validargs="y,n"
669            addproperty="do.httptest" />
670     <condition property="do.abort">
671       <equals arg1="n" arg2="${do.httptest}"/>
672     </condition>
673     <fail if="do.abort">httptest aborted by user.</fail>
674
675     <ant antfile="${calendar.build.file}" inheritrefs="true"
676            target="bld.httptest" />
677
678     <ant antfile="${calendar.build.file}" inheritrefs="true"
679            target="run.httptest" />
680   </target>
681
682   <!-- ======================== javadoc target =======================
683        ================================================================= -->
684
685   <target name="javadoc" depends="init"
686           description="Generate javadoc">
687     <echo message="*************** Needs to do javadoc for all sub-projects and" />
688     <echo message="*************** link them in some way." />
689   </target>
690
691   <!-- =============================================================================
692        Update dependent project (target) from a project just built (this).
693        ============================================================================= -->
694   <macrodef name="copy-to-dependent">
695     <attribute name="target"/>
696     <attribute name="this"/>
697     <attribute name="fromdir" default="libapi"/>
698     <sequential>
699       <copy todir="@{target}/lib" overwrite="yes">
700         <fileset dir="@{this}/@{fromdir}">
701           <include name="*.jar" />
702         </fileset>
703       </copy>
704     </sequential>
705   </macrodef>
706
707   <!-- =============================================================================
708        Copy from a project just built (this) into bedework bin directory.
709        ============================================================================= -->
710   <macrodef name="copy-to-bin">
711     <attribute name="this"/>
712     <sequential>
713       <copy todir="${org.bedework.project.bedework}/bin" overwrite="yes">
714         <fileset dir="@{this}/dist">
715           <include name="*.jar" />
716         </fileset>
717       </copy>
718     </sequential>
719   </macrodef>
720 </project>
Note: See TracBrowser for help on using the browser.