root/trunk/bedework/deployment/freebusyAggregator/webapp/build.xml

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

deploy of bedework now runs to completion

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Default free busy aggregator web application deployer
5      =================================================================== -->
6
7 <project name="fbaggregator.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     <!-- Flag as struts -->
20     <property name="org.bedework.strutsapp" value="true" />
21
22     <property name="app.web.xml"
23               value="${app.sou.dir}/war/WEB-INF/web.xml" />
24
25     <!-- This should be in the config stuff -->
26     <property name="propval.directory.browsing.disallowed"
27               value="${app.directory.browsing.disallowed}" />
28
29     <property name="propval.app.guestmode" value="true" />
30
31     <property name="app.resources.dir"
32               location="${this.dir}/resources" />
33   </target>
34
35   <!-- =================================================================
36        The "deploy" target first builds a configured component then copies
37        all required files to the appropriate servlet container directories.
38
39        Currently this only works for the quickstart distribution.
40        For example, it does not handle deploying into jboss and copying
41        resource files (images, stylesheets) to external locations.
42        ================================================================= -->
43
44   <target name="deploy" depends="init,build.configured" >
45     <!-- First copy the resources into the server -->
46     <echo message="###################${app.resources.dir}/${propval.app.skinset.name}" />
47
48     <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" />
49     <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}">
50       <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
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
64     <antcall target="deploy.uportal2" inheritRefs="true" />
65   </target>
66
67   <target name="deploy.uportal2" if="org.bedework.build.for.uportal2" >
68     <ant antfile="${org.bedework.deploy.type.dir}/${propval.app.portal.platform}/build.xml"
69          inheritrefs="true" target="deploy" />
70   </target>
71
72   <target name="build.configured" depends="init" >
73     <!-- ===============================================================
74          Libraries for this application
75          =============================================================== -->
76
77     <!-- from  the lib directory -->
78     <!-- from  the lib directory -->
79     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
80     </fileset>
81
82     <!-- from  the bin directory -->
83     <fileset id="app.bin.files" dir="${bin.home}" >
84       <include name="bw-caldav*.jar" />
85       <include name="bw-fbaggregator*.jar" />
86       <include name="bw-fbclient*.jar" />
87     </fileset>
88
89     <!-- from  the temp jars directory -->
90     <fileset id="app.temp.lib.files" dir="${org.bedework.empty.dir}" >
91     </fileset>
92
93     <!-- ===============================================================
94          Build the war
95          =============================================================== -->
96
97     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
98   </target>
99 </project>
100
Note: See TracBrowser for help on using the browser.