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

Revision 2 (checked in by douglm, 7 years ago)

Initial import of bedework

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="../copyprops.xml" />
9
10   <target name="init" depends="copyprops">
11     <!-- and define some properties based on those -->
12     <property name="app.war.file"
13               location="${dist.home}/${propval.war.name}.war" />
14
15     <dirname property="this.dir" file="${ant.file}"/>
16
17     <property name="app.sou.dir" location="${org.bedework.webclient.base}" />
18
19     <!-- Flag as struts -->
20     <property name="org.bedework.strutsapp" value="true" />
21
22     <!-- Properties that differ from the personal client -->
23     <property name="app.web.xml"
24               value="${app.sou.dir}/war/WEB-INF/publicweb.xml" />
25
26     <!-- This should be in the config stuff -->
27     <property name="propval.directory.browsing.disallowed"
28               value="${app.directory.browsing.disallowed}" />
29
30     <property name="propval.app.guestmode" value="true" />
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     <echo message="###################${app.resources.dir}/${propval.app.skinset.name}" />
48     <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}" />
49     <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}">
50       <fileset dir="${app.resources.dir}/${propval.app.skinset.name}" />
51     </copy>
52
53     <echo message="***************************************************************" />
54     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
55     <echo message="***************************************************************" />
56
57     <!-- copy the war file. -->
58     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
59           overwrite="yes" />
60
61     <!-- Delete expanded version -->
62     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.context.root}" />
63   </target>
64
65   <target name="build.configured" depends="init" >
66     <!-- ===============================================================
67          Libraries for this application
68          =============================================================== -->
69
70     <!-- from  the lib directory -->
71     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
72     </fileset>
73
74     <!-- from  the temp jars directory -->
75     <fileset id="app.temp.lib.files" dir="${org.bedework.temp.jars}" >
76       <include name="${org.bedework.webclient.jar.name}" />
77     </fileset>
78
79     <!-- ===============================================================
80          Build the war
81          =============================================================== -->
82
83     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
84   </target>
85 </project>
86
Note: See TracBrowser for help on using the browser.