smor        2002/10/10 18:09:33

  Modified:    src/plugins-build/console plugin.jelly
  Log:
  Using j:while instead of a goal recursively attaining itself, for memory purposes -- 
suggested by dIon
  
  Revision  Changes    Path
  1.4       +6 -9      jakarta-turbine-maven/src/plugins-build/console/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/console/plugin.jelly,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- plugin.jelly      10 Oct 2002 23:09:16 -0000      1.3
  +++ plugin.jelly      11 Oct 2002 01:09:33 -0000      1.4
  @@ -14,7 +14,8 @@
     </goal>
   
     <goal name="console:ask">
  -      <!-- need a way to replace this with Maven.APP_VERSION -->
  +    <j:set var="followOn" value="true"/>
  +    <j:while test="${followOn}">
         <i:ask question="${pom.id} ${pom.currentVersion} >:" answer="goal" 
default="${lastGoal}"/>
         <j:choose>
           <j:when test="${goal.indexOf('=') != '-1'}">
  @@ -42,14 +43,10 @@
             </j:if>
           </j:otherwise>
         </j:choose>
  -      <j:choose>
  -        <j:when test="${followOn=='false'}">
  -          <echo>Bye !</echo>
  -        </j:when>
  -        <j:otherwise>
  -          <attainGoal name="console:ask"/>
  -        </j:otherwise>
  -      </j:choose>
  +      <j:if test="${followOn=='false'}">
  +        <echo>Bye !</echo>
  +      </j:if>
  +    </j:while>
     </goal>
   
     <goal name="console:listGoals" description="List all available goals">
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to