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

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

adding jquery to build

  • Property svn:eol-style set to LF
Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Bedework public events submission web application deployer
5      =================================================================== -->
6
7 <project name="bwsubmit.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 public 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}" />
57         <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}">
58           <fileset dir="${app.resources.dir}/demoskins" />
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" />
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         <!-- copy the war file. -->
88         <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
89               overwrite="yes" />
90
91         <!-- Delete expanded version -->
92         <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
93
94         <!-- Delete the quickstart context def -->
95         <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
96       </then>
97     </if>
98   </target>
99
100   <target name="build.configured" depends="init" >
101     <!-- ===============================================================
102          Build the war
103          =============================================================== -->
104
105     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
106   </target>
107 </project>
108
Note: See TracBrowser for help on using the browser.