root/trunk/calendar3/build.xml

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

Worked on getting dump ready. As a result realised some schema changes were required - all small.

Moved dumprestore out of the tools component into its own component calendar3/dumprestore

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