Author: ate
Date: Tue Oct 4 14:10:26 2011
New Revision: 1178803
URL: http://svn.apache.org/viewvc?rev=1178803&view=rev
Log:
JS2-1266: Enhance Jetspeed installer script to rewrite the default
jetspeed/index.jsp so the installation selected UI pipeline is redirected to,
portal/ for classic or ui/ for jetui
Modified:
portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml
Modified:
portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml?rev=1178803&r1=1178802&r2=1178803&view=diff
==============================================================================
---
portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml
(original)
+++
portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml
Tue Oct 4 14:10:26 2011
@@ -77,6 +77,22 @@
<target name="installPortal">
+ <echo>Setting up default index redirect url</echo>
+ <condition property="_indexRedirectTo" value="portal">
+ <equals arg1="${pipelineType}" arg2="classic" />
+ </condition>
+ <condition property="_indexRedirectTo" value="ui">
+ <equals arg1="${pipelineType}" arg2="jetui" />
+ </condition>
+ <move file="${installDir}/webapps/jetspeed/index.jsp"
+ tofile="${installDir}/webapps/jetspeed/index.jsp.unfiltered"/>
+ <move file="${installDir}/webapps/jetspeed/index.jsp.unfiltered"
+ tofile="${installDir}/webapps/jetspeed/index.jsp"
+ overwrite="true">
+ <filterset begintoken="encodeRedirectURL("" endtoken="/"))">
+ <filter token="portal"
value="encodeRedirectURL("${_indexRedirectTo}/"))" />
+ </filterset>
+ </move>
<echo>Moving pages out of jetspeed webapp</echo>
<condition property="_installPagesDirName" value="ui-pages">
<and>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]