root/trunk/deployment/webpublic/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 public events web application deployer
5      =================================================================== -->
6
7 <project name="bwpublic.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     <!-- Flag as struts -->
20     <property name="org.bedework.strutsapp" value="true" />
21
22     <!-- Properties that differ from the personal client -->
23     <!--
24     <property name="app.web.xml"
25               value="${app.sou.dir}/war/WEB-INF/web.xml" />
26               -->
27
28     <!-- This should be in the config stuff -->
29     <property name="propval.directory.browsing.disallowed"
30               value="${app.directory.browsing.disallowed}" />
31
32     <property name="propval.app.guestmode" value="true" />
33
34     <property name="app.resources.dir"
35               location="${this.dir}/resources" />
36   </target>
37
38   <!-- =================================================================
39        The "deploy" target first builds a configured component then copies
40        all required files to the appropriate servlet container directories.
41
42        Currently this only works for the quickstart distribution.
43        For example, it does not handle deploying into jboss and copying
44        resource files (images, stylesheets) to external locations.
45        ================================================================= -->
46
47   <target name="deploy" depends="init,build.configured" >
48     <!-- First copy the resources into the server -->
49
50     <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" />
51     <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}">
52       <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
53     </copy>
54
55     <echo message="***************************************************************" />
56     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
57     <echo message="***************************************************************" />
58
59     <!-- Delete expanded version -->
60     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
61
62     <!-- copy the war file. -->
63     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}"
64           file="${app.war.file}"
65           overwrite="yes" />
66
67     <!-- Delete the quickstart context def -->
68     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
69
70     <antcall target="deploy.uportal2" inheritRefs="true" />
71   </target>
72
73   <target name="deploy.uportal2" if="org.bedework.build.for.uportal2" >
74     <ant antfile="${org.bedework.deploy.type.dir}/${propval.app.portal.platform}/build.xml"
75          inheritrefs="true" target="deploy" />
76   </target>
77
78   <target name="build.configured" depends="init" >
79     <!-- ===============================================================
80          Libraries for this application
81          =============================================================== -->
82
83     <!-- from  the lib directory -->
84     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
85     </fileset>
86
87     <!-- from  the bin directory -->
88     <fileset id="app.bin.files" dir="${bin.home}" >
89       <include name="bw-webcommon*.jar" />
90       <include name="bw-webclient*.jar" />
91     </fileset>
92
93     <!-- from  the temp jars directory -->
94     <fileset id="app.temp.lib.files" dir="${org.bedework.temp.jars}" >
95       <include name="${org.bedework.webclient.jar.name}" />
96     </fileset>
97
98     <!-- ===============================================================
99          Build the war
100          =============================================================== -->
101
102     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
103   </target>
104 </project>
105
Note: See TracBrowser for help on using the browser.