You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2011/10/04 16:10:26 UTC
svn commit: r1178803 -
/portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml
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: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org