root/trunk/deployment/termination/webapp/build.xml

Revision 1991 (checked in by douglm, 4 years ago)

Fix up the jboss build

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Standalone apps terminations tasks.
5      =================================================================== -->
6
7 <project name="bwdeploy.termination" default="deploy" >
8   <import file="${org.bedework.deployment.base}/deployprops.xml" />
9
10   <target name="init">
11     <dirname property="this.dir" file="${ant.file}"/>
12
13   </target>
14
15   <target name="deploy" depends="init,build.configured" >
16     <!-- Deploy common resources -->
17     <ant antfile="${org.bedework.common.resources}/build.xml"
18          inheritrefs="true" target="deploy" />
19
20     <if>
21       <isset property="org.bedework.global.build.ear" />
22       <then>
23         <echo message="***************************************************************" />
24         <echo message="Building ear file for jboss deployment" />
25         <echo message="***************************************************************" />
26
27         <jar jarfile="${org.bedework.ear.properties.jar}">
28           <fileset dir="${org.bedework.ear.properties.dir}"/>
29         </jar>
30
31         <path id="app.xml.cp">
32           <pathelement location="${org.bedework.deployutil.jar}"/>
33         </path>
34
35         <taskdef name="applicationXml"
36                  classname="org.bedework.deployment.ApplicationXmlTask">
37           <classpath refid="app.xml.cp"/>
38         </taskdef>
39
40         <!-- We have to drop some of the libraries so they don't conflict -->
41         <copy toDir="${org.bedework.ear.dir}">
42           <fileset dir="${org.bedework.ear.templib}"
43                    excludes="${org.bedework.global.ear.lib.excludes}" />
44         </copy>
45
46         <echo message="outFile=${org.bedework.ear.dir}/META-INF/application.xml
47                         warDir=${org.bedework.temp.dir}/wars
48                         contexts=${org.bedework.global.context.roots}" />
49
50         <applicationXml displayName="Bedework calendar suite"
51                         outFile="${org.bedework.ear.dir}/META-INF/application.xml"
52                         warDir="${org.bedework.temp.dir}/wars"
53                         contexts="${org.bedework.global.context.roots}">
54           <fileset dir="${org.bedework.ear.dir}">
55             <include name="*.jar"/>
56           </fileset>
57         </applicationXml>
58
59         <manifest file="${org.bedework.ear.dir}/META-INF/MANIFEST.MF" />
60
61         <if>
62           <equals arg1="${org.bedework.global.ear.wars.zipped}"
63                   arg2="yes" />
64           <then>
65             <copy toDir="${org.bedework.ear.dir}">
66               <fileset dir="${dist.home}"
67                        includes="*.war" />
68             </copy>
69           </then>
70           <else>
71             <copy toDir="${org.bedework.ear.dir}">
72               <fileset dir="${org.bedework.temp.wars.home}"/>
73             </copy>
74           </else>
75         </if>
76
77         <if>
78           <equals arg1="${org.bedework.global.ear.zipped}"
79                   arg2="yes" />
80           <then>
81              <zip destfile="${org.bedework.ear.file}"
82                  basedir="${org.bedework.ear.dir}"/>
83           </then>
84         </if>
85
86         <!-- copy the ear - at the moment copy the uncompressed. -->
87
88         <if>
89           <isset property="org.bedework.appserver.deploy.dir" />
90           <then>
91             <delete dir="${org.bedework.appserver.deploy.dir}/${app.ear.file.name}" />
92             <mkdir dir="${org.bedework.appserver.deploy.dir}/${app.ear.file.name}" />
93             <copy todir="${org.bedework.appserver.deploy.dir}/${app.ear.file.name}">
94               <fileset dir="${org.bedework.ear.dir}"/>
95             </copy>
96           </then>
97         </if>
98       </then>
99     </if>
100   </target>
101
102   <target name="build.configured" depends="init" >
103   </target>
104 </project>
Note: See TracBrowser for help on using the browser.