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

Revision 1956 (checked in by johnsa, 5 years ago)

adding jquery to build

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   <dirname property="this.dir" file="${ant.file}"/>
11
12   <import file="${this.dir}/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     <!-- Properties that differ from the personal client -->
30     <!--
31     <property name="app.web.xml"
32               value="${app.sou.dir}/war/WEB-INF/web.xml" />
33               -->
34
35     <property name="app.resources.dir"
36               location="${this.dir}/resources" />
37   </target>
38
39   <!-- =================================================================
40        The "deploy" target first builds a configured component then copies
41        all required files to the appropriate servlet container directories.
42
43        Currently this only works for the quickstart distribution.
44        For example, it does not handle deploying into jboss and copying
45        resource files (images, stylesheets) to external locations.
46        ================================================================= -->
47
48   <target name="deploy" depends="init,build.configured" >
49     <!-- First copy the resources into the server -->
50
51     <if>
52       <not>
53         <isset property="org.bedework.global.noskins" />
54       </not>
55       <then>
56         <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" />
57         <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}">
58           <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
59         </copy>
60
61         <if>
62           <isset property="org.bedework.global.portal.platform" />
63           <then>
64             <!-- The intent is to have a set of quickstart skins configured for
65                  portal use. So far we've not managed that so for the time being we
66                  will just use the standalone skin set. -->
67             <property name="dest.skins.dir"
68                       location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${org.bedework.global.portal.platform}.${propval.app.cal.suite}" />
69             <delete dir="${dest.skins.dir}" />
70             <copy todir="${dest.skins.dir}">
71               <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
72             </copy>
73           </then>
74         </if>
75       </then>
76     </if>
77
78     <if>
79       <not>
80         <isset property="org.bedework.global.build.ear" />
81       </not>
82       <then>
83         <echo message="***************************************************************" />
84         <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
85         <echo message="***************************************************************" />
86
87         <!-- Delete expanded version -->
88         <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
89
90         <!-- copy the war file. -->
91         <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}"
92               file="${app.war.file}"
93               overwrite="yes" />
94
95         <!-- Delete the quickstart context def -->
96         <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
97       </then>
98     </if>
99   </target>
100
101   <target name="build.configured" depends="init" >
102     <!-- ===============================================================
103          Build the war
104          =============================================================== -->
105
106     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
107   </target>
108 </project>
109
Note: See TracBrowser for help on using the browser.