root/trunk/build/platforms/jbossWar.xml

Revision 1938 (checked in by douglm, 5 years ago)

Try to do the same for platforms (jboss, tomcat etc) as I just did for portals.

The deployment directories are much simplified and the build process seems a bit clearer.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      This file is imported by buildwar.xml and adds a target
5         doPortal
6      which will be invoked by the buildwar targets.
7      =================================================================== -->
8
9 <project name="bedework.platformWar" default="doPlatform" >
10   <target name="doPlatform" >
11     <!-- ===============================================================
12          We create an updated jboss-web.xml file (for jboss) and a ear
13          =============================================================== -->
14
15     <copy todir="${app.dest.webinf}"
16           file="${app.sou.dir}/war/WEB-INF/jboss-web.xml">
17       <filterset refid="property.filters" />
18     </copy>
19
20     <if>
21       <isset property="propval.app.virtual.host" />
22       <then>
23         <replace file="${app.dest.webinf}/jboss-web.xml">
24           <replacetoken><![CDATA[<!-- Virtual host -->]]></replacetoken>
25           <replacevalue><![CDATA[<virtual-host>@VIRTUAL-HOST@</virtual-host>
26           ]]>
27           </replacevalue>
28         </replace>
29         <replace file="${app.dest.webinf}/jboss-web.xml">
30           <replacefilter token="@VIRTUAL-HOST@" value="${propval.app.virtual.host}"/>
31         </replace>
32       </then>
33     </if>
34   </target>
35 </project>
Note: See TracBrowser for help on using the browser.