root/trunk/deployment/resources/build.xml

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

web clients: update login pages

  • Property svn:eol-style set to LF
Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Default public events web application deployer
5      =================================================================== -->
6
7 <project name="bwcommonresources.deploy" default="deploy" >
8   <property name="propval.app.context.root"
9             value="${org.bedework.global.build.common.context.root}" />
10   <property name="propval.app.deploy.dir"
11             value="${org.bedework.global.build.common.context.deploy.dir}" />
12   <property name="propval.app.display.name"
13             value="${org.bedework.global.build.common.context.name}" />
14   <property name="propval.app.war.name"
15             value="${org.bedework.global.build.common.context.war.name}" />
16
17   <import file="${build.dir}/buildfilters.xml" />
18
19   <target name="init" >
20     <dirname property="common.resources.dir" file="${ant.file}"/>
21
22     <property name="app.common.resources.dest.dir"
23               location="${org.bedework.deploy.app.sou}" />
24
25     <property name="org.bedework.use.dojo" value="true" />
26
27     <!-- This should be in the config stuff -->
28     <property name="propval.directory.browsing.disallowed"
29               value="${app.directory.browsing.disallowed}" />
30
31     <property name="common.war.name"
32               value="${org.bedework.global.build.common.context.war.name}" />
33     <property name="common.dest.war"
34               location="${org.bedework.temp.wars.home}/${common.war.name}.war" />
35
36     <property name="common.war.file"
37               location="${dist.home}/${common.war.name}.war" />
38   </target>
39
40   <!-- =================================================================
41        The "deploy" target is called by applications which need common
42        resources copied into their own directory structure.
43        ================================================================= -->
44
45   <target name="deploy" depends="init" >
46     <if>
47       <isset property="org.bedework.global.build.common.context" />
48       <then>
49         <!-- Build a deployable war file with common files -->
50
51         <delete dir="${common.dest.war}" />
52
53         <copy todir="${common.dest.war}" failonerror="false" >
54           <fileset dir="${org.bedework.common.resources}/common-context" />
55           <filterset refid="property.filters" />
56         </copy>
57
58         <if>
59           <isset property="org.bedework.use.dojo" />
60           <then>
61             <!-- Add dojo -->
62             <copy todir="${common.dest.war}/javascript/dojo">
63               <fileset dir="${common.resources.dir}/javascript/${dojo.dir}" />
64             </copy>
65           </then>
66         </if>
67
68         <copy todir="${common.dest.war}">
69           <fileset dir="${common.resources.dir}/xsl" />
70         </copy>
71
72         <copy todir="${common.dest.war}/images">
73           <fileset dir="${common.resources.dir}/images" />
74         </copy>
75
76         <!-- build the war file -->
77         <mkdir dir="${dist.home}" />
78         <delete file="${common.war.file}" />
79
80         <war warfile="${common.war.file}"
81              webxml="${common.dest.war}/WEB-INF/web.xml"
82              basedir="${common.dest.war}"
83              excludes="WEB-INF/web.xml" />
84
85         <echo message="***************************************************************" />
86         <echo message="Deploying common context ${common.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
87         <echo message="***************************************************************" />
88
89         <!-- Delete expanded version -->
90         <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
91
92         <!-- copy the war file. -->
93         <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}"
94               file="${common.war.file}"
95               overwrite="yes" />
96
97         <!-- Delete the quickstart context def -->
98         <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
99
100         <!--
101         <if>
102           <isset property="org.bedework.global.portal.platform" />
103           <then>
104             <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.global.portal.platform}/build.xml"
105                  inheritrefs="true" target="deploy" />
106           </then>
107         </if>
108         -->
109       </then>
110       <else>
111         <if>
112           <not>
113             <isset property="org.bedework.global.noskins" />
114           </not>
115           <then>
116             <!-- Just copy into a common location -->
117             <property name="cmn.destdir"
118                       location="${org.bedework.appserver.dir}/${org.bedework.global.common.deploydir}"/>
119             <if>
120               <isset property="org.bedework.use.dojo" />
121               <then>
122                 <!-- Add dojo -->
123                 <copy todir="${cmn.destdir}/javascript/dojo">
124                   <fileset dir="${common.resources.dir}/javascript/${dojo.dir}" />
125                 </copy>
126               </then>
127             </if>
128
129             <copy todir="${cmn.destdir}">
130               <fileset dir="${common.resources.dir}/xsl" />
131             </copy>
132
133             <copy todir="${cmn.destdir}/images">
134               <fileset dir="${common.resources.dir}/images" />
135             </copy>
136
137           </then>
138         </if>
139       </else>
140     </if>
141   </target>
142 </project>
143
Note: See TracBrowser for help on using the browser.