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

Revision 1164 (checked in by douglm, 6 years ago)

Add dojo to deployment process

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Default public events web application deployer
5      =================================================================== -->
6
7 <project name="bwpublic.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 personal client -->
25     <!--
26     <property name="app.web.xml"
27               value="${app.sou.dir}/war/WEB-INF/web.xml" />
28               -->
29
30     <!-- This should be in the config stuff -->
31     <property name="propval.directory.browsing.disallowed"
32               value="${app.directory.browsing.disallowed}" />
33
34     <property name="propval.app.guestmode" value="true" />
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     <!-- First copy the resources into the server -->
51
52     <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" />
53     <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}">
54       <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
55     </copy>
56
57     <!-- Deploy common resources -->
58     <ant antfile="${org.bedework.common.resources}/build.xml"
59          inheritrefs="true" target="deploy" >
60       <property name="common.resources.dest.dir"
61                 location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}/resources" />
62     </ant>
63
64     <echo message="***************************************************************" />
65     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
66     <echo message="***************************************************************" />
67
68     <!-- Delete expanded version -->
69     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
70
71     <!-- copy the war file. -->
72     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}"
73           file="${app.war.file}"
74           overwrite="yes" />
75
76     <!-- Delete the quickstart context def -->
77     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
78
79     <if>
80       <isset property="org.bedework.global.portal.platform" />
81       <then>
82         <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.global.portal.platform}/build.xml"
83              inheritrefs="true" target="deploy" />
84       </then>
85     </if>
86   </target>
87
88   <target name="build.configured" depends="init" >
89     <!-- ===============================================================
90          Libraries for this application
91          =============================================================== -->
92
93     <!-- from  the lib directory -->
94     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
95     </fileset>
96
97     <!-- from  the bin directory -->
98     <fileset id="app.bin.files" dir="${bin.home}" >
99       <include name="bw-webcommon*.jar" />
100       <include name="bw-webclient*.jar" />
101     </fileset>
102
103     <!-- from  the temp jars directory -->
104     <fileset id="app.temp.lib.files" dir="${org.bedework.temp.jars}" >
105       <include name="${org.bedework.webclient.jar.name}" />
106     </fileset>
107
108     <!-- ===============================================================
109          Build the war
110          =============================================================== -->
111
112     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
113   </target>
114 </project>
115
Note: See TracBrowser for help on using the browser.