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

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

To build bedework after this update will require ant-contrib.jar to be added to apache-ant-1.6.5/lib
This will be done in the preview quickstart

Upgraded portlet support. Managed to display the user calendar in liferay4.
Made much more of the portlet support common. Moved many config settings into the properties file.
Some changes still needed

Moved portlet stylesheets into common portlet directory

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