root/releases/bedework-3.7/deployment/webpublic/webapp/build.xml

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

Fixed a build bug that caused a build failure after a clean.
Removed a lot of copying of files. There's now a definition of exactly which libraries are needed for the ears. This allows us to be more specific about which jars get loaded

Removed some geronimo stuff added a while back. It was all out of date.

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