root/releases/bedework-3.6/deployment/feeder/webapp/build.xml

Revision 2737 (checked in by douglm, 3 years ago)

Transfer all the changes which allow a jboss build of bedework.

Mostly build and deployment changes with a few mbean related changes for the outboard processes, dump/restore, indexer, in/outbox scheduler etc.

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