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

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

Merge in revision 1806 from release 3.4.1

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