root/trunk/deployment/webadmin/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 admin web application deployer
5      =================================================================== -->
6
7 <project name="bwadmin.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     <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     <if>
71       <not>
72         <isset property="org.bedework.global.build.ear" />
73       </not>
74       <then>
75         <echo message="***************************************************************" />
76         <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
77         <echo message="***************************************************************" />
78
79         <!-- copy the war file. -->
80         <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
81               overwrite="yes" />
82
83         <!-- Delete expanded version -->
84         <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
85
86         <!-- Delete the quickstart context def -->
87         <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
88       </then>
89     </if>
90   </target>
91
92   <target name="build.configured" depends="init" >
93     <!-- ===============================================================
94          Build the war
95          =============================================================== -->
96
97     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
98   </target>
99 </project>
Note: See TracBrowser for help on using the browser.