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

Revision 3460 (checked in by douglm, 1 year ago)

Almost completely build changes - mostly elimination of the per-project build.properties file.

There is now a single properties file in the config which determines all the project versions - with the exception of deployutil.

This update also includes a new deployment task to collect jar references and license information. A small utility will generate a readable notice and references file for the quickstart and/or the site.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Default public events web application deployer
5      =================================================================== -->
6
7 <project name="bwpublic.deploy" default="deploy" >
8   <import file="${build.dir}/platforms/${org.bedework.global.deploy.platform}War.xml" />
9
10   <dirname property="this.dir" file="${ant.file}"/>
11
12   <!--<import file="${this.dir}/appjars.xml" />-->
13   <import file="${org.bedework.deployment.base}/bw-core-appjars.xml" />
14
15   <target name="init" >
16     <getExtraJars />
17
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     <property name="org.bedework.use.dojo" value="true" />
24
25     <property name="org.bedework.use.jquery" value="true" />
26
27     <!-- Flag as struts -->
28     <property name="org.bedework.strutsapp" value="true" />
29
30     <!-- Properties that differ from the personal client -->
31     <!--
32     <property name="app.web.xml"
33               value="${app.sou.dir}/war/WEB-INF/web.xml" />
34               -->
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
52     <if>
53       <not>
54         <isset property="org.bedework.global.noskins" />
55       </not>
56       <then>
57         <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" />
58         <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}">
59           <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
60         </copy>
61
62         <if>
63           <isset property="org.bedework.global.portal.platform" />
64           <then>
65             <!-- The intent is to have a set of quickstart skins configured for
66                  portal use. So far we've not managed that so for the time being we
67                  will just use the standalone skin set. -->
68             <property name="dest.skins.dir"
69                       location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${org.bedework.global.portal.platform}.${propval.app.cal.suite}" />
70             <delete dir="${dest.skins.dir}" />
71             <copy todir="${dest.skins.dir}">
72               <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
73             </copy>
74           </then>
75         </if>
76       </then>
77     </if>
78
79     <!-- Platform specific -->
80     <antcall target="deployWar" inheritRefs="true" />
81   </target>
82
83   <target name="build.configured" depends="init" >
84     <!-- ===============================================================
85          Build the war
86          =============================================================== -->
87
88     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
89   </target>
90 </project>
91
Note: See TracBrowser for help on using the browser.