root/trunk/deployment/tzsvr/webapp/build.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      timezones servlet deployer
5      =================================================================== -->
6
7 <project name="bwpubcaldav.deploy" default="deploy" >
8   <import file="${org.bedework.deployment.base}/deployprops.xml" />
9
10   <import file="${build.dir}/platforms/${org.bedework.global.deploy.platform}War.xml" />
11
12   <dirname property="deployer.dir" file="${ant.file}"/>
13
14   <import file="${deployer.dir}/appjars.xml" />
15
16   <target name="init" >
17     <getExtraJars />
18
19     <!-- dist.home is bedework dist.home -->
20     <property name="app.war.file"
21               location="${dist.home}/${propval.app.war.name}.war" />
22
23     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
24   </target>
25
26   <!-- =================================================================
27        The "deploy" target first builds a configured component then copies
28        all required files to the appropriate servlet container directories.
29
30        Currently this only works for the quickstart distribution.
31        For example, it does not handle deploying into jboss and copying
32        resource files (images, stylesheets) to external locations.
33        ================================================================= -->
34
35   <target name="deploy" depends="init,build.configured" >
36     <!-- Platform specific -->
37     <antcall target="deployWar" inheritRefs="true" />
38   </target>
39
40   <target name="build.configured" depends="init" >
41     <!-- ===============================================================
42          Build the war
43          =============================================================== -->
44
45     <!--
46     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
47     -->
48     <ant antfile="${app.sou.dir}/../build.xml" inheritRefs="true" target="build-war" />
49     <copy toDir="${dist.home}" file="${app.sou.dir}/../dist/${propval.app.war.name}.war"/>
50   </target>
51 </project>
Note: See TracBrowser for help on using the browser.