root/trunk/deployment/usercaldav/webapp/build.xml

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

This set of updates switches the expected tomcat server to tomcat 5.5.17


For reference the changes needed are noted below. Later today we will have a binary quickstart which can be downloaded from bedework.org whilch will provide what we believe to be a correctly configured tomcat 5.5.17

Changes required to the tomcat instance were...

Copy log4j and the hsqldb drivers from tomcat 5.0.28

cp path-to/jakarta-tomcat-5.0.28/common/classes/log4j.xml path-to/apache-tomcat-5.5.17/common/classes/log4j.xml

cp path-to/jakarta-tomcat-5.0.28/common/lib/hsqldb-1.7.3.3.jar path-to/apache-tomcat-5.5.17/common/lib/hsqldb-1.7.3.3.jar

In conf/web.xml change

<param-name>listings</param-name>
<param-value>false</param-value>

to

<param-name>listings</param-name>
<param-value>true</param-value>

to enable directory browsing.


Other changes...

More schedule changes

Fixed initbedework.xml so it works again.

Move freebusyAggregator config class into calfacade.configs

Suppress inclusion of web.xml from source to remove warning messages
Change democal.properties value from
org.bedework.app.Events.web.xml=guest/web.xml
to
org.bedework.app.Events.web.xml=war/WEB-INF/publicweb.xml

Similarly for SoEDept which now has
org.bedework.app.SoEDept.web.xml=war/WEB-INF/publicweb.xml

and added to public and user caldav which have
org.bedework.app.Pubcaldav.web.xml=war/WEB-INF/publicweb.xml
org.bedework.app.Usercaldav.web.xml=war/WEB-INF/userweb.xml

New global property

org.bedework.global.deploy.on.tomcat=true

This enables copying of context.xml files from the web application source.

Added properties

org.bedework.app.Events.tomcat.context.xml=war/META-INF/publiccontext.xml
org.bedework.app.SoEDept.tomcat.context.xml=war/META-INF/publiccontext.xml
org.bedework.app.UserCal?.tomcat.context.xml=war/META-INF/usercontext.xml
org.bedework.app.Pubcaldav.tomcat.context.xml=war/META-INF/publiccontext.xml
org.bedework.app.Usercaldav.tomcat.context.xml=war/META-INF/usercontext.xml

In addition the values of the context.root properties were changed to include a leading "/". This allows specifying a root context simply by omitting the value.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Default personal caldav servlet deployer
5      =================================================================== -->
6
7 <project name="bwusercaldav.deploy" default="deploy" >
8   <import file="${org.bedework.deployment.base}/deployprops.xml" />
9
10   <target name="init" >
11     <!-- and define some properties based on those -->
12     <property name="app.war.file"
13               location="${dist.home}/${propval.app.war.name}.war" />
14
15     <dirname property="this.dir" file="${ant.file}"/>
16
17     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
18
19     <!-- Properties that differ from the personal client -->
20     <!--
21     <property name="app.web.xml"
22               value="${app.sou.dir}/war/WEB-INF/web.xml" />
23               -->
24   </target>
25
26   <!-- =================================================================
27        The "deploy" target first builds a configured component then copies
28        all required files to the appropriate servlet container directories.
29
30        Currently this only works for the quickstart distribution.
31        For example, it does not handle deploying into jboss and copying
32        resource files (images, stylesheets) to external locations.
33        ================================================================= -->
34
35   <target name="deploy" depends="init,build.configured" >
36     <echo message="***************************************************************" />
37     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
38     <echo message="***************************************************************" />
39
40     <!-- copy the war file. -->
41     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
42           overwrite="yes" />
43
44     <!-- Delete expanded version -->
45     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
46
47     <!-- Delete the quickstart context def -->
48     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
49   </target>
50
51   <target name="build.configured" depends="init" >
52     <!-- ===============================================================
53          Libraries for this application
54          =============================================================== -->
55
56     <!-- from  the lib directory -->
57     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
58     </fileset>
59
60     <!-- from  the bin directory -->
61     <fileset id="app.bin.files" dir="${bin.home}" >
62       <include name="bw-caldav*.jar" />
63       <include name="bw-cdvserver*.jar" />
64       <include name="bw-webdavserver*.jar" />
65       <include name="${propval.app.interface.jar}*.jar" />
66     </fileset>
67
68     <!-- from  the temp jars directory -->
69     <fileset id="app.temp.lib.files" dir="${org.bedework.empty.dir}" >
70     </fileset>
71
72     <!-- ===============================================================
73          Build the war
74          =============================================================== -->
75
76     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
77   </target>
78 </project>
Note: See TracBrowser for help on using the browser.