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

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

Some code to allow interaction with external caldav servers.

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     <if>
53       <not>
54         <isset property="org.bedework.global.noskins" />
55       </not>
56       <then>
57         <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" />
58         <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}">
59           <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
60         </copy>
61       </then>
62     </if>
63
64     <!-- Deploy common resources -->
65     <!--
66     <ant antfile="${org.bedework.common.resources}/build.xml"
67          inheritrefs="true" target="deploy" >
68       <property name="app.common.resources.dest.dir"
69                 location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}/resources" />
70     </ant>
71     -->
72
73     <echo message="***************************************************************" />
74     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
75     <echo message="***************************************************************" />
76
77     <!-- Delete expanded version -->
78     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
79
80     <!-- copy the war file. -->
81     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}"
82           file="${app.war.file}"
83           overwrite="yes" />
84
85     <!-- Delete the quickstart context def -->
86     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
87
88     <if>
89       <isset property="org.bedework.global.portal.platform" />
90       <then>
91         <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.global.portal.platform}/build.xml"
92              inheritrefs="true" target="deploy" />
93       </then>
94     </if>
95   </target>
96
97   <target name="build.configured" depends="init" >
98     <!-- ===============================================================
99          Libraries for this application
100          =============================================================== -->
101
102     <!-- from  the lib directory -->
103     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
104     </fileset>
105
106     <!-- from  the bin directory -->
107     <fileset id="app.bin.files" dir="${bin.home}" >
108       <include name="bw-webcommon*.jar" />
109     </fileset>
110
111     <!-- from  the temp jars directory
112     <fileset id="app.temp.lib.files" dir="${org.bedework.temp.jars}" >
113       <include name="${org.bedework.webclient.jar.name}" />
114     </fileset>
115     -->
116
117     <!-- ===============================================================
118          Build the war
119          =============================================================== -->
120
121     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
122   </target>
123 </project>
124
Note: See TracBrowser for help on using the browser.