root/trunk/deployment/webadmin/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 admin web application deployer
5      =================================================================== -->
6
7 <project name="bwadmin.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="${org.bedework.deployment.base}/bw-core-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     <property name="org.bedework.use.dojo" value="true" />
23
24     <property name="org.bedework.use.jquery" value="true" />
25
26     <!-- Flag as struts -->
27     <property name="org.bedework.strutsapp" value="true" />
28
29     <property name="app.resources.dir"
30               location="${this.dir}/resources" />
31   </target>
32
33   <!-- =================================================================
34        The "deploy" target first builds a configured component then copies
35        all required files to the appropriate servlet container directories.
36
37        Currently this only works for the quickstart distribution.
38        For example, it does not handle deploying into jboss and copying
39        resource files (images, stylesheets) to external locations.
40        ================================================================= -->
41
42   <target name="deploy" depends="init,build.configured" >
43     <if>
44       <not>
45         <isset property="org.bedework.global.noskins" />
46       </not>
47       <then>
48         <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}" />
49         <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}">
50           <fileset dir="${app.resources.dir}" />
51         </copy>
52
53         <if>
54           <isset property="org.bedework.global.portal.platform" />
55           <then>
56             <!-- The intent is to have a set of quickstart skins configured for
57                  portal use. So far we've not managed that so for the time being we
58                  will just use the standalone skin set. -->
59             <property name="dest.skins.dir"
60                       location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${org.bedework.global.portal.platform}.${propval.app.cal.suite}" />
61             <delete dir="${dest.skins.dir}" />
62             <copy todir="${dest.skins.dir}">
63               <fileset dir="${app.resources.dir}" />
64             </copy>
65           </then>
66         </if>
67       </then>
68     </if>
69
70     <!-- Platform specific -->
71     <antcall target="deployWar" inheritRefs="true" />
72   </target>
73
74   <target name="build.configured" depends="init" >
75     <!-- ===============================================================
76          Build the war
77          =============================================================== -->
78
79     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
80   </target>
81 </project>
Note: See TracBrowser for help on using the browser.