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

Revision 1206 (checked in by douglm, 6 years ago)

Move renamed GotoAction? into comon.

Fix noop action to always forward to success.

Remove refs to bw-client.jar - moved last of the classes

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   <target name="init" >
11     <!-- and define some properties based on those -->
12     <property name="app.war.file"
13               location="${dist.home}/${propval.app.war.name}.war" />
14
15     <dirname property="this.dir" file="${ant.file}"/>
16
17     <property name="app.sou.dir" location="${org.bedework.deploy.app.sou}" />
18
19     <property name="org.bedework.use.dojo" value="true" />
20
21     <!-- Flag as struts -->
22     <property name="org.bedework.strutsapp" value="true" />
23
24     <!-- Properties that differ from the personal client -->
25     <!--
26     <property name="app.web.xml"
27               value="${app.sou.dir}/war/WEB-INF/web.xml" />
28               -->
29
30     <!-- This should be in the config stuff -->
31     <property name="propval.directory.browsing.disallowed"
32               value="${app.directory.browsing.disallowed}" />
33
34     <property name="propval.app.guestmode" value="true" />
35
36     <property name="app.resources.dir"
37               location="${this.dir}/resources" />
38   </target>
39
40   <!-- =================================================================
41        The "deploy" target first builds a configured component then copies
42        all required files to the appropriate servlet container directories.
43
44        Currently this only works for the quickstart distribution.
45        For example, it does not handle deploying into jboss and copying
46        resource files (images, stylesheets) to external locations.
47        ================================================================= -->
48
49   <target name="deploy" depends="init,build.configured" >
50     <!-- First copy the resources into the server -->
51
52     <delete dir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}" />
53     <copy todir="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}">
54       <fileset dir="${app.resources.dir}/demoskins/${propval.app.cal.suite}" />
55     </copy>
56
57     <!-- Deploy common resources -->
58     <!--
59     <ant antfile="${org.bedework.common.resources}/build.xml"
60          inheritrefs="true" target="deploy" >
61       <property name="app.common.resources.dest.dir"
62                 location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${propval.app.cal.suite}/resources" />
63     </ant>
64     -->
65
66     <echo message="***************************************************************" />
67     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
68     <echo message="***************************************************************" />
69
70     <!-- Delete expanded version -->
71     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
72
73     <!-- copy the war file. -->
74     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}"
75           file="${app.war.file}"
76           overwrite="yes" />
77
78     <!-- Delete the quickstart context def -->
79     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
80
81     <if>
82       <isset property="org.bedework.global.portal.platform" />
83       <then>
84         <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.global.portal.platform}/build.xml"
85              inheritrefs="true" target="deploy" />
86       </then>
87     </if>
88   </target>
89
90   <target name="build.configured" depends="init" >
91     <!-- ===============================================================
92          Libraries for this application
93          =============================================================== -->
94
95     <!-- from  the lib directory -->
96     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
97     </fileset>
98
99     <!-- from  the bin directory -->
100     <fileset id="app.bin.files" dir="${bin.home}" >
101       <include name="bw-webcommon*.jar" />
102     </fileset>
103
104     <!-- from  the temp jars directory
105     <fileset id="app.temp.lib.files" dir="${org.bedework.temp.jars}" >
106       <include name="${org.bedework.webclient.jar.name}" />
107     </fileset>
108     -->
109
110     <!-- ===============================================================
111          Build the war
112          =============================================================== -->
113
114     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
115   </target>
116 </project>
117
Note: See TracBrowser for help on using the browser.