continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r734631 - in /continuum/trunk/continuum-webapp/src/main: java/org/apache/maven/continuum/web/action/ReleaseCleanupAction.java resources/struts.xml
Date Thu, 15 Jan 2009 08:49:15 GMT
Author: ctan
Date: Thu Jan 15 00:49:15 2009
New Revision: 734631

URL: http://svn.apache.org/viewvc?rev=734631&view=rev
Log:
[CONTINUUM-1884] redirect to project group summary page when clicking 'Done' after a successful
release perform 

Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ReleaseCleanupAction.java
    continuum/trunk/continuum-webapp/src/main/resources/struts.xml

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ReleaseCleanupAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ReleaseCleanupAction.java?rev=734631&r1=734630&r2=734631&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ReleaseCleanupAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ReleaseCleanupAction.java
Thu Jan 15 00:49:15 2009
@@ -101,4 +101,10 @@
 
         return projectGroupName;
     }
+
+    public int getProjectGroupId()
+        throws ContinuumException
+    {
+        return getContinuum().getProjectGroupByProjectId( projectId ).getId();
+    }
 }

Modified: continuum/trunk/continuum-webapp/src/main/resources/struts.xml
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/resources/struts.xml?rev=734631&r1=734630&r2=734631&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/resources/struts.xml (original)
+++ continuum/trunk/continuum-webapp/src/main/resources/struts.xml Thu Jan 15 00:49:15 2009
@@ -546,7 +546,10 @@
 
     <action name="releaseCleanup" class="releaseCleanup">
       <result name="prepareFinished" type="chain">releasePromptGoal</result>
-      <result name="performFinished" type="redirect-action">groupSummary</result>
+      <result name="performFinished" type="redirect-action">
+        <param name="actionName">projectGroupSummary</param>
+        <param name="projectGroupId">${projectGroupId}</param>
+      </result>
     </action>
 
     <action name="releaseViewResult" class="releaseInProgress" method="viewResult">



Mime
View raw message