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

Revision 3105 (checked in by douglm, 2 years ago)

Remove definition of property "base.name" from (almost) every build file. Was not used.
Stop defining, creating and copying to libapi. Wasn't in use.

Remove build directory from every project and use the build files in the main bedework project. improves consistency and maintainability. Also allowed some bugs to be fixed.

Allow setting of message level during build and set it at quiet. Allows error messages to be more obvious.

Create macro to handle the common property definitions. Reduces size and complexity of build files.

Add a build-jar macro. Removes need for build files for sub-modules. Partway through converting to use that.

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   <import file="${build.dir}/platforms/${org.bedework.global.deploy.platform}War.xml" />
11
12   <dirname property="this.dir" file="${ant.file}"/>
13
14   <import file="${this.dir}/appjars.xml" />
15
16   <target name="init" >
17     <getExtraJars />
18
19     <!-- dist.home is bedework dist.home -->
20     <property name="app.war.file"
21               location="${dist.home}/${propval.app.war.name}.war" />
22
23     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
24
25     <!-- Properties that differ from the personal client -->
26     <!--
27     <property name="app.web.xml"
28               value="${app.sou.dir}/war/WEB-INF/web.xml" />
29               -->
30   </target>
31
32   <!-- =================================================================
33        The "deploy" target first builds a configured component then copies
34        all required files to the appropriate servlet container directories.
35        ================================================================= -->
36
37   <target name="deploy" depends="init,build.configured" >
38     <!-- Platform specific -->
39     <antcall target="deployWar" inheritRefs="true" />
40   </target>
41
42   <target name="build.configured" depends="init" >
43     <!-- ===============================================================
44          Build the war
45          =============================================================== -->
46
47     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
48   </target>
49 </project>
Note: See TracBrowser for help on using the browser.