root/trunk/deployment/webuser/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 personal events web application deployer
5      =================================================================== -->
6
7 <project name="bwpersonal.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 public client -->
25     <!--
26     <property name="app.web.xml"
27               value="${app.sou.dir}/war/WEB-INF/web.xml" />
28               -->
29
30     <property name="propval.app.guestmode" value="false" />
31
32     <property name="app.resources.dir"
33               location="${this.dir}/resources" />
34   </target>
35
36   <!-- =================================================================
37        The "deploy" target first builds a configured component then copies
38        all required files to the appropriate servlet container directories.
39
40        Currently this only works for the quickstart distribution.
41        For example, it does not handle deploying into jboss and copying
42        resource files (images, stylesheets) to external locations.
43        ================================================================= -->
44
45   <target name="deploy" depends="init,build.configured" >
46     <!-- First copy the resources into the server -->
47
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}/demoskins" />
51     </copy>
52
53     <!-- Deploy common resources -->
54     <!--
55     <ant antfile="${org.bedework.common.resources}/build.xml"
56          inheritrefs="true" target="deploy" >
57       <property name="app.common.resources.dest.dir"
58                 location="${org.bedework.appserver.dir}/${propval.app.resources.dir}/resources" />
59     </ant>
60     -->
61
62     <echo message="***************************************************************" />
63     <echo message="Deploying standalone app ${app.war.file} into ${org.bedework.appserver.dir}/${propval.app.deploy.dir}" />
64     <echo message="***************************************************************" />
65
66     <!-- copy the war file. -->
67     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
68           overwrite="yes" />
69
70     <!-- Delete expanded version -->
71     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
72
73     <!-- Delete the quickstart context def -->
74     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
75
76     <if>
77       <isset property="org.bedework.global.portal.platform" />
78       <then>
79         <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.global.portal.platform}/build.xml"
80              inheritrefs="true" target="deploy" />
81       </then>
82     </if>
83   </target>
84
85   <target name="build.configured" depends="init" >
86     <!-- ===============================================================
87          Libraries for this application
88          =============================================================== -->
89
90     <!-- from  the lib directory -->
91     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
92     </fileset>
93
94     <!-- from  the bin directory -->
95     <fileset id="app.bin.files" dir="${bin.home}" >
96       <include name="bw-webcommon*.jar" />
97     </fileset>
98
99     <!-- from  the temp jars directory
100     <fileset id="app.temp.lib.files" dir="${org.bedework.temp.jars}" >
101       <include name="${org.bedework.webclient.jar.name}" />
102     </fileset>
103     -->
104
105     <!-- ===============================================================
106          Build the war
107          =============================================================== -->
108
109     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
110   </target>
111 </project>
112
Note: See TracBrowser for help on using the browser.