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

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

Try to do the same for platforms (jboss, tomcat etc) as I just did for portals.

The deployment directories are much simplified and the build process seems a bit clearer.

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