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

Revision 1895 (checked in by douglm, 5 years ago)

Near completion of build rebuild.

Each deployment fetches the extra jars it needs out of the project and places them in a well-known directory.

Less copying of files takes place now.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Default personal events web application deployer
5      =================================================================== -->
6
7 <project name="bwpersonal.deploy" default="deploy" >
8   <import file="${org.bedework.deployment.base}/deployprops.xml" />
9
10   <dirname property="this.dir" file="${ant.file}"/>
11
12   <import file="${this.dir}/appjars.xml" />
13
14   <target name="init" >
15     <getExtraJars />
16
17     <property name="app.war.file"
18               location="${dist.home}/${propval.app.war.name}.war" />
19
20     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
21
22     <property name="org.bedework.use.dojo" value="true" />
23
24     <!-- Flag as struts -->
25     <property name="org.bedework.strutsapp" value="true" />
26
27     <!-- Properties that differ from the public client -->
28     <!--
29     <property name="app.web.xml"
30               value="${app.sou.dir}/war/WEB-INF/web.xml" />
31               -->
32
33     <property name="propval.app.guestmode" value="false" />
34
35     <property name="app.resources.dir"
36               location="${this.dir}/resources" />
37   </target>
38
39   <!-- =================================================================
40        The "deploy" target first builds a configured component then copies
41        all required files to the appropriate servlet container directories.
42
43        Currently this only works for the quickstart distribution.
44        For example, it does not handle deploying into jboss and copying
45        resource files (images, stylesheets) to external locations.
46        ================================================================= -->
47
48   <target name="deploy" depends="init,build.configured" >
49     <!-- First copy the resources into the server -->
50
51     <if>
52       <not>
53         <isset property="org.bedework.global.noskins" />
54       </not>
55       <then>
56         <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}" />
57         <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}">
58           <fileset dir="${app.resources.dir}/demoskins" />
59         </copy>
60       </then>
61     </if>
62
63     <!-- Deploy common resources -->
64     <!--
65     <ant antfile="${org.bedework.common.resources}/build.xml"
66          inheritrefs="true" target="deploy" >
67       <property name="app.common.resources.dest.dir"
68                 location="${org.bedework.appserver.dir}/${propval.app.resources.dir}/resources" />
69     </ant>
70     -->
71
72     <echo message="***************************************************************" />
73     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
74     <echo message="***************************************************************" />
75
76     <!-- copy the war file. -->
77     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
78           overwrite="yes" />
79
80     <!-- Delete expanded version -->
81     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
82
83     <!-- Delete the quickstart context def -->
84     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
85
86     <if>
87       <isset property="org.bedework.global.portal.platform" />
88       <then>
89         <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.global.portal.platform}/build.xml"
90              inheritrefs="true" target="deploy" />
91       </then>
92     </if>
93   </target>
94
95   <target name="build.configured" depends="init" >
96     <!-- ===============================================================
97          Build the war
98          =============================================================== -->
99
100     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
101   </target>
102 </project>
103
Note: See TracBrowser for help on using the browser.