root/releases/bedework-3.7/build/platforms/tomcat5War.xml

Revision 3179 (checked in by douglm, 2 years ago)

Fixed a build bug that caused a build failure after a clean.
Removed a lot of copying of files. There's now a definition of exactly which libraries are needed for the ears. This allows us to be more specific about which jars get loaded

Removed some geronimo stuff added a while back. It was all out of date.

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     <property name="propval.app.tomcat.context.xml"
15               location="${app.sou.dir}/war/META-INF/context.xml" />
16     <resolveFile name="app.tomcat.context.xml"
17                  file="${propval.app.tomcat.context.xml}"
18                  base="${app.sou.dir}"/>
19
20     <copy tofile="${app.dest.metainf}/context.xml"
21           file="${app.tomcat.context.xml}"
22           overwrite="yes" >
23       <filterset refid="property.filters" />
24     </copy>
25   </target>
26  
27   <!-- ================================================================
28        Add libraries
29        ================================================================ -->
30
31   <target name="addLibs">
32     <!-- Library in war file -->
33     <property name="app.dest.lib"
34               location="${app.dest.webinf}/lib" />
35   </target>
36  
37   <!-- ================================================================
38        Deploy war
39        ================================================================ -->
40
41   <target name="deployWar">
42     <echo message="***************************************************************" />
43     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
44     <echo message="***************************************************************" />
45
46     <!-- copy the war file. -->
47     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
48           overwrite="yes" />
49
50     <!-- Delete expanded version -->
51     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
52
53     <!-- Delete the quickstart context def -->
54     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
55   </target>
56    
57   <!-- ================================================================
58        Deploy ear
59        ================================================================ -->
60
61   <target name="deployEar">
62         <!-- Noop for tomcat -->
63   </target>
64 </project>
Note: See TracBrowser for help on using the browser.