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

Revision 1105 (checked in by douglm, 7 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 free busy aggregator web application deployer
5      =================================================================== -->
6
7 <project name="fbaggregator.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     <!--
23     <property name="app.web.xml"
24               value="${app.sou.dir}/war/WEB-INF/web.xml" />
25               -->
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="propval.app.guestmode" value="true" />
32
33     <property name="app.resources.dir"
34               location="${this.dir}/resources" />
35   </target>
36
37   <!-- =================================================================
38        The "deploy" target first builds a configured component then copies
39        all required files to the appropriate servlet container directories.
40
41        Currently this only works for the quickstart distribution.
42        For example, it does not handle deploying into jboss and copying
43        resource files (images, stylesheets) to external locations.
44        ================================================================= -->
45
46   <target name="deploy" depends="init,build.configured" >
47     <!-- First copy the resources into the server -->
48     <echo message="###################${app.resources.dir}/${propval.app.skinset.name}" />
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     <!-- copy the war file. -->
60     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}"
61           overwrite="yes" />
62
63     <!-- Delete expanded version -->
64     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" />
65
66     <!-- Delete the quickstart context def -->
67     <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" />
68
69     <antcall target="deploy.for.portal" inheritRefs="true" />
70   </target>
71
72   <target name="deploy.for.portal" if="org.bedework.global.portal.platform" >
73     <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.global.portal.platform}/build.xml"
74          inheritrefs="true" target="deploy" />
75   </target>
76
77   <target name="build.configured" depends="init" >
78     <!-- ===============================================================
79          Libraries for this application
80          =============================================================== -->
81
82     <!-- from  the lib directory -->
83     <fileset id="app.lib.files" dir="${org.bedework.empty.dir}" >
84     </fileset>
85
86     <!-- from  the bin directory -->
87     <fileset id="app.bin.files" dir="${bin.home}" >
88       <include name="bw-webcommon*.jar" />
89       <include name="bw-fbaggregator*.jar" />
90       <include name="bw-fbclient*.jar" />
91     </fileset>
92
93     <!-- from  the temp jars directory -->
94     <fileset id="app.temp.lib.files" dir="${org.bedework.empty.dir}" >
95     </fileset>
96
97     <!-- ===============================================================
98          Build the war
99          =============================================================== -->
100
101     <ant antfile="${buildwar}" inheritRefs="true" target="build" />
102   </target>
103 </project>
104
Note: See TracBrowser for help on using the browser.