root/releases/bedework-3.7/deployment/webconfig/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      Web config application deployer
5      =================================================================== -->
6
7 <project name="bwconfig.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="this.dir" file="${ant.file}"/>
13
14   <import file="${this.dir}/appjars.xml" />
15
16   <target name="init" >
17     <getExtraJars />
18
19     <property name="app.war.file"
20               location="${dist.home}/${propval.app.war.name}.war" />
21
22     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
23
24     <property name="org.bedework.use.dojo" value="true" />
25
26     <property name="org.bedework.use.jquery" value="true" />
27
28     <!-- Flag as struts -->
29     <property name="org.bedework.strutsapp" value="true" />
30
31     <!--
32     <property name="app.web.xml"
33               value="${app.sou.dir}/war/WEB-INF/web.xml" />
34               -->
35
36     <property name="app.resources.dir"
37               location="${this.dir}/resources" />
38   </target>
39
40   <!-- =================================================================
41        The "deploy" target first builds a configured component then copies
42        all required files to the appropriate servlet container directories.
43
44        Currently this only works for the quickstart distribution.
45        For example, it does not handle deploying into jboss and copying
46        resource files (images, stylesheets) to external locations.
47        ================================================================= -->
48
49   <target name="deploy" depends="init,build.configured" >
50     <if>
51       <not>
52         <isset property="org.bedework.global.noskins" />
53       </not>
54       <then>
55         <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}" />
56         <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}">
57           <fileset dir="${app.resources.dir}" />
58         </copy>
59       </then>
60     </if>
61
62     <!-- Platform specific -->
63     <antcall target="deployWar" inheritRefs="true" />
64   </target>
65
66   <target name="build.configured" depends="init" >
67     <!-- ===============================================================
68          Build the war
69          =============================================================== -->
70
71     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
72   </target>
73 </project>
74
Note: See TracBrowser for help on using the browser.