root/trunk/calendar3/build.xml

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

Moved caldav backend and deleted unused directory and source
Fixed up build

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