root/trunk/deployment/webpublic/uportal2/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      uportal2 portlet deployer
5      =================================================================== -->
6
7 <project name="bwpublic.uportal2.deploy" default="deploy" >
8   <target name="init">
9     <!-- Properties that differ from the personal client -->
10     <!--
11     <property name="app.web.xml"
12               value="${app.sou.dir}/war/WEB-INF/web.xml" />
13               -->
14
15     <!-- This should be in the config stuff -->
16     <property name="propval.directory.browsing.disallowed"
17               value="${app.directory.browsing.disallowed}" />
18
19     <property name="propval.app.guestmode" value="true" />
20
21     <dirname property="portlet.build.dir" file="${ant.file}"/>
22
23     <property name="portlet.resources.dir"
24               location="${portlet.build.dir}/../portlet/resources" />
25
26     <property name="portlet.skins.dir"
27               location="${portlet.resources.dir}/demoskins/${propval.app.cal.suite}" />
28   </target>
29
30   <!-- =================================================================
31        The "deploy" target first builds a configured component then copies
32        all required files to the appropriate servlet container directories.
33
34        Currently this only works for the quickstart distribution.
35        For example, it does not handle deploying into jboss and copying
36        resource files (images, stylesheets) to external locations.
37        ================================================================= -->
38
39   <target name="deploy" depends="init,build.configured" >
40     <!-- Copy the resources into the server -->
41
42     <echo message="Copy from ${portlet.skins.dir}" />
43     <property name="dest.skins.dir"
44               location="${org.bedework.appserver.dir}/${propval.app.resources.dir}.${org.bedework.global.portal.platform}.${propval.app.cal.suite}" />
45     <delete dir="${dest.skins.dir}" />
46     <copy todir="${dest.skins.dir}">
47       <fileset dir="${portlet.skins.dir}" />
48     </copy>
49   </target>
50
51   <target name="build.configured" depends="init" >
52   </target>
53 </project>
54
Note: See TracBrowser for help on using the browser.