Changeset 3612

Show
Ignore:
Timestamp:
07/27/12 15:30:17
Author:
douglm
Message:

Change to correctly deploy spring web apps

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.8/build/buildwar.xml

    r3462 r3612  
    237237 
    238238    <antcall target="struts-stuff" inheritRefs="true" /> 
     239 
     240    <if> 
     241      <isset property="propval.app.spring.app" /> 
     242      <then> 
     243        <antcall target="spring-stuff" inheritRefs="true" /> 
     244      </then> 
     245    </if> 
    239246 
    240247    <!-- Filter the temp copy of the web.xml file --> 
     
    384391 
    385392  </target> 
     393 
     394  <!-- ================================================================= 
     395       If this is a struts app the following gets executed. 
     396       We create an updated struts-config.xml file and add some jars. 
     397       ================================================================= --> 
     398 
     399  <target name="spring-stuff"> 
     400    <copy todir="${app.dest.webinf}"> 
     401      <fileset dir="${app.sou.dir}/war/WEB-INF"> 
     402        <include name="*-servlet.xml"/> 
     403      </fileset> 
     404    </copy> 
     405 
     406    <mkdir  dir="${app.dest.webinf}/tlds"/> 
     407    <copy todir="${app.dest.webinf}/tlds" > 
     408      <fileset dir="${resources.dir}/spring/tlds"> 
     409        <include name="*"/> 
     410      </fileset> 
     411    </copy> 
     412  </target> 
    386413</project>