root/trunk/build/buildwar.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      This file is called by other build files to create web applications.
5
6      It is assumed that no changes will be made to this file. It should be
7      possible to make all changes needed by modifying the configuration
8      properties or a bedework.build.proeprties file
9
10      An unwrapped web application will be built in the temp directory
11      and a war and ear file will be left in the dist directory.
12
13      Properties which must be defined on entry, apart from those described
14      in the main build file are:
15     app.root.dir       Location of the root directory for the apps
16     app.sou.dir        Location of the application skeleton,
17     app.name           Name of the application. This wil be used to determine
18                        the name of the file containing the rest of the
19                        application properties, the directory we build in
20                        and the name of war and ear files.
21     cal.j2ee           Defined if this is a j2ee application
22     cal.j2ee.jboss     Defined if this is a jboss application
23     cal.strutsapp      Defined if this is a struts application
24      These should be defined in the build properties for the application.
25
26      It is possible to define any of the app.dest properties below to override
27      the location of destination files.
28
29      In the directory
30         ${apps.sou.dir}
31      we expect an application skeleton formatted like a web-application
32      For the purposes of this build it should contain a
33      structure like
34               war - docs    (contains jsp and html for this app)
35                     WEB-INF - struts-config.xml
36                               web.xml
37                               jboss-web.xml (for jboss only)
38
39      Authors: Mike Douglass   douglm@rpi.edu
40      =================================================================== -->
41
42 <project name="bedework.buildwar" default="build" >
43   <target name="init" depends="init.common,init.uportal2,init.j2ee,init.standalone" />
44
45   <target name="init.common">
46     <!-- Load the location of the libraries -->
47     <property file="${org.bedework.project.bedework}/build/libjars.properties" />
48
49     <!--
50     <condition property="org.bedework.build.for.jetspeed2">
51       <equals arg1="jetspeed2" arg2="${propval.app.portal.platform}"/>
52     </condition>
53
54     <condition property="org.bedework.build.for.uportal2">
55       <equals arg1="uportal2" arg2="${propval.app.portal.platform}"/>
56     </condition>
57
58     <condition property="org.bedework.build.for.jboss">
59       <equals arg1="jboss" arg2="${org.bedework.global.j2ee.platform}"/>
60     </condition>
61     -->
62
63     <condition property="org.bedework.war.build.freebusy">
64       <equals arg1="yes" arg2="${org.bedework.build.freebusy}"/>
65     </condition>
66
67     <!-- Destinations - where we build an unwrapped war -->
68     <property name="app.dest.war"
69               location="${org.bedework.temp.wars.home}/${propval.app.war.name}.war" />
70     <property name="app.dest.docs"
71               location="${app.dest.war}/docs" />
72     <property name="app.dest.webinf"
73               location="${app.dest.war}/WEB-INF" />
74     <property name="app.dest.metainf"
75               location="${app.dest.war}/META-INF" />
76     <property name="app.dest.classes"
77               location="${app.dest.webinf}/classes" />
78     <property name="app.dest.properties"
79               location="${app.dest.classes}/properties/calendar" />
80
81     <!--temp web.xml location  -->
82     <property name="app.dest.web.xml"
83               location="${app.dest.webinf}/web.xml" />
84
85     <property name="app.war.file"
86               location="${dist.home}/${propval.app.war.name}.war" />
87
88     <property name="app.sou.tomcat.context.xml"
89               location="${app.sou.dir}/war/META-INF/context.xml" />
90
91     <!-- default web.xml -->
92     <property name="propval.app.web.xml"
93               value="war/WEB-INF/web.xml" />
94
95               <!--
96     <property name="app.web.xml"
97               location="${propval.app.web.xml}" />
98               -->
99     <resolveFile name="app.web.xml"
100                  file="${propval.app.web.xml}"
101                  base="${app.sou.dir}"/>
102
103     <property name="app.sou.properties"
104               location="${app.sou.dir}/war/WEB-INF/classes/servlet.properties" />
105   </target>
106
107   <target name="init.uportal2" if="org.bedework.build.for.uportal2" >
108     <property name="propval.app.servlet.class"
109               value="org.apache.portals.bridges.struts.PortletServlet" />
110
111     <property name="propval.app.ignoreContentType"
112               value="true" />
113
114     <property name="propval.app.genurl.taglib.tld"
115               value="bedework-uportal2.tld" />
116   </target>
117
118   <target name="init.standalone" if="org.bedework.global.build.standalone.app">
119     <property name="propval.app.servlet.class"
120               value="org.apache.struts.action.ActionServlet" />
121
122     <property name="propval.app.ignoreContentType"
123               value="false" />
124
125     <property name="propval.app.portlet.mapping" value="" />
126
127     <property name="propval.app.genurl.taglib.tld"
128               value="struts-html.tld" />
129
130     <property name="app.dest.lib"
131               location="${app.dest.webinf}/lib" />
132   </target>
133
134   <target name="init.j2ee" if="org.bedework.global.j2ee.platform">
135     <property name="propval.app.servlet.class"
136               value="org.apache.struts.action.ActionServlet" />
137
138     <property name="propval.app.ignoreContentType"
139               value="false" />
140
141     <property name="propval.app.portlet.mapping" value="" />
142
143     <property name="propval.app.genurl.taglib.tld"
144               value="struts-html.tld" />
145
146     <property name="app.dest.lib"
147               location="${org.bedework.temp.dir}/earlib" />
148   </target>
149
150   <target name="build" depends="init">
151     <delete dir="${app.dest.war}" />
152
153     <!-- Add modifed login pages -->
154     <copy todir="${app.dest.docs}/login" failonerror="false" >
155       <fileset dir="${app.root.dir}/resources/login" />
156       <filterset>
157         <filter token="DISPLAY-NAME" value="${propval.app.display.name}"/>
158       </filterset>
159     </copy>
160
161     <!-- ===============================================================
162          We copy 3 sets of properties.
163
164          First (for struts) are the servlet properties which ends up as
165               classes/servlet.properties
166          Next we copy in a set of generic property files and then with
167          overwrite we copy in a set of base specific files.
168
169          All are updated with new values.
170          =============================================================== -->
171
172     <filterset id="property.filters" >
173       <filter token="BW-APP-NAME"
174               value="${org.bedework.deploy.name}"/>
175
176       <filter token="HIBERNATE-DIALECT"
177               value="${org.bedework.global.hibernate.dialect}" />
178
179       <filter token="DIRECTORY-BROWSING-DISALLOWED"
180               value="${org.bedework.global.directory.browsing.disallowed}" />
181
182       <filter token="IGNORE-CONTENT-TYPE"
183               value="${propval.app.ignoreContentType}" />
184
185       <filter token="APP-DESCRIPTION"
186               value="${propval.app.description}" />
187
188       <filter token="PORTAL-PLATFORM"
189               value="${propval.app.portal.platform}"/>
190
191       <filter token="PORTLET-NAME"
192               value="${propval.app.portlet.name}"/>
193
194       <filter token="CAL-SUITE"
195               value="${propval.app.cal.suite}"/>
196
197       <filter token="SERVLET-CLASS"
198               value="${propval.app.servlet.class}"/>
199
200       <filter token="GENURL-TAGLIB-TLD"
201               value="${propval.app.genurl.taglib.tld}"/>
202
203       <filter token="SECURITY-DOMAIN"
204               value="${propval.app.security.domain}"/>
205       <filter token="SECURITY-PREFIX"
206               value="${propval.app.security.prefix}"/>
207       <filter token="TRANSPORT-GUARANTEE"
208               value="${propval.app.transport.guarantee}"/>
209
210       <filter token="DISPLAY-NAME"
211               value="${propval.app.display.name}"/>
212       <filter token="CONTEXT-ROOT"
213               value="${propval.app.context.root}" />
214       <filter token="APP-NAME"
215               value="${propval.app.name}"/>
216       <filter token="APP-VERSION"
217               value="${propval.app.version}"/>
218       <filter token="WAR-NAME"
219               value="${propval.app.war.name}"/>
220       <filter token="TOMCAT-DOC-BASE"
221               value="${org.bedework.appserver.dir}${propval.app.deploy.dir}/${propval.app.war.name}"/>
222
223       <filter token="DEFAULT-CONTENTTYPE"
224               value="${propval.app.default.contenttype}" />
225       <filter token="NOXSLT"
226               value="${propval.app.noxslt}" />
227       <filter token="APPLICATION-ROOT"
228               value="${propval.app.root}" />
229
230       <filter token="APP-GUESTMODE"
231               value="${propval.app.guestmode}" />
232
233       <!-- Change this to be an app par -->
234       <filter token="RUN-AS-USER"
235               value="${org.bedework.syspar.public.user}" />
236
237               <!-- ???????
238       <filter token="CALFILE-NAME"
239               value="${propval.app.calfile.name}" /> -->
240       <filter token="ADMIN-URI"
241               value="${org.bedework.global.public.admin.uri}" />
242       <filter token="PUBEVENTS-URI"
243               value="${org.bedework.global.public.calendar.uri}" />
244       <filter token="PERSONAL-URI"
245               value="${org.bedework.global.personal.calendar.uri}" />
246     </filterset>
247
248     <available file="${app.sou.dir}/properties" type="dir"
249                property="org.bedework.properties.dir.exists" />
250
251     <available file="${app.sou.properties}" type="file"
252                property="org.bedework.servlet.properties.exists" />
253
254     <available file="${app.sou.dir}/war/docs" type="dir"
255                property="org.bedework.war.docs.exists" />
256
257     <antcall target="copy.properties" inheritRefs="true" />
258     <antcall target="copy.servlet.properties" inheritRefs="true" />
259     <antcall target="copy.war.docs" inheritRefs="true" />
260
261     <!-- Create the env.properties file -->
262     <mkdir dir="${app.dest.properties}" />
263
264     <copy tofile="${app.dest.properties}/env.properties"
265           file="${org.bedework.config.properties}" />
266
267     <copy tofile="${app.dest.properties}/options.xml"
268           file="${org.bedework.config.options}" >
269       <filterset>
270         <filter token="RPI-DEBUG" value="${app.debug.val}"/>
271       </filterset>
272       <filterset refid="property.filters" />
273     </copy>
274
275     <!-- Make a modified copy of the web.xml file -->
276     <copy tofile="${app.dest.web.xml}"
277           file="${app.web.xml}"
278           overwrite="yes" >
279       <filterset>
280         <filter token="RPI-DEBUG" value="${app.debug.val}"/>
281       </filterset>
282       <filterset refid="property.filters" />
283     </copy>
284
285     <antcall target="struts-stuff" inheritRefs="true" />
286
287     <!-- ===============================================================
288          Add hibernate jars and property files from calendar api.
289          =============================================================== -->
290
291     <copy todir="${app.dest.classes}">
292       <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/properties" />
293       <filterset refid="property.filters" />
294     </copy>
295
296     <copy todir="${app.dest.classes}">
297       <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/hbms" />
298       <filterset refid="property.filters" />
299     </copy>
300
301     <copy todir="${app.dest.lib}">
302       <fileset dir="${hibernate.jars.dir}">
303         <include name="*.jar"/>
304       </fileset>
305     </copy>
306
307     <antcall target="jboss-stuff" inheritRefs="true" />
308     <antcall target="bexchange-stuff" inheritRefs="true" />
309     <antcall target="domino-stuff" inheritRefs="true" />
310     <antcall target="google-stuff" inheritRefs="true" />
311
312     <!-- ===============================================================
313          Any jar files required
314          =============================================================== -->
315
316     <copy todir="${app.dest.lib}" overwrite="yes">
317       <fileset dir="${bin.home}">
318         <!-- jars from sub-projects needed by all -->
319         <include name="rpiaccess*.jar"/>
320         <include name="rpiutil*.jar"/>
321         <include name="bw-davdefs*.jar"/>
322         <include name="bw-davio*.jar"/>
323
324         <!-- Calendar api jars -->
325         <include name="bw-calcore*.jar"/>
326         <include name="bw-calcorei*.jar"/>
327         <include name="bw-calenv*.jar"/>
328         <include name="bw-calfacade*.jar"/>
329         <include name="bw-calsvc*.jar"/>
330         <include name="bw-calsvci*.jar"/>
331         <include name="bw-icalendar*.jar"/>
332         <include name="bw-locale*.jar"/>
333         <include name="bw-logging*.jar"/>
334
335         <!-- Common jars for web apps -->
336         <include name="bw-appcommon*.jar"/>
337       </fileset>
338     </copy>
339
340      <!-- any extra bin files-->
341     <copy todir="${app.dest.lib}" >
342       <fileset refid="app.bin.files" />
343     </copy>
344
345     <!-- Some more standard libs -->
346     <copy todir="${app.dest.lib}" file="${log4j.jar}"/>
347     <copy todir="${app.dest.lib}" file="${ical4j.jar}"/>
348     <copy todir="${app.dest.lib}" file="${commons-codec.jar}"/>
349     <copy todir="${app.dest.lib}" file="${commons-collections.jar}"/>
350     <copy todir="${app.dest.lib}" file="${commons-ssl.jar}"/>
351
352
353     <!-- add the jdbcdriver if defined -->
354     <antcall target="add.jdbcdriver" inheritRefs="true" />
355
356     <!-- free busy -->
357     <antcall target="add.freebusy" inheritRefs="true" />
358
359     <!-- tomcat -->
360     <antcall target="add.tomcat" inheritRefs="true" />
361
362      <!-- any extra lib files-->
363     <copy todir="${app.dest.lib}" >
364       <fileset refid="app.lib.files" />
365       <!-- <fileset refid="app.temp.lib.files" /> -->
366     </copy>
367
368     <!-- build the war file -->
369     <mkdir dir="${dist.home}" />
370     <delete file="${app.war.file}" />
371
372     <war warfile="${app.war.file}"
373          webxml="${app.dest.web.xml}"
374          basedir="${app.dest.war}"
375          excludes="WEB-INF/web.xml" />
376
377     <!-- build the ear file for a j2ee app
378     <antcall target="build.ear" inheritRefs="true" />
379     -->
380   </target>
381
382   <target name="add.freebusy" if="org.bedework.war.build.freebusy">
383     <copy todir="${app.dest.lib}" file="${org.bedework.fbclient.jar}" />
384     <copy todir="${app.dest.lib}" file="${org.bedework.fbaggregator.jar}" />
385   </target>
386
387   <target name="add.jdbcdriver" if="app.jdbcdriver.jar">
388     <copy todir="${app.dest.lib}" file="${app.jdbcdriver.jar}"/>
389   </target>
390
391   <target name="add.tomcat" if="org.bedework.global.deploy.on.tomcat">
392     <property name="propval.app.tomcat.context.xml"
393               location="${app.sou.dir}/war/META-INF/context.xml" />
394     <resolveFile name="app.tomcat.context.xml"
395                  file="${propval.app.tomcat.context.xml}"
396                  base="${app.sou.dir}"/>
397
398     <copy tofile="${app.dest.metainf}/context.xml"
399           file="${app.tomcat.context.xml}"
400           overwrite="yes" >
401       <filterset refid="property.filters" />
402     </copy>
403   </target>
404
405   <target name="copy.properties" if="org.bedework.properties.dir.exists">
406     <!-- ===============================================================
407          Any property files we need for configuration, other than the
408          standard struts file, should be in the "${app.sou.dir}/properties
409          directory. They will be copied into the appropriate place for the
410          war and transformed by the above filter.
411          =============================================================== -->
412     <copy todir="${app.dest.properties}" overwrite="yes" >
413       <fileset dir="${app.sou.dir}/properties"
414                includes="*.properties"/>
415       <filterset refid="property.filters" />
416     </copy>
417   </target>
418
419   <target name="copy.servlet.properties" if="org.bedework.servlet.properties.exists">
420     <copy tofile="${app.dest.classes}/servlet.properties" file="${app.sou.properties}">
421       <filterset refid="property.filters" />
422     </copy>
423   </target>
424
425   <target name="copy.war.docs" if="org.bedework.war.docs.exists">
426     <copy todir="${app.dest.docs}">
427       <fileset dir="${app.sou.dir}/war/docs" />
428     </copy>
429   </target>
430
431   <target name="bexchange-stuff" if="org.bedework.build.caldav.bexchange">
432     <copy tofile="${app.dest.properties}/timezones.xml"
433           file="${org.bedework.resources.base}/bwtimezones.xml" />
434   </target>
435
436   <target name="domino-stuff" if="org.bedework.build.caldav.domino">
437     <copy tofile="${app.dest.properties}/timezones.xml"
438           file="${org.bedework.resources.base}/bwtimezones.xml" />
439   </target>
440
441   <target name="google-stuff" if="org.bedework.build.caldav.google">
442     <copy todir="${app.dest.lib}">
443       <fileset dir="${google.dir}">
444         <include name="*.jar"/>
445       </fileset>
446     </copy>
447
448     <copy tofile="${app.dest.properties}/timezones.xml"
449           file="${org.bedework.resources.base}/bwtimezones.xml" />
450   </target>
451
452   <!-- =================================================================
453        If this is a struts app the following gets executed.
454        We create an updated struts-config.xml file and add some jars.
455        ================================================================= -->
456
457   <target name="struts-stuff" if="org.bedework.strutsapp">
458     <!-- Copy a dummy startup file into the war. -->
459     <copy todir="${app.dest.war}">
460       <fileset dir="${app.sou.dir}/war/" includes="setup.do" />
461     </copy>
462
463     <copy todir="${app.dest.webinf}"
464           file="${app.sou.dir}/war/WEB-INF/struts-config.xml"/>
465
466     <mkdir  dir="${app.dest.webinf}/tlds"/>
467     <copy todir="${app.dest.webinf}/tlds" >
468       <fileset dir="${struts.tlds.dir}">
469         <include name="*"/>
470       </fileset>
471     </copy>
472     <copy todir="${app.dest.webinf}/tlds" >
473       <fileset dir="${org.bedework.default.lib}/tlds">
474         <include name="*"/>
475       </fileset>
476     </copy>
477
478     <antcall target="add.xalan" inheritRefs="true" />
479     <antcall target="add.jetspeed2" inheritRefs="true" />
480     <antcall target="add.uportal2" inheritRefs="true" />
481
482     <copy todir="${app.dest.lib}">
483       <fileset dir="${struts.dir}">
484         <include name="*.jar"/>
485       </fileset>
486     </copy>
487
488     <copy todir="${app.dest.lib}" file="${antlr.jar}"/>
489     <copy todir="${app.dest.lib}" file="${commons-beanutils.jar}"/>
490     <copy todir="${app.dest.lib}" file="${digester.jar}"/>
491     <copy todir="${app.dest.lib}" file="${commons-fileupload.jar}"/>
492     <copy todir="${app.dest.lib}" file="${commons-logging.jar}"/>
493     <copy todir="${app.dest.lib}" file="${commons-validator.jar}"/>
494     <copy todir="${app.dest.lib}" file="${jakarta-oro.jar}"/>
495   </target>
496
497   <target name="add.jetspeed2" if="org.bedework.build.for.jetspeed2" >
498     <copy todir="${app.dest.webinf}"
499           file="${org.bedework.deploy.type.dir}/jetspeed2/${propval.app.war.name}/portlet.xml"
500           overwrite="yes"
501           failonerror="no" />
502     <copy todir="${app.dest.webinf}"
503           file="${org.bedework.deploy.type.dir}/jetspeed2/struts-portlet-config.xml"
504           overwrite="yes"
505           failonerror="no" />
506
507     <copy todir="${app.dest.lib}" >
508       <fileset dir="${org.bedework.default.lib}/${jetspeed2.jars.dir}/portals-bridges-struts">
509         <include name="*.jar"/>
510       </fileset>
511     </copy>
512
513     <copy todir="${app.dest.webinf}/tlds" >
514       <fileset dir="${org.bedework.default.lib}/${jetspeed2.jars.dir}/portals-bridges-struts">
515         <include name="*.tld"/>
516       </fileset>
517     </copy>
518
519     <!-- Add the portal bridge controller def -->
520     <replace file="${app.dest.webinf}/struts-config.xml">
521       <replacetoken><![CDATA[<!-- Jetspeed2 controller def here -->]]></replacetoken>
522       <replacevalue><![CDATA[<controller pagePattern="$M$P" inputForward="true"
523               processorClass="org.apache.portals.bridges.struts.PortletRequestProcessor"/>]]>
524       </replacevalue>
525     </replace>
526   </target>
527
528   <target name="add.uportal2" if="org.bedework.build.for.uportal2" >
529     <copy todir="${app.dest.webinf}"
530           file="${org.bedework.deploy.type.dir}/uportal2/portlet.xml"
531           overwrite="yes"
532           failonerror="no" >
533       <filterset refid="property.filters" />
534     </copy>
535
536     <copy todir="${app.dest.webinf}"
537           file="${org.bedework.deploy.type.dir}/uportal2/struts-portlet-config.xml"
538           overwrite="yes"
539           failonerror="no" />
540
541     <copy todir="${app.dest.lib}" >
542       <fileset dir="${portals-bridges.jars.dir}">
543         <include name="*.jar"/>
544       </fileset>
545       <fileset dir="${bin.home}">
546         <include name="bw-uportal*.jar"/>
547       </fileset>
548     </copy>
549
550     <copy todir="${app.dest.webinf}/tlds"
551           overwrite="yes"
552           failonerror="no" >
553       <fileset dir="${org.bedework.deploy.type.dir}/uportal2" >
554         <include name="*.tld"/>
555       </fileset>
556     </copy>
557
558     <copy todir="${app.dest.lib}" file="${org.bedework.uportal.jar}" />
559
560     <!-- Add the portlet servlet mapping -->
561     <replace file="${app.dest.webinf}/web.xml">
562       <replacetoken><![CDATA[<!-- uPortal2 portlet servlet mapping here -->]]></replacetoken>
563       <replacevalue><![CDATA[<servlet-mapping>
564     <servlet-name>@PORTLET-NAME@</servlet-name>
565     <url-pattern>/@PORTLET-NAME@/*</url-pattern>
566   </servlet-mapping>]]>
567       </replacevalue>
568     </replace>
569
570     <replace file="${app.dest.webinf}/web.xml">
571       <replacefilter token="@PORTLET-NAME@" value="${propval.app.portlet.name}"/>
572     </replace>
573
574     <!-- Add the portal bridge controller def -->
575     <replace file="${app.dest.webinf}/struts-config.xml">
576       <replacetoken><![CDATA[<!-- Jetspeed2 controller def here -->]]></replacetoken>
577       <replacevalue><![CDATA[<controller pagePattern="$M$P" inputForward="true"
578               processorClass="org.apache.portals.bridges.struts.PortletRequestProcessor"/>]]>
579       </replacevalue>
580     </replace>
581   </target>
582
583   <target name="add.xalan" unless="xalan.in.tomcat.common.endorsed" >
584     <copy todir="${app.dest.lib}" file="${xalan.jar}"/>
585   </target>
586
587   <!-- =================================================================
588        If this is a j2ee app the following gets executed.
589        We create an uodated jboss-web.xml file (for jboss) and a ear
590        ================================================================= -->
591
592   <target name="jboss-stuff" if="org.bedework.build.for.jboss">
593     <copy todir="${app.dest.webinf}"
594           file="${app.sou.dir}/war/WEB-INF/jboss-web.xml">
595       <filterset refid="property.filters" />
596     </copy>
597     <antcall target="jboss-virtual-host" inheritRefs="true" />
598   </target>
599
600   <target name="jboss-virtual-host" if="org.bedework.global.virtual.host">
601     <replace file="${app.dest.webinf}/jboss-web.xml">
602       <replacetoken><![CDATA[<!-- Virtual host -->]]></replacetoken>
603       <replacevalue><![CDATA[<virtual-host>@VIRTUAL-HOST@</virtual-host>
604       ]]>
605       </replacevalue>
606     </replace>
607     <replace file="${app.dest.webinf}/jboss-web.xml">
608       <replacefilter token="@VIRTUAL-HOST@" value="${org.bedework.global.virtual.host}"/>
609     </replace>
610   </target>
611
612   <target name="build.ear" if="cal.j2ee">
613     <ant antfile="${buildear}"
614          inheritRefs="true" target="build" />
615   </target>
616 </project>
Note: See TracBrowser for help on using the browser.