root/trunk/bedework/deployment/termination/jboss/build.xml

Revision 966 (checked in by douglm, 7 years ago)

Moved web config classes into calfacade
Fixed up jboss build

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Termination buildfile for jboss (j2ee) deployment
5      =================================================================== -->
6
7 <project name="app.deploy" default="deploy" >
8   <target name="init">
9     <dirname property="this.dir" file="${ant.file}"/>
10
11     <property name="app.ear.file"
12               location="${dist.home}/${org.bedework.global.ear.name}.ear" />
13     <property name="app.resources.dir"
14               location="${this.dir}/../webapp/resources" />
15   </target>
16
17   <!-- =================================================================
18        The "deploy" target builds a single ear file out of the results.
19        ================================================================= -->
20
21   <target name="deploy" depends="init,build.configured" >
22     <echo message="***************************************************************" />
23     <echo message="Building ear file for jboss deployment" />
24     <echo message="***************************************************************" />
25
26     <property name="ear.dir"
27               location="${org.bedework.temp.dir}/ear" />
28
29     <path id="app.xml.cp">
30       <pathelement location="${org.bedework.deployutil.jar}"/>
31     </path>
32
33     <taskdef name="applicationXml"
34              classname="org.bedework.deployment.ApplicationXmlTask">
35       <classpath refid="app.xml.cp"/>
36     </taskdef>
37
38     <!-- We have to drop some of the libraries so they don't conflict -->
39     <copy toDir="${ear.dir}">
40       <fileset dir="${org.bedework.temp.dir}/earlib">
41         <exclude name="commons-logging*" />
42         <exclude name="log4j*" />
43         <exclude name="servlet.jsp*" />
44       </fileset>
45     </copy>
46
47     <applicationXml displayName="Bedework calendar suite"
48                     outFile="${ear.dir}/META-INF/application.xml"
49                     warDir="${org.bedework.temp.dir}/wars">
50       <fileset dir="${ear.dir}">
51         <include name="*.jar"/>
52       </fileset>
53     </applicationXml>
54
55     <manifest file="${ear.dir}/META-INF/MANIFEST.MF" />
56
57     <copy toDir="${ear.dir}">
58       <fileset dir="${org.bedework.temp.wars.home}"/>
59     </copy>
60
61     <zip destfile="${app.ear.file}"
62          basedir="${ear.dir}"/>
63   </target>
64
65   <target name="build.configured" >
66     <!-- ===============================================================
67          Nothing to do here
68          =============================================================== -->
69   </target>
70 </project>
Note: See TracBrowser for help on using the browser.