root/trunk/deployment/usercaldav/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 personal caldav servlet deployer
5      =================================================================== -->
6
7 <project name="bwusercaldav.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     <!-- Properties that differ from the personal client -->
23     <!--
24     <property name="app.web.xml"
25               value="${app.sou.dir}/war/WEB-INF/web.xml" />
26               -->
27   </target>
28
29   <!-- =================================================================
30        The "deploy" target first builds a configured component then copies
31        all required files to the appropriate servlet container directories.
32
33        Currently this only works for the quickstart distribution.
34        For example, it does not handle deploying into jboss and copying
35        resource files (images, stylesheets) to external locations.
36        ================================================================= -->
37
38   <target name="deploy" depends="init,build.configured" >
39     <echo message="***************************************************************" />
40     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
41     <echo message="***************************************************************" />
42
43     <!-- copy the war file. -->
44     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
45           overwrite="yes" />
46
47     <!-- Delete expanded version -->
48     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
49
50     <!-- Delete the quickstart context def -->
51     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
52   </target>
53
54   <target name="build.configured" depends="init" >
55     <!-- ===============================================================
56          Build the war
57          =============================================================== -->
58
59     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
60   </target>
61 </project>
Note: See TracBrowser for help on using the browser.