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

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

More changes to the build process. Main build now pulls jars out of the archive and out of each projects bin directory.

Also remove some unused ant build code.

Not yet complete but close.

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