Changeset 2429

Show
Ignore:
Timestamp:
12/08/09 21:51:34
Author:
douglm
Message:

Create a servlet.properties file in buildwar.xml

We cannot have multiple servlet.properties files in a ear file as they all end up on the same classpath

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/buildwar.xml

    r2368 r2429  
    196196    </copy> 
    197197 
     198        <!-- Make our own servlet.properties file for struts applications 
    198199    <copy tofile="${app.dest.classes}/servlet.properties" file="${app.sou.properties}"> 
    199200      <filterset refid="property.filters" /> 
    200201    </copy> 
     202    --> 
    201203 
    202204    <copy tofile="${app.dest.classes}/sysevents.properties" 
     
    340342 
    341343  <target name="struts-stuff" if="org.bedework.strutsapp"> 
     344        <!-- Make our own servlet.properties file for struts applications --> 
     345    <echo file="${app.dest.classes}/servlet.properties" ><![CDATA[# 
     346# ======================================================================== 
     347# This file contains all properties for servlet applications. 
     348# It cannot be application specific as the jboss build creates a 
     349# single set of resources on the classpath. 
     350# ======================================================================== 
     351# 
     352 
     353# ======================================================================== 
     354# Properties for the xml/xslt based calendar web applications 
     355# ======================================================================== 
     356# 
     357# author Mike Douglass douglm rpi.edu 
     358 
     359# This is only here because the jetspeed portal-struts bridge does not seem to be 
     360# passing across the servlet context. 
     361#org.bedework.svcicb.sessionAttrName=org.bedework.admin.svcicb.sessionattrname.@APP-NAME@ 
     362 
     363# These are required by the Struts framework 
     364errors.header=<errors><ul> 
     365errors.footer=</ul></errors> 
     366 
     367messages.header=<messages><ul> 
     368messages.footer=</ul></messages> 
     369 
     370edu.rpi.sss.util.action.noactionerrors=yes 
     371 
     372applicationResources=<li>Cannot load application resources bundle {0}</li> 
     373 
     374# set the default content type - html for jsp, xml for xml/xslt. 
     375#edu.rpi.sss.util.action.contenttype=@DEFAULT-CONTENTTYPE@ 
     376edu.rpi.sss.util.action.contenttype=text/xml 
     377 
     378edu.rpi.sss.util.error.exc=<li>Exception: {0}</li> 
     379 
     380# Turn nocache headers on. We don't use the standard struts directives 
     381# because we need to be able to turn nocache off for a single response. 
     382# This gets around an IE problem with delivery of files. 
     383edu.rpi.sss.util.action.nocache=yes 
     384 
     385org.bedework.security.prefix=@SECURITY-PREFIX@ 
     386 
     387edu.rpi.sss.util.action.logprefix=@APP-NAME@ 
     388 
     389# Roles we need to know about - init action uses these 
     390# (Not using roles in the current system) 
     391#org.bedework.role.admin=@SECURITY-PREFIX@.admin 
     392#org.bedework.role.contentadmin=@SECURITY-PREFIX@.contentadmin 
     393#org.bedework.role.alert=@SECURITY-PREFIX@.alerts 
     394#org.bedework.role.owner=@SECURITY-PREFIX@.owner 
     395]]></echo> 
     396 
     397    <!-- Replace the tokens --> 
     398    <replace file="${app.dest.classes}/servlet.properties"> 
     399      <replacefilter token="@SECURITY-PREFIX@" 
     400                     value="${propval.app.security.prefix}" /> 
     401      <replacefilter token="@APP-NAME@" 
     402                     value="${propval.app.name}" /> 
     403      <replacefilter token="@DEFAULT-CONTENTTYPE@" 
     404                     value="${propval.app.default.contenttype}" /> 
     405    </replace> 
     406         
    342407    <!-- Copy a dummy startup file into the war. --> 
    343408    <copy todir="${app.dest.war}">