root/trunk/build/portals/jetspeed2War.xml

Revision 1937 (checked in by douglm, 5 years ago)

Major reorganization of the build process mostly affecting handling of portal builds.

Removed portal specific directories from teh deployment directory.

Removed portal sepcific code from buildwar.xml and added new portal specific files to be imported. These are in a section of teh bwbuild config directory.

All portal customization is now part of building the war file.

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      This file is imported by buildwar.xml and adds a target
5         doPortal
6      which will be invoked by the buildwar targets.
7
8      NOT TESTED
9      =================================================================== -->
10
11 <project name="bedework.portalWar" default="doPortal" >
12   <target name="doPortal" >
13     <!-- Add common portlet files -->
14
15     <copy todir="${app.dest.lib}"
16           file="${org.bedework.appjar.portals-bridges-common}"/>
17     <copy todir="${app.dest.lib}"
18           file="${org.bedework.appjar.portals-bridges-struts-1.2.7}"/>
19
20     <!-- Use generic bedework portlet tld -->
21     <copy todir="${app.dest.webinf}/tlds"
22           overwrite="yes"
23           failonerror="no" >
24       <fileset dir="${app.root.dir}/resources/portlet" >
25         <include name="*.tld"/>
26       </fileset>
27     </copy>
28
29     <copy todir="${app.dest.webinf}"
30           file="${org.bedework.deploy.type.dir}/portlet/struts-portlet-config.xml"
31           overwrite="yes"
32           failonerror="no" />
33
34     <copy todir="${app.dest.webinf}"
35           file="${org.bedework.deploy.type.dir}/portlet/portlet.xml"
36           overwrite="yes"
37           failonerror="no" >
38       <filterset refid="property.filters" />
39     </copy>
40
41     <!-- Add the portal bridge controller def -->
42     <replace file="${app.dest.webinf}/struts-config.xml">
43       <replacetoken><![CDATA[<!-- portlet controller def here -->]]></replacetoken>
44       <replacevalue><![CDATA[<controller pagePattern="$M$P" inputForward="true"
45               processorClass="org.apache.portals.bridges.struts.PortletRequestProcessor"/>]]>
46       </replacevalue>
47     </replace>
48
49     <copy todir="${app.dest.webinf}/tlds" >
50       <fileset dir="${org.bedework.default.lib}/${jetspeed2.jars.dir}/portals-bridges-struts">
51         <include name="*.tld"/>
52       </fileset>
53     </copy>
54
55     <copy tofile="${app.dest.webinf}/portlet.psml"
56           file="${org.bedework.deploy.type.dir}/portlet/jetspeed2-portlet.psml"
57           overwrite="yes"
58           failonerror="no" >
59       <filterset refid="property.filters" />
60     </copy>
61
62     <if>
63       <not>
64         <equals arg1="${propval.app.unauthenticated}" arg2="true" />
65       </not>
66       <then>
67         <replace file="${app.dest.webinf}/struts-config.xml">
68           <replacetoken><![CDATA[<!-- Security constraints go here -->]]></replacetoken>
69           <replacevalue><![CDATA[<security-constraints>
70     <security-constraints-ref>users</security-constraints-ref>
71   </security-constraints>]]>
72           </replacevalue>
73         </replace>
74       </then>
75     </if>
76
77   </target>
78 </project>
Note: See TracBrowser for help on using the browser.