Hi
I extended the template to produce a table prior listing all class and methods
todos. The table can give a quick overview of all classes having todos.
The layout is as follows:
Classname Class Todos count Number of methods with todos
a.b.SomeClass 3 2
The classname as well as the numbers are linked to the detailed listing of the
todos below.
Maybe you'll find it helpful.
Regards Juergen
Index: tasklist.vm
===================================================================
RCS file:
/home/cvspublic/maven/src/plugins-build/tasklist/src/plugin-resources/templates/tasklist.vm,v
retrieving revision 1.4
diff -r1.4 tasklist.vm
10a11,49
> <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/>
22a62
> <a name="$class.name"></a>
40c80
< <th>Method Todos</th>
---
> <th><a name="${class.name}.methods">Method Todos</a></th>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]