You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2003/03/30 17:27:08 UTC

cvs commit: maven/src/plugins-build/tasklist/src/plugin-resources/templates tasklist.vm

dion        2003/03/30 07:27:08

  Modified:    src/plugins-build/tasklist/src/plugin-resources/templates
                        tasklist.vm
  Log:
  Add summary to top of tasklist entries
  
  Submitted by:	Juergen Heidak
  
  Revision  Changes    Path
  1.5       +41 -1     maven/src/plugins-build/tasklist/src/plugin-resources/templates/tasklist.vm
  
  Index: tasklist.vm
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/tasklist/src/plugin-resources/templates/tasklist.vm,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- tasklist.vm	3 Mar 2003 21:20:57 -0000	1.4
  +++ tasklist.vm	30 Mar 2003 15:27:08 -0000	1.5
  @@ -8,6 +8,45 @@
     
     <body>
       <section name="Todos">
  +	  <p>
  +	  </p>
  +	  <table>
  +		<th>Class</th>
  +		<th>Class Todos Count</th>
  +		<th>Method with Todos</th>
  +	    #foreach ($class in $docInfo.classes)
  +		  #set ($classTodosCount = $class.getTags($jellyContext.taskTag).size() )
  +          #set ($methodTodosCount = 0)
  +	      #foreach ($m in $class.methods)
  +	        #set ($methodTodoTags = $m.getTags($jellyContext.taskTag))
  +            #if ($methodTodoTags.size() > 0)
  +	          #set ($methodTodosCount = $methodTodosCount + 1 )
  +		    #end
  +	      #end
  +		  #if ($classTodosCount > 0 || $methodTodosCount > 0)
  +		    <tr>
  +		      <td>
  +			    <a href="#$class.name">$class.name</a>
  +		      </td>
  +	          <td>
  +			    #if ($classTodosCount > 0)
  +			      <a href="#$class.name">$classTodosCount</a>
  +			    #else
  +			      0
  +			    #end
  +		      </td>
  +		      <td>
  +			    #if ($methodTodosCount > 0)
  +			      <a href="#${class.name}.methods">$methodTodosCount</a>
  +			    #else
  +			      0
  +			    #end
  +		      </td>
  +		    </tr>
  +		  #end
  +	  #end
  +	  </table>
  +	  <hr/>
         <p>
             #foreach ($class in $docInfo.classes)
               #set ($todoTags = $class.getTags($jellyContext.taskTag))
  @@ -20,6 +59,7 @@
               #end
               #if ($todoTags.size() > 0 || $hasToDoMethod)
                 <subsection name="$class.name">
  +		        <a name="$class.name"></a>
                   #if ($todoTags.size() > 0)
                     <table>
                       <th>Class Todos</th>
  @@ -37,7 +77,7 @@
                     #set ($methodTodoTags = $m.getTags($jellyContext.taskTag))
                     #if ($methodTodoTags.size() > 0)
                       <table>
  -                    <th>Method Todos</th>
  +                    <th><a name="${class.name}.methods">Method Todos</a></th>
                       #foreach ($tag in $methodTodoTags)
                         <tr>
                           <td>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org