root/trunk/calendar3/build.xml

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

Initial import of bedework

Line 
1 <?xml version="1.0"?>
2
3 <!-- This is the main build file for UW Calendar which can be used in
4      conjunction with Ant (http://jakarta.apache.org/ant/) to
5      build, deploy, and distribute the UW calendar project. Type
6      "ant -projecthelp" to see a list of ant targets.
7
8      The assumption is that deployers of the calendar will want to create
9      a number of independent calendar applications managed by different
10      groups.
11
12      To facilitate this the build process is driven by a set of properties
13      in appsuite/clones.
14
15      You shouldn't need to modify base files or applications. Instead,
16      modify the application specific properties and html/jsp pages to create
17      a customized application.
18
19      This file will only need mofification to add a specific target for your
20      new application. These targets should be added in the appsuite
21      section of the file.
22
23      apps.root.dir  (Optional - defaults to apps)
24                     We expect to find a file
25                          ${apps.root.dir}/${app-name}.properties
26                     which defines build time properties for the application.
27                     Note this file does not get built in to the application.
28
29      Authors: Mike Douglass   douglm@rpi.edu
30 -->
31
32 <project name="uwcal" default="bld.all">
33   <!-- ==================== Basic property Definitions =================
34       Each of the following properties are used in the build script.
35       Values for these properties are set by the first place they are
36       defined, from the following list:
37       * Definitions on the "ant" command line (ant -Ddeploy.home=xyz compile)
38       * Definitions from a "uwcal.build.properties" file in the developer's
39         home directory
40       * Definitions from a "local.build.properties" file in the top level
41         source directory
42       * Definitions from a "build.properties" file in the top level
43         source directory
44       * Default definitions in this build.xml file
45
46       You will note below that property values can be composed based on the
47       contents of previously defined properties.  This is a powerful
48       technique that helps you minimize the number of changes required when
49       your development environment is modified. Note that property
50       composition is allowed within "build.properties" files as well as in
51       the "build.xml" script.
52        ================================================================= -->
53
54   <property name="org.bedework.globaldefs.file" value="bldfiles/globalDefs.xml"/>
55   <import file="${org.bedework.globaldefs.file}"/>
56
57   <!-- =================================================================
58        init:  all the property defs are in bldfiles/globalDdefs.xml
59        ================================================================= -->
60
61   <target name="init" depends="globalDefs">
62   </target>
63
64   <!-- =================================================================
65        The "all" target does a complete clean rebuild of all applications.
66        ================================================================= -->
67
68   <target name="all" depends="init,clean,dist"
69           description="Clean build and dist"/>
70
71   <!-- ======================== Clean Target ===========================
72        The "clean" target deletes any generated directories, to ensure
73        applications are built from scratch.
74        ================================================================= -->
75
76   <target name="clean" depends="init"
77           description="Delete generated directories">
78     <delete dir="${org.bedework.temp.home}"/>
79     <delete dir="${dist.home}"/>
80     <delete>
81       <fileset dir="." includes="junit*.properties" />
82       <fileset dir="." includes="test.log*" />
83     </delete>
84   </target>
85
86 <!-- ===================== bld.all Target ===============================
87   This target builds jar files ready for the deploy target.
88      =================================================================== -->
89
90   <target name="bld.all"
91           depends="bld.locale,bld.access,bld.calfacade,
92                    bld.calenv,bld.ical,bld.common,bld.core,
93                    bld.http,bld.caldavclientapi,
94                    bld.calsvci,bld.mail,bld.logging,
95                    bld.calsvc,bld.appcommon,
96                    bld.webadmin,bld.webclient,
97                    bld.synchml,bld.caldav,
98                    bld.timers,build.tools,
99                    bld.test,bld.config"
100           description="Build war and ear files">
101     <antcall inheritrefs="true" target="copy.to.jars.repository" />
102   </target>
103
104   <target name="copy.to.jars.repository" if="org.bedework.jars.repository">
105     <mkdir dir="${org.bedework.jars.repository}" />
106
107     <copy todir="${org.bedework.jars.repository}" >
108       <fileset dir="${org.bedework.temp.jars}">
109         <include name="*-${product.version}.jar"/>
110       </fileset>
111     </copy>
112   </target>
113
114 <!-- ===================== Deploy Target ===============================
115      The "deploy" target builds configured war files and zipped runnable
116      application based on the configuration properties. It then copies the
117      contents of the build directory into the locations required by our
118      servlet container, and picks up any external dependencies along the way.
119
120      After restarting the servlet container, you can then test bedework.
121
122      To build a version for your site you should probably copy and modify the
123                   appsuite/clones/democal.properties
124      file and change the value of org.bedework.clone.name to the name of your
125      new clone.
126
127      To build more than  one appsuite duplicate the ant task
128      invocation below with a different clone name in each.
129      =================================================================== -->
130
131   <target name="deploy.debug" depends="bld.all,deploy.log4j.xml"
132           description="Deploy applications to servlet container" >
133     <ant antfile="${org.bedework.deployment.base}/build.xml" inheritrefs="true"
134            target="deploy"  >
135       <property name="org.bedework.clone.name" value="${org.bedework.clone.default}" />
136       <property name="app.debug.val" value="9" />
137     </ant>
138   </target>
139
140   <target name="deploy" depends="bld.all,deploy.log4j.xml"
141           description="Deploy applications to servlet container" >
142     <ant antfile="${org.bedework.deployment.base}/build.xml" inheritrefs="true"
143            target="deploy"  >
144       <property name="org.bedework.clone.name" value="${org.bedework.clone.default}" />
145     </ant>
146   </target>
147
148 <!-- ================== build.configured Target ========================
149      Build configured war files but don't deploy. Use to build versions to
150      be deployed elsewhere.
151      =================================================================== -->
152
153   <target name="build.configured.debug" depends="bld.all"
154           description="Build configured applications" >
155     <ant antfile="${org.bedework.deployment.base}/build.xml" inheritrefs="true"
156            target="build.configured" >
157       <property name="org.bedework.clone.name" value="${org.bedework.clone.default}" />
158       <property name="app.debug.val" value="9" />
159     </ant>
160   </target>
161
162   <target name="build.configured" depends="bld.all"
163           description="Build configured applications" >
164     <ant antfile="${org.bedework.deployment.base}/build.xml" inheritrefs="true"
165            target="build.configured" >
166       <property name="org.bedework.clone.name" value="${org.bedework.clone.default}" />
167     </ant>
168   </target>
169
170   <!-- Copy log4j.xml to the app server but overwrite only if specified.
171        Somewhat annoying to find a carefully crafted log4j.xml gets overwritten.
172     -->
173   <target name="deploy.log4j.xml" >
174     <copy todir="${log4j.config.destination}"
175           file="${calendar.dir}/resources/log4j.xml"
176           overwrite="${org.bedework.deploy.log4j.config}" />
177   </target>
178
179   <!-- Target used to build from property files built by config tool -->
180   <target name="deploy.config" >
181     <copy todir="${log4j.config.destination}"
182           file="${calendar.dir}/resources/log4j.xml"
183           overwrite="${org.bedework.deploy.log4j.config}" />
184
185     <!-- The property org.bedework.deploy.config.name must be set -->
186     <ant antfile="${org.bedework.appsuite.base}/build.xml" inheritrefs="true"
187            target="deploy.config"  />
188
189     <antcall inheritrefs="true" target="deploy.caldav" />
190   </target>
191
192 <!-- ==================== Dist Target ==================================
193      The "dist" target creates a binary distribution of your application
194      in a directory structure ready to be archived in a tar.gz or zip file.
195      Note that this target depends on two others:
196      * "deploy" so that the entire web application (including external
197        dependencies) will have been assembled
198      * "javadoc" so that the application Javadocs will have been created
199      =================================================================== -->
200
201   <target name="dist" depends="bld.all,javadoc"
202           description="Create binary distribution" />
203
204 <!-- ==================== Javadoc Target ===============================
205      The "javadoc" target creates Javadoc API documentation for the Java
206      classes included in your application.  Normally, this is only required
207      when preparing a distribution release, but is available as a separate
208      target in case the developer wants to create Javadocs independently.
209      =================================================================== -->
210
211   <target name="javadoc" depends="init"
212           description="Create Javadoc API documentation">
213
214     <path id="javadoc.classpath">
215       <pathelement location="${servlet.jar}"/>
216       <pathelement location="${struts.jar}"/>
217       <pathelement location="${fop.jar}"/>
218       <pathelement location="${avalon.jar}"/>
219       <pathelement location="${log4j.jar}"/>
220       <pathelement location="${hibernate.jar}"/>
221       <pathelement location="${ical4j.jar}"/>
222       <pathelement location="${logkit.jar}"/>
223       <pathelement location="${jtidy.jar}"/>
224     </path>
225     <mkdir dir="${dist.home}/docs/api"/>
226     <javadoc sourcepath="${org.bedework.access.base}/src:
227                          ${org.bedework.appcommon.base}/src:
228                          ${org.bedework.core.base}/src:
229                          ${org.bedework.caldav.base}/src:
230                          ${org.bedework.caldavClientApi.base}/src:
231                          ${org.bedework.calenv.base}/src:
232                          ${org.bedework.calfacade.base}/src:
233                          ${org.bedework.calsvc.base}/src:
234                          ${org.bedework.calsvci.base}/src:
235                          ${org.bedework.common.base}/src:
236                          ${org.bedework.config.base}/src:
237                          ${org.bedework.http.base}/src:
238                          ${org.bedework.ical.base}/src:
239                          ${org.bedework.locale.base}/src:
240                          ${org.bedework.logging.base}/src:
241                          ${org.bedework.mail.base}/src:
242                          ${org.bedework.synchml.base}/src:
243                          ${org.bedework.timers.base}/src:
244                          ${org.bedework.tools.base}/src:
245                          ${org.bedework.webadmin.base}/src:
246                          ${org.bedework.webclient.base}/src:
247                          ${org.bedework.webcommon.base}/src:"
248            classpathref="javadoc.classpath"
249                 destdir="${dist.home}/docs/api"
250            packagenames="org.bedework.access.*,
251                          org.bedework.*,
252                          edu.rpi.cct.uwcal.access.*,
253                          edu.rpi.*,
254                          edu.washington.*"
255                  access="public"
256                  author="true"
257                 version="true"
258           breakiterator="yes"
259             windowtitle="${product.name} ${product.version} API Documentation">
260       <doctitle><![CDATA[${product.name} ${product.version}<br/>API Documentation]]></doctitle>
261       <header><![CDATA[${product.name} ${product.version}<br/>API Documentation]]></header>
262     </javadoc>
263
264   </target>
265
266   <!-- ======================== calfacade target =========================
267        This builds the back end facade for the core of the calendar.
268        ================================================================= -->
269
270   <target name="bld.calfacade"
271           depends="bld.access"
272           description="Build calendar calfacade jars" >
273       <ant antfile="${org.bedework.calfacade.base}/build.xml" inheritrefs="true"
274            target="build" />
275   </target>
276
277   <!-- ======================== calenv target =========================
278        This builds the some environment dependent classes for the core
279        of the calendar.
280        ================================================================= -->
281
282   <target name="bld.calenv"
283           depends="bld.calfacade"
284           description="Build calendar env jars" >
285       <ant antfile="${org.bedework.calenv.base}/build.xml" inheritrefs="true"
286            target="build" />
287   </target>
288
289   <!-- ======================== core target =========================
290        This builds the back end core of the calendar. Applications interact
291        with that core through the CalFacade interface.
292        ================================================================= -->
293
294   <target name="bld.core"
295           depends="bld.calfacade,bld.calenv,bld.ical"
296           description="Build calendar core jars" >
297       <ant antfile="${org.bedework.core.base}/build.xml" inheritrefs="true"
298            target="build" />
299   </target>
300
301   <!-- ======================== locale target =========================
302        This builds the localization suite of the calendar.
303        ================================================================= -->
304
305   <target name="bld.locale"
306           depends="init"
307           description="Build calendar localization suite jars" >
308       <ant antfile="${org.bedework.locale.base}/build.xml" inheritrefs="true"
309            target="build" />
310   </target>
311
312   <!-- ======================== access target =========================
313        This builds the access control suite of the calendar.
314        ================================================================= -->
315
316   <target name="bld.access"
317           depends="bld.locale"
318           description="Build calendar access control suite jars" >
319       <ant antfile="${org.bedework.access.base}/build.xml" inheritrefs="true"
320            target="build" />
321   </target>
322
323   <!-- ======================== common target =======================
324        This builds the common classes jar.
325        ================================================================= -->
326
327   <target name="bld.common"
328           depends="init,bld.calfacade,bld.locale"
329           description="Build calendar common classes jar">
330       <ant antfile="${org.bedework.common.base}/build.xml" inheritrefs="true"
331            target="build" />
332   </target>
333
334   <!-- ======================== http target =======================
335        This builds the http-client classes jar.
336        ================================================================= -->
337
338   <target name="bld.http"
339           depends="init,bld.calenv,bld.calfacade,bld.locale"
340           description="Build calendar http classes jar">
341       <ant antfile="${org.bedework.http.base}/build.xml" inheritrefs="true"
342            target="build" />
343   </target>
344
345   <!-- ======================== caldavclientapi target =======================
346        This builds the http-client classes jar.
347        ================================================================= -->
348
349   <target name="bld.caldavclientapi"
350           depends="init,bld.http,bld.calfacade"
351           description="Build calendar caldav client api classes jar">
352       <ant antfile="${org.bedework.caldavClientApi.base}/build.xml" inheritrefs="true"
353            target="build" />
354   </target>
355
356   <!-- ======================== logging target =======================
357        This builds the logging classes jar.
358        ================================================================= -->
359
360   <target name="bld.logging"
361           depends="init,bld.calfacade"
362           description="Build logging classes jar">
363       <ant antfile="${org.bedework.logging.base}/build.xml" inheritrefs="true"
364            target="build" />
365   </target>
366
367   <!-- ======================== mail target =======================
368        This builds the mail classes jar.
369        ================================================================= -->
370
371   <target name="bld.mail"
372           depends="init,bld.calsvci"
373           description="Build calendar mail classes jar">
374       <ant antfile="${org.bedework.mail.base}/build.xml" inheritrefs="true"
375            target="build" />
376   </target>
377
378   <!-- ======================== calsvci target =======================
379        This builds the service level interface classes
380        ================================================================= -->
381
382   <target name="bld.calsvci"
383           depends="init,bld.common,bld.ical"
384           description="Build calendar service interface classes jar">
385       <ant antfile="${org.bedework.calsvci.base}/build.xml" inheritrefs="true"
386            target="build" />
387   </target>
388
389   <!-- ======================== calsvc target =======================
390        This builds the service level interface implementation classes
391        ================================================================= -->
392
393   <target name="bld.calsvc"
394           depends="init,bld.common,bld.mail"
395           description="Build calendar service interface implementation classes jar">
396       <ant antfile="${org.bedework.calsvc.base}/build.xml" inheritrefs="true"
397            target="build" />
398   </target>
399
400   <!-- ======================== ical target =======================
401        This builds the classes associated with ical (rfc2445 etc)
402        ================================================================= -->
403
404   <target name="bld.ical"
405           depends="init,bld.common,bld.locale"
406           description="Build icalendar classes jar">
407       <ant antfile="${org.bedework.ical.base}/build.xml" inheritrefs="true"
408            target="build" />
409   </target>
410
411   <!-- ======================== appcommon target =======================
412        This builds a jar file which provides application support.
413        ================================================================= -->
414
415   <target name="bld.appcommon"
416           depends="init,bld.calsvci"
417           description="Build calendar service interface classes jar">
418       <ant antfile="${org.bedework.appcommon.base}/build.xml" inheritrefs="true"
419            target="build" />
420   </target>
421
422   <!-- ======================== webcommon target =======================
423        This builds the web common classes jar.
424        ================================================================= -->
425
426   <target name="bld.webcommon"
427           depends="bld.appcommon"
428           description="Build calendar web common classes jar">
429       <ant antfile="${org.bedework.webcommon.base}/build.xml" inheritrefs="true"
430            target="build" />
431   </target>
432
433   <!-- ======================= web client Targets ======================
434        This builds the web applications jars.
435        ================================================================= -->
436
437   <target name="bld.webadmin"
438           depends="init,bld.webcommon"
439           description="Build calendar webadmin suite">
440     <ant antfile="${org.bedework.webadmin.base}/build.xml" inheritrefs="true"
441            target="build" />
442   </target>
443
444   <target name="bld.webclient"
445           depends="init,bld.webcommon"
446           description="Build calendar webclient suite">
447     <ant antfile="${org.bedework.webclient.base}/build.xml" inheritrefs="true"
448            target="build" />
449   </target>
450
451   <!-- ======================== synchml Targets ========================
452        *
453        *  NOTE: Incomplete and under development
454        * The following comments map out an approach rather than document the
455        * facts
456        This builds the synchml library and applications.
457        Many build properties are taken from the appsuite clones property files.
458        To build a version for your site you should probably copy and modify the
459                   appsuite/clones/democal.properties
460        file and change the value of org.bedework.clone.name to the name of your
461        new clone.
462
463        To build more than  one appsuite duplicate the ant task
464        invocation below with a different clone name in each.
465        ================================================================= -->
466
467   <target name="bld.synchml"
468           depends="init,bld.appcommon,bld.calsvci,bld.ical,bld.calsvc,bld.webcommon"
469           description="Build calendar synchml suite">
470     <ant antfile="${org.bedework.synchml.base}/build.xml" inheritrefs="true"
471            target="build"  >
472       <property name="org.bedework.clone.name" value="${org.bedework.clone.default}" />
473     </ant>
474   </target>
475
476   <target name="bld.synchml.debug"
477           depends="init,bld.appcommon,bld.calsvci,bld.ical,bld.calsvc,bld.webcommon"
478           description="Build calendar synchml suite">
479     <ant antfile="${org.bedework.synchml.base}/build.xml" inheritrefs="true"
480            target="build" >
481       <property name="org.bedework.clone.name" value="${org.bedework.clone.default}" />
482       <property name="app.debug.val" value="9" />
483     </ant>
484   </target>
485
486   <!-- ======================== caldav Targets ========================
487        *
488        *  NOTE: Incomplete and under development
489        ================================================================= -->
490
491   <target name="bld.caldav" if="org.bedework.build.caldav"
492           depends="init,bld.appcommon"
493           description="Build calendar caldav suite">
494     <ant antfile="${org.bedework.caldav.base}/build.xml" inheritrefs="true"
495            target="build" />
496   </target>
497
498   <!-- ======================== config Target ========================
499        This builds the config and deploy application
500        ================================================================= -->
501
502   <target name="bld.config"
503           depends="init"
504           description="Build calendar config and deploy module">
505     <ant antfile="${org.bedework.config.base}/build.xml" inheritrefs="true"
506            target="build" />
507   </target>
508
509   <!-- ======================== timers Targets ========================
510        This builds some timing service classes and applications
511        ================================================================= -->
512
513   <target name="bld.timers"
514           depends="init,bld.appcommon"
515           description="Build calendar timed services suite">
516     <ant antfile="${org.bedework.timers.base}/build.xml" inheritrefs="true"
517            target="build" >
518       <property name="org.bedework.clone.name" value="${org.bedework.clone.default}" />
519     </ant>
520   </target>
521
522   <target name="bld.timers.debug"
523           depends="init,bld.appcommon"
524           description="Build calendar timed services suite">
525     <ant antfile="${org.bedework.timers.base}/build.xml" inheritrefs="true"
526            target="build" >
527       <property name="app.debug.val" value="9" />
528       <property name="org.bedework.clone.name" value="${org.bedework.clone.default}" />
529     </ant>
530   </target>
531
532   <!-- ======================== tools Targets ========================
533        This builds the tools
534
535        To build more than  one appsuite duplicate the ant task
536        invocation below with a different clone name in each.
537        ================================================================= -->
538
539   <target name="build.tools"
540           depends="init,bld.appcommon"
541           description="Build calendar tools suite">
542     <ant antfile="${org.bedework.tools.base}/build.xml" inheritrefs="true"
543            target="build" />
544   </target>
545
546   <target name="dumpdb" depends="init">
547     <ant antfile="${org.bedework.tools.base}/build.xml" inheritrefs="true"
548            target="dumpdb" />
549   </target>
550
551   <target name="restoredb" depends="init">
552     <ant antfile="${org.bedework.tools.base}/build.xml" inheritrefs="true"
553            target="restoredb" />
554   </target>
555
556   <target name="initdb" depends="init">
557     <ant antfile="${org.bedework.tools.base}/build.xml" inheritrefs="true"
558            target="initdb" />
559   </target>
560
561   <target name="tzconvert" depends="init">
562     <ant antfile="${org.bedework.tools.base}/build.xml" inheritrefs="true"
563            target="tzconvert" />
564   </target>
565
566   <!-- ======================== test target =======================
567        This builds the test suite
568        ================================================================= -->
569
570   <target name="bld.test"
571           depends="init,bld.core,bld.appcommon,bld.synchml"
572           description="Build all calendar test jars">
573       <ant antfile="${org.bedework.testsuite.base}/build.xml" inheritrefs="true"
574            target="build" />
575   </target>
576
577   <target name="run.test"
578           depends="init,bld.core,bld.access,bld.appcommon,bld.synchml"
579           description="Run JUnit tests and generate a report">
580       <ant antfile="${org.bedework.testsuite.base}/build.xml" inheritrefs="true"
581            target="run.unittest" />
582   </target>
583
584   <target name="bld.httptest"
585           depends="init"
586           description="Build calendar http test suite classes jar">
587       <ant antfile="${org.bedework.testsuite.base}/build.xml" inheritrefs="true"
588            target="build.httptest" />
589   </target>
590
591   <target name="run.httptest"
592           depends="init"
593           description="Run calendar http test suite classes jar">
594     <!-- Define location of run-time env.properties -->
595     <property name="uwcal.env.properties.root"
596               location="${uwcal.test.env.properties.root}" />
597
598       <ant antfile="${org.bedework.testsuite.base}/build.xml" inheritrefs="true"
599            target="run.httptest" />
600   </target>
601
602   <target name="synchmltest"
603           depends="bld.test"
604           description="Run calendar synchml test">
605     <!-- Define location of run-time env.properties -->
606     <property name="uwcal.env.properties.root"
607               location="${uwcal.test.env.properties.root}" />
608
609     <ant antfile="${org.bedework.testsuite.base}/build.xml" inheritrefs="true"
610          target="synchmltest" />
611   </target>
612
613   <!-- ======================== schema target =======================
614        This builds the ddl from the hibernate schema
615        ================================================================= -->
616
617   <target name="schema" depends="init"
618           description="Generate schema from mapping files">
619     <input message="text only? no will update db with new schema "
620            validargs="yes,no"
621            addproperty="schema.text.only" />
622
623     <property name="schema.run.base"
624               location="${org.bedework.temp.home}/schema"/>
625     <property name="schema.run.resources"
626               location="${schema.run.base}/resources"/>
627
628     <delete dir="${schema.run.resources}" />
629     <mkdir dir="${schema.run.resources}" />
630     <copy tofile="${schema.run.resources}/log4j.xml"
631           file="${org.bedework.testsuite.base}/resources/log4j.xml" />
632     <property name="org.bedework.schema.hibernate.properties"
633               location="${org.bedework.testsuite.base}/resources/hibernate.properties" />
634     <copy todir="${schema.run.resources}"
635           file="${org.bedework.schema.hibernate.properties}" />
636
637     <property name="org.bedework.hibernate.schema.properties"
638               location="${schema.run.resources}/hibernate.properties" />
639
640     <path id="schema.cp">
641       <fileset dir="${org.bedework.default.lib}">
642          <include name="**/*.jar"/>
643       </fileset>
644       <!--
645       <fileset dir="${org.bedework.temp.jars}">
646          <include name="*.jar"/>
647       </fileset>
648       -->
649       <fileset dir="${hibernate.jars.dir}">
650          <include name="**/*.jar"/>
651       </fileset>
652       <pathelement location="${log4j.jar}"/>
653
654       <!-- for commons stuff -->
655       <fileset dir="${struts.dir}">
656          <include name="commons*.jar"/>
657       </fileset>
658       <pathelement location="${org.bedework.access.jar}"/>
659       <pathelement location="${org.bedework.calfacadeshared.jar}"/>
660
661       <pathelement location="${org.bedework.core.base}/resources"/>
662       <pathelement location="${schema.run.resources}"/>
663       <pathelement location="${schema.run.resources}/hibernate.properties"/>
664       <!--
665       <fileset dir="${org.bedework.hsqldb.dir}/lib">
666          <include name="*.jar"/>
667       </fileset>
668       -->
669     </path>
670
671     <property name="cp" refid="schema.cp" />
672     <echo message="***************cp: ${cp}"/>
673
674     <taskdef name="schemaexport"
675              classname="org.hibernate.tool.hbm2ddl.SchemaExportTask">
676       <classpath refid="schema.cp"/>
677     </taskdef>
678
679     <!-- text="no" causes task to create db. Requires db system to be running
680          and jdbc drivers on class path
681          -->
682     <schemaexport properties="${org.bedework.hibernate.schema.properties}"
683                   quiet="no"
684                   text="${schema.text.only}"
685                   drop="no"
686                   delimiter=";"
687                   output="schema-export.sql">
688                   <fileset dir="${org.bedework.core.base}/resources/hbms">
689                     <include name="*.hbm.xml"/>
690                   </fileset>
691     </schemaexport>
692   </target>
693
694 <!-- ===================== Quickstart target ===============================
695      The "quickstart.build" target 'builds' quickstart by copying particular
696      files into the quickstart directory.  We assume quickstart consists of
697      a directory containing 4 subdirectories:  tomcat, hsqldb, ant, and
698      this one (calendar3), along with the 3 ant executable files.  This
699      target copies files from calendar3 into the quickstart and tomcat
700      directories to create a calendar version that works out of the box
701      (once ant deploy is run).
702      =================================================================== -->
703
704   <target name="quickstart.build" depends="init"
705           description="copy files to quickstart directories">
706
707     <property name="quickstart.files.dir"
708               location="${calendar.dir}/quickstartFiles"/>
709
710     <copy todir="${org.bedework.appserver.dir}/conf" overwrite="yes">
711        <fileset dir="${quickstart.files.dir}/tomcat.conf" />
712     </copy>
713
714     <copy todir="${calendar.dir}/.." overwrite="yes">
715        <fileset dir="${quickstart.files.dir}/root" />
716     </copy>
717   </target>
718
719   <!-- Create a version using acegi security
720     -->
721   <target name="quickstart.acegi.build" depends="init"
722           description="copy files to quickstart directories">
723
724     <property name="quickstart.files.dir"
725               location="${calendar.dir}/quickstartFiles"/>
726
727     <copy todir="${org.bedework.appserver.dir}/common/lib" overwrite="yes">
728        <fileset dir="${calendar.dir}/lib/acegi"
729                 excludes="acegi-security-catalina-server.jar" />
730     </copy>
731
732     <copy todir="${org.bedework.appserver.dir}/server/lib" overwrite="yes">
733        <fileset dir="${calendar.dir}/lib/acegi"
734                 includes="acegi-security-catalina-server.jar" />
735     </copy>
736
737     <copy tofile="${org.bedework.appserver.dir}/conf/server.xml" overwrite="yes"
738           file="${quickstart.files.dir}/tomcat.conf/server.acgi.xml" />
739
740     <copy tofile="${org.bedework.appserver.dir}/conf/acegisecurity.xml" overwrite="yes"
741           file="${quickstart.files.dir}/tomcat.conf/acegisecurity.xml" />
742
743     <copy todir="${calendar.dir}/.." overwrite="yes">
744        <fileset dir="${quickstart.files.dir}/root" />
745     </copy>
746   </target>
747 </project>
Note: See TracBrowser for help on using the browser.