Skip to content

Commit

Permalink
PR: CONTINUUM-727
Browse files Browse the repository at this point in the history
progress for using the execAndWait interceptor

git-svn-id: https://svn.apache.org/repos/asf/maven/continuum/branches/release-integration@443243 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Edwin L. Punzalan committed Sep 14, 2006
1 parent c6a317f commit 2375708
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
Expand Up @@ -104,7 +104,13 @@ public String doPrepare()
releaseId = releaseManager.prepare( project, getReleaseProperties(), getRelVersionMap(),
getDevVersionMap(), listener );

return "initialized";
//wait for executor to finish, use the listener
while ( listener.getState() != ContinuumReleaseManagerListener.FINISHED )
{
Thread.sleep( 10 );
}

return "finished";
}

public String viewResult()
Expand Down
16 changes: 8 additions & 8 deletions continuum/continuum-webapp/src/main/resources/xwork.xml
Expand Up @@ -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">
Expand Down
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<h2>Prepare Project Release</h2>
<ww:form action="prepareRelease!doPrepare.action" method="post">
<ww:form action="doPrepare" method="post">
<h3>Release Parameters</h3>
<input type="hidden" name="projectId" value="<ww:property value="projectId"/>"/>
<div class="axial">
Expand Down

0 comments on commit 2375708

Please sign in to comment.