root/trunk/build/quickstart-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 <!-- This is the ant build file for the bedework Calendar quickstart.
4
5      It is imported by the quickstart build.xml ensuring all changes to this file
6      appear in the repository.
7
8      Authors: Mike Douglass   douglm@rpi.edu
9 -->
10
11 <project name="quickstart-build-file" default="usage" basedir=".">
12   <property environment="env"/>
13
14   <target name="README" depends="init"
15           description="Describe targets and their usage">
16     <loadfile property="org.bedework.README" srcFile="${org.bedework.calendar.dir}/docs/README"/>
17     <echo message="${org.bedework.README}" />
18   </target>
19
20   <target name="usage" depends="init"
21           description="Describe targets and their usage">
22     <echo message="As distributed the package should be ready to go."/>
23     <echo message="Ensure ant is on your path, (a version is in the" />
24     <echo message="package)"/>
25     <echo message=""/>
26     <echo message="First in one window do"/>
27     <echo message="    ant hsqldb"/>
28     <echo message="This will start the hsqldb server ready for the "/>
29     <echo message="application."/>
30     <echo message=""/>
31     <echo message="In another window do"/>
32     <echo message="    ant tomcatstart"/>
33     <echo message=""/>
34     <echo message="Once tomcat is running you should be able to go to a"/>
35     <echo message="browser and connect to"/>
36     <echo message="    http://localhost:8080/bedework"/>
37     <echo message="and follow the instructions."/>
38     <echo message=""/>
39     <echo message="To build the calendar do"/>
40     <echo message="    ant deploy    or "/>
41     <echo message="    ant deploy.debug "/>
42     <echo message="which does a build and deploy of all components"/>
43     <echo message=""/>
44     <echo message="To rebuild the calendar do"/>
45     <echo message="    ant clean.deploy    or "/>
46     <echo message="    ant clean.deploy.debug "/>
47     <echo message="which does a clean, build and deploy of all components"/>
48     <echo message=""/>
49     <echo message="See documentation in the docs directory or on bedework.org"/>
50     <echo message="for instructions on creating a locally configured calendar application"/>
51     <echo message=""/>
52   </target>
53
54    <!-- The only properties set below should be those directly used to
55         invoke the targets below, in this file.
56         Do not set properties here for tasks invoked in other build
57         files.  Instead, make sure the targets work in calendar/build.xml,
58         then invoke ant on the task in calendar/build.xml.
59
60         For an example, of invoking ant on another build file,
61         see the deploy target, below.
62      -->
63   <target name="init" >
64     <dirname property="quickstart.dir" file="${ant.file}"/>
65
66     <property name="org.bedework.project.bedework"
67               location="${basedir}/bedework" />
68
69     <property name="bedework.build.file"
70               location="${basedir}/bedework/build.xml" />
71     <property name="org.bedework.user.build.properties"
72               location="${user.home}/bedework.build.properties" />
73
74     <echo message="Load user properties from ${org.bedework.user.build.properties}" />
75
76     <!-- Load user property definition overrides -->
77     <property file="${org.bedework.user.build.properties}" />
78
79     <property file="${basedir}/bedework/deployment/deploy.properties" />
80   </target>
81
82   <target name="run.init" depends="init" >
83     <property name="org.bedework.user.build.properties"
84               location="${user.home}/bedework.build.properties" />
85
86     <echo message="Load user properties from ${org.bedework.user.build.properties}" />
87
88     <!-- Load user property definition overrides -->
89     <property file="${org.bedework.user.build.properties}" />
90
91   </target>
92
93   <!-- =================================================================
94        The "build" target builds the jar files
95        ================================================================= -->
96
97   <target name="build" depends="init"
98           description="builds the jars">
99     <ant antfile="${bedework.build.file}" inheritrefs="true"
100            target="build" />
101   </target>
102
103   <target name="clean.build" depends="clean"
104           description="cleans then builds the jars">
105     <ant antfile="${bedework.build.file}" inheritrefs="true"
106            target="clean.build" />
107   </target>
108
109   <!-- =================================================================
110        The "deploy" target builds and deploys the applications
111        ================================================================= -->
112
113   <target name="deploy" depends="init"
114           description="builds and deploys the applications">
115     <ant antfile="${bedework.build.file}" inheritrefs="true"
116            target="deploy" />
117   </target>
118
119   <target name="deploy.debug" depends="init"
120           description="builds and deploys the applications">
121     <ant antfile="${bedework.build.file}" inheritrefs="true"
122            target="deploy.debug" />
123   </target>
124
125   <!-- =================================================================
126        The "clean.deploy" target cleans, builds and deploys the applications
127        ================================================================= -->
128
129   <target name="clean" depends="init"
130           description="Remove all generated files.">
131     <ant antfile="${bedework.build.file}" inheritrefs="true"
132            target="clean" />
133   </target>
134
135   <target name="quickstart-clean" depends="init"
136           description="partial clean up for quickstart.">
137     <ant antfile="${bedework.build.file}" inheritrefs="true"
138            target="quickstart-clean" />
139   </target>
140
141   <target name="clean.deploy" depends="init"
142           description="builds and deploys the applications">
143     <ant antfile="${bedework.build.file}" inheritrefs="true"
144            target="clean.deploy" />
145   </target>
146
147   <target name="clean.deploy.debug" depends="init"
148           description="builds and deploys the applications">
149     <ant antfile="${bedework.build.file}" inheritrefs="true"
150            target="clean.deploy.debug" />
151   </target>
152
153   <!-- =================================================================
154        The "build.configured" target builds configured applications
155        ================================================================= -->
156
157   <target name="build.configured" depends="init"
158           description="Build configured applications" >
159     <ant antfile="${bedework.build.file}" inheritrefs="true"
160            target="build.configured" />
161   </target>
162
163   <target name="build.configured.debug" depends="init"
164           description="Build configured applications" >
165     <ant antfile="${bedework.build.file}" inheritrefs="true"
166            target="build.configured.debug" />
167   </target>
168
169   <target name="clean.build.configured" depends="init"
170           description="Build configured applications" >
171     <ant antfile="${bedework.build.file}" inheritrefs="true"
172            target="clean.build.configured" />
173   </target>
174
175   <target name="clean.build.configured.debug" depends="init"
176           description="Build configured applications" >
177     <ant antfile="${bedework.build.file}" inheritrefs="true"
178            target="clean.build.configured.debug" />
179   </target>
180
181   <!-- =================================================================
182        The "hsqldb" target starts the hsqldb server
183        ================================================================= -->
184
185   <target name="hsqldb" depends="run.init"
186           description="starts the hsqldb server">
187     <echo message="Starting hsqldb"/>
188     <java fork="true" dir="${basedir}" classname="org.hsqldb.Server">
189       <classpath>
190         <pathelement path="${org.bedework.hsqldb.dir}/lib/hsqldb.jar"/>
191       </classpath>
192       <arg value="-database"/>
193       <arg value="${org.bedework.hsqldb.dir}/${org.bedework.hsqldb.dbname}"/>
194       <arg value="-port"/>
195       <arg value="8887"/>
196     </java>
197   </target>
198
199   <target name="hsqldb-trace" depends="run.init"
200           description="starts the hsqldb server">
201     <echo message="Starting hsqldb"/>
202     <java fork="true" dir="${basedir}" classname="org.hsqldb.Server">
203       <classpath>
204         <pathelement path="${org.bedework.hsqldb.dir}/lib/hsqldb.jar"/>
205       </classpath>
206       <arg value="-trace"/>
207       <arg value="true"/>
208       <arg value="-silent"/>
209       <arg value="false"/>
210       <arg value="-database"/>
211       <arg value="${org.bedework.hsqldb.dir}/${org.bedework.hsqldb.dbname}"/>
212       <arg value="-port"/>
213       <arg value="8887"/>
214     </java>
215   </target>
216
217   <target name="uportaldb" depends="run.init"
218           description="starts the hsqldb server">
219     <echo message="Starting hsqldb"/>
220     <java fork="true" dir="${basedir}" classname="org.hsqldb.Server">
221       <classpath>
222         <pathelement path="${org.bedework.hsqldb.dir}/lib/hsqldb.jar"/>
223       </classpath>
224       <arg value="-database"/>
225       <arg value="${org.bedework.hsqldb.dir}/${org.bedework.hsqldb.uportal2.dbname}"/>
226       <arg value="-port"/>
227       <arg value="9887"/>
228     </java>
229   </target>
230
231   <!-- =================================================================
232        The "hsqldb-test" target starts the hsqldb server for testing
233        ================================================================= -->
234
235   <target name="hsqldb-test" depends="run.init"
236           description="starts the hsqldb server for testing">
237     <echo message="Starting hsqldb for testing"/>
238     <delete dir="${org.bedework.hsqldb.dbdir}" />
239
240     <java fork="true" dir="${basedir}" classname="org.hsqldb.Server">
241       <classpath>
242         <pathelement path="${org.bedework.hsqldb.dir}/lib/hsqldb.jar"/>
243       </classpath>
244       <arg value="-database"/>
245       <arg value="${org.bedework.hsqldb.dir}/${org.bedework.hsqldb.test.dbdir}/events"/>
246       <arg value="-port"/>
247       <arg value="8887"/>
248     </java>
249   </target>
250
251   <target name="hsqldb-test-trace" depends="run.init"
252           description="starts the hsqldb server for testing">
253     <echo message="Starting hsqldb for testing"/>
254     <delete dir="${org.bedework.hsqldb.dbdir}" />
255
256     <java fork="true" dir="${basedir}" classname="org.hsqldb.Server">
257       <classpath>
258         <pathelement path="${org.bedework.hsqldb.dir}/lib/hsqldb.jar"/>
259       </classpath>
260       <arg value="-trace"/>
261       <arg value="true"/>
262       <arg value="-silent"/>
263       <arg value="false"/>
264       <arg value="-database"/>
265       <arg value="${org.bedework.hsqldb.dir}/${org.bedework.hsqldb.test.dbdir}/events"/>
266       <arg value="-port"/>
267       <arg value="8887"/>
268     </java>
269   </target>
270
271   <!-- =================================================================
272        The "hsqldb-mngr" target runs the DatabaseManager class which
273        provides a gui interface to the running hsqldb database.
274        ================================================================= -->
275
276   <target name="hsqldb-mngr" depends="run.init"
277           description="Runs the DatabaseManager class which provides a
278                        gui interface to the running hsqldb database">
279     <echo message="Starting hsqldb DatabaseManager"/>
280     <echo message="Select type: HSQL Database Engine Server"/>
281     <echo message="Set the URL to jdbc:hsqldb:hsql://localhost:8887"/>
282     <java fork="true" dir="${basedir}"
283           classname="org.hsqldb.util.DatabaseManager">
284       <classpath>
285         <pathelement path="${org.bedework.hsqldb.dir}/lib/hsqldb.jar"/>
286       </classpath>
287     </java>
288   </target>
289
290   <!-- =================================================================
291        The "tomcatstart" target starts Tomcat
292        ================================================================= -->
293
294   <target name="tomcatstart-locale" depends="run.init"
295           description="starts the tomcat server">
296     <input message="Enter language code: "
297            addproperty="tomcat.locale" />
298
299     <input message="Enter country code: "
300            addproperty="tomcat.country" />
301
302     <echo message="Starting Tomcat from ${org.bedework.appserver.dir}"/>
303     <java fork="true" dir="${basedir}"
304           classname="org.apache.catalina.startup.Bootstrap">
305       <classpath>
306         <pathelement path="${org.bedework.appserver.dir}/bin/bootstrap.jar"/>
307       </classpath>
308       <sysproperty key="catalina.home" value="${org.bedework.appserver.dir}"/>
309       <!--jvmarg value="-Dcatalina.home=${tomcat.dir}"/-->
310       <jvmarg value="-Duser.language=${tomcat.locale}"/>
311       <jvmarg value="-Duser.country=${tomcat.country}"/>
312       <!--
313       <jvmarg value="-Dfile.encoding=ISO-8859-1"/>
314       -->
315       <arg value="start"/>
316     </java>
317   </target>
318
319   <target name="tomcatstart" depends="run.init"
320           description="starts the tomcat server">
321     <echo message="Starting Tomcat from ${org.bedework.appserver.dir}"/>
322     <java fork="true" dir="${basedir}"
323           classname="org.apache.catalina.startup.Bootstrap">
324       <classpath>
325         <pathelement path="${org.bedework.appserver.dir}/bin/bootstrap.jar"/>
326       </classpath>
327       <sysproperty key="catalina.home" value="${org.bedework.appserver.dir}"/>
328       <!--jvmarg value="-Dcatalina.home=${tomcat.dir}"/-->
329       <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
330       <arg value="start"/>
331     </java>
332   </target>
333
334   <target name="tomcatstart-profile" depends="run.init"
335           description="starts the tomcat server with rpofiling">
336     <echo message="Starting Tomcat from ${org.bedework.appserver.dir}"/>
337     <java fork="true" dir="${basedir}"
338           classname="org.apache.catalina.startup.Bootstrap">
339       <classpath>
340         <pathelement path="${org.bedework.appserver.dir}/bin/bootstrap.jar"/>
341       </classpath>
342       <sysproperty key="catalina.home" value="${org.bedework.appserver.dir}"/>
343       <!--jvmarg value="-Dcatalina.home=${tomcat.dir}"/-->
344       <jvmarg value="-Xrunyjpagent:cpu=times,onexit=cpu" />
345       <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
346       <arg value="start"/>
347     </java>
348   </target>
349
350   <target name="tomcatstart-profile-large" depends="run.init"
351           description="starts the tomcat server with rpofiling">
352     <echo message="Starting Tomcat from ${org.bedework.appserver.dir}"/>
353     <java fork="true" dir="${basedir}"
354           classname="org.apache.catalina.startup.Bootstrap">
355       <classpath>
356         <pathelement path="${org.bedework.appserver.dir}/bin/bootstrap.jar"/>
357       </classpath>
358       <sysproperty key="catalina.home" value="${org.bedework.appserver.dir}"/>
359       <!--jvmarg value="-Dcatalina.home=${tomcat.dir}"/-->
360       <jvmarg value="-Xms128m" />
361       <jvmarg value="-Xmx630m" />
362       <!--
363       <jvmarg value="-XX:PermSize=128m" />
364       <jvmarg value="-XX:MaxPermSize=128m" />
365       -->
366       <jvmarg value="-server" />
367       <jvmarg value="-Xrunyjpagent:cpu=times,onexit=cpu" />
368       <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
369       <arg value="start"/>
370     </java>
371   </target>
372
373   <target name="tomcatstart-debug" depends="run.init"
374           description="starts the tomcat server with remote debugging enabled">
375     <echo message="Starting Tomcat from ${org.bedework.appserver.dir}"/>
376     <java fork="true" dir="${basedir}"
377           classname="org.apache.catalina.startup.Bootstrap">
378       <classpath>
379         <pathelement path="${org.bedework.appserver.dir}/bin/bootstrap.jar"/>
380       </classpath>
381       <sysproperty key="catalina.home" value="${org.bedework.appserver.dir}"/>
382       <!--jvmarg value="-Dcatalina.home=${tomcat.dir}"/-->
383       <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
384       <jvmarg value="-Xdebug"/>
385       <jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"/>
386       <arg value="start"/>
387     </java>
388   </target>
389
390   <!-- This target is for use when sync4j is installed -->
391   <target name="tomcatstart-sync4j" depends="run.init"
392           description="starts the tomcat server with sync4j">
393     <echo message="Starting Tomcat with sync4j"/>
394     <java fork="true" dir="${basedir}"
395           classname="org.apache.catalina.startup.Bootstrap">
396       <classpath>
397         <pathelement path="${org.bedework.appserver.dir}/bin/bootstrap.jar"/>
398       </classpath>
399       <sysproperty key="catalina.home" value="${org.bedework.appserver.dir}"/>
400       <!--jvmarg value="-Dcatalina.home=${tomcat.dir}"/-->
401       <jvmarg value="-Dsync4j.home=${sync4j.dir}"/>
402       <arg value="start"/>
403     </java>
404   </target>
405
406   <!-- =================================================================
407        The "tomcatstop" target stops Tomcat cleanly
408        ================================================================= -->
409
410   <target name="tomcatstop" depends="run.init">
411     <echo message="Stopping Tomcat"/>
412     <java fork="true" dir="${basedir}"
413           classname="org.apache.catalina.startup.Bootstrap">
414       <classpath>
415         <pathelement path="${org.bedework.appserver.dir}/bin/bootstrap.jar"/>
416       </classpath>
417       <sysproperty key="catalina.home" value="${org.bedework.appserver.dir}"/>
418       <!--jvmarg value="-Dcatalina.home=${tomcat.dir}"/-->
419       <arg value="stop"/>
420     </java>
421   </target>
422 </project>
Note: See TracBrowser for help on using the browser.