root/trunk/build/platforms/geronimoWar.xml

Revision 2698 (checked in by douglm, 3 years ago)

Rework the build process to make war/ear differences part of the imported platform specific build files.

Added a resource reference to the web.xml files for jms and updated the jboss-web files to link that in to a jboss resource. This probably needs some more parameterization.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      This file is imported by buildwar.xml and adds the targets
5      which will be invoked by the buildwar targets.
6         addLibs: add libraries for this platform
7         doPlatform - misc stuff
8         deployWar: deploy the war to the server
9         deployEar: deploy the ear to the server
10      =================================================================== -->
11
12 <project name="bedework.platformWar" default="doPlatform" >
13   <target name="doPlatform" >
14     <!-- ===============================================================
15          We create an updated geronimo-web.xml file (for geronimo) and a ear
16          =============================================================== -->
17
18     <copy todir="${app.dest.webinf}"
19           file="${app.sou.dir}/war/WEB-INF/geronimo-web.xml">
20       <filterset refid="property.filters" />
21     </copy>
22
23     <if>
24       <isset property="propval.app.virtual.host" />
25       <then>
26         <replace file="${app.dest.webinf}/geronimo-web.xml">
27           <replacetoken><![CDATA[<!-- Virtual host -->]]></replacetoken>
28           <replacevalue><![CDATA[<host>@VIRTUAL-HOST@</host>
29           ]]>
30           </replacevalue>
31         </replace>
32         <replace file="${app.dest.webinf}/geronimo-web.xml">
33           <replacefilter token="@VIRTUAL-HOST@" value="${propval.app.virtual.host}"/>
34         </replace>
35       </then>
36     </if>
37   </target>
38  
39   <!-- ================================================================
40        Add libraries
41        ================================================================ -->
42
43   <target name="addLibs">
44     <!-- hibernate jars -->
45     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.antlr}" />
46     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm-attrs}" />
47     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.asm}" />
48     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.cglib}" />
49     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.dom4j}" />
50     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ehcache}" />
51     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.hibernate}" />
52     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.javassist}" />
53     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jgroups}" />
54     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jta}" />
55     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-api}" />
56     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.slf4j-log4j12}" />
57
58     <if>
59       <isset property="org.bedework.build.caldav.google" />
60       <then>
61         <copy todir="${app.dest.lib}">
62           <fileset dir="${google.dir}">
63             <include name="*.jar"/>
64           </fileset>
65         </copy>
66       </then>
67     </if>
68
69     <!-- ===============================================================
70          Any jar files required
71          =============================================================== -->
72
73     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-annotations}" />
74     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiaccess}" />
75     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.rpiutil}" />
76     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-davio}" />
77     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-apiutil}" />
78     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcore}" />
79     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calcorei}" />
80     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calfacade}" />
81     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvc}" />
82     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-calsvci}" />
83     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-client}" />
84     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-icalendar}" />
85     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-logging}" />
86     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-mail}" />
87     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-sysevents}" />
88     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.bw-appcommon}" />
89
90     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-core}"/>
91     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.lucene-misc}"/>
92     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.ical4j}"/>
93     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-codec}"/>
94     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-collections}"/>
95     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-httpclient}"/>
96     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-lang}"/>
97     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-ssl}"/>
98
99     <!-- Mail related stuff -->
100     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.activation}" />
101     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.dsn}" />
102     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.imap}" />
103     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.mailapi}" />
104     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.pop3}" />
105     <copy todir="${app.dest.lib}" file="${org.bedework.appjar.smtp}" />
106
107     <!-- any extra files-->
108     <copy todir="${app.dest.lib}" >
109       <fileset dir="${org.bedework.temp.extrajars.dir}" />
110     </copy>
111    
112     <if>
113       <isset property="org.bedework.strutsapp" />
114       <then>
115         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.serializer}"/>
116         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.xalan}"/>
117         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.struts}"/>
118
119         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-beanutils}"/>
120         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-digester}"/>
121         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-fileupload}"/>
122         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-logging}"/>
123         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.commons-validator}"/>
124         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jakarta-oro}"/>
125         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jstl}"/>
126         <copy todir="${app.dest.lib}" file="${org.bedework.appjar.jstl-standard}"/>
127       </then>
128     </if>
129   </target>
130  
131   <!-- ================================================================
132        Deploy war
133        ================================================================ -->
134
135   <target name="deployWar">
136     <if>
137       <not>
138         <isset property="org.bedework.global.build.ear" />
139       </not>
140       <then>
141         <echo message="***************************************************************" />
142         <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
143         <echo message="***************************************************************" />
144
145         <!-- copy the war file. -->
146         <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
147               overwrite="yes" />
148
149         <!-- Delete expanded version -->
150         <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
151       </then>
152     </if>
153   </target>
154    
155   <!-- ================================================================
156        Deploy ear
157        ================================================================ -->
158
159   <target name="deployEar">
160   </target>
161 </project>
Note: See TracBrowser for help on using the browser.