portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1178803 - /portals/jetspeed-2/portal/trunk/jetspeed-installer/etc/ant-installer/build.xml
Date Tue, 04 Oct 2011 14:10:26 GMT
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(&quot;" endtoken="/&quot;))">
+         <filter token="portal" value="encodeRedirectURL(&quot;${_indexRedirectTo}/&quot;))"
/>
+       </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


Mime
View raw message