continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From epunza...@apache.org
Subject svn commit: r443251 - in /maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main: java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java resources/xwork.xml webapp/prepareRelease.jsp
Date Thu, 14 Sep 2006 05:57:13 GMT
Author: epunzalan
Date: Wed Sep 13 22:57:12 2006
New Revision: 443251

URL: http://svn.apache.org/viewvc?view=rev&rev=443251
Log:
reverting revision 443243 for execAndWait

Modified:
    maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java
    maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/resources/xwork.xml
    maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/webapp/prepareRelease.jsp

Modified: maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java?view=diff&rev=443251&r1=443250&r2=443251
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java
(original)
+++ maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/PrepareReleaseAction.java
Wed Sep 13 22:57:12 2006
@@ -104,13 +104,7 @@
         releaseId = releaseManager.prepare( project, getReleaseProperties(), getRelVersionMap(),
                                             getDevVersionMap(), listener );
 
-        //wait for executor to finish, use the listener
-        while ( listener.getState() != ContinuumReleaseManagerListener.FINISHED )
-        {
-            Thread.sleep( 10 );
-        }
-
-        return "finished";
+        return "initialized";
     }
 
     public String viewResult()

Modified: maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/resources/xwork.xml
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/resources/xwork.xml?view=diff&rev=443251&r1=443250&r2=443251
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/resources/xwork.xml
(original)
+++ maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/resources/xwork.xml
Wed Sep 13 22:57:12 2006
@@ -310,16 +310,16 @@
       </result>
     </action>
 
-    <action name="doPrepare" class="prepareRelease" method="doPrepare">
-      <interceptor-ref name="execAndWait">
-        <param name="delay">1000</param>
-      </interceptor-ref>
-      <result name="wait">prepareReleaseProgress.jsp</result>
-      <result name="finished">prepareReleaseFinish.jsp</result>
-    </action>
-
     <action name="prepareRelease" class="prepareRelease">
       <result name="prompt">prepareRelease.jsp</result>
+      <!-- should be exec and wait -->
+      <result name="initialized" type="redirect-action">
+        <param name="actionName">prepareRelease!checkProgress.action</param>
+        <param name="releaseId">${releaseId}</param>
+        <param name="projectId">${projectId}</param>
+      </result>
+      <result name="inProgress">prepareReleaseProgress.jsp</result>
+      <result name="finished">prepareReleaseFinished.jsp</result>
     </action>
 
     <action name="performRelease" class="performRelease">

Modified: maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/webapp/prepareRelease.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/webapp/prepareRelease.jsp?view=diff&rev=443251&r1=443250&r2=443251
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/webapp/prepareRelease.jsp
(original)
+++ maven/continuum/branches/release-integration/continuum/continuum-webapp/src/main/webapp/prepareRelease.jsp
Wed Sep 13 22:57:12 2006
@@ -9,7 +9,7 @@
     </head>
     <body>
       <h2>Prepare Project Release</h2>
-      <ww:form action="doPrepare" method="post">
+      <ww:form action="prepareRelease!doPrepare.action" method="post">
         <h3>Release Parameters</h3>
         <input type="hidden" name="projectId" value="<ww:property value="projectId"/>"/>
         <div class="axial">



Mime
View raw message