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

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

Near completion of build rebuild.

Each deployment fetches the extra jars it needs out of the project and places them in a well-known directory.

Less copying of files takes place now.

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   <dirname property="this.dir" file="${ant.file}"/>
11
12   <import file="${this.dir}/appjars.xml" />
13
14   <target name="init" >
15     <getExtraJars />
16
17     <property name="app.war.file"
18               location="${dist.home}/${propval.app.war.name}.war" />
19
20     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
21
22     <!-- Flag as struts -->
23     <property name="org.bedework.strutsapp" value="true" />
24
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     <echo message="###################${app.resources.dir}/${propval.app.skinset.name}" />
52
53     <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" />
54     <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}">
55       <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
56     </copy>
57
58     <echo message="***************************************************************" />
59     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
60     <echo message="***************************************************************" />
61
62     <!-- copy the war file. -->
63     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
64           overwrite="yes" />
65
66     <!-- Delete expanded version -->
67     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
68
69     <!-- Delete the quickstart context def -->
70     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
71
72     <antcall target="deploy.for.portal" inheritRefs="true" />
73   </target>
74
75   <target name="deploy.for.portal" if="org.bedework.global.portal.platform" >
76     <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.global.portal.platform}/build.xml"
77          inheritrefs="true" target="deploy" />
78   </target>
79
80   <target name="build.configured" depends="init" >
81     <!-- ===============================================================
82          Build the war
83          =============================================================== -->
84
85     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
86   </target>
87 </project>
88
Note: See TracBrowser for help on using the browser.