From 32501212f677dbe4624e0ab3a8a2fe750d74a9f8 Mon Sep 17 00:00:00 2001 From: dion Date: Sun, 30 Mar 2003 15:27:08 +0000 Subject: [PATCH] Add summary to top of tasklist entries Submitted by: Juergen Heidak git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113224 13f79535-47bb-0310-9956-ffa450edef68 --- .../plugin-resources/templates/tasklist.vm | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/tasklist/src/plugin-resources/templates/tasklist.vm b/tasklist/src/plugin-resources/templates/tasklist.vm index c858bae7..49738f3f 100644 --- a/tasklist/src/plugin-resources/templates/tasklist.vm +++ b/tasklist/src/plugin-resources/templates/tasklist.vm @@ -8,6 +8,45 @@
+

+

+ + + + + #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) + + + + + + #end + #end +
ClassClass Todos CountMethod with Todos
+ $class.name + + #if ($classTodosCount > 0) + $classTodosCount + #else + 0 + #end + + #if ($methodTodosCount > 0) + $methodTodosCount + #else + 0 + #end +
+

#foreach ($class in $docInfo.classes) #set ($todoTags = $class.getTags($jellyContext.taskTag)) @@ -20,6 +59,7 @@ #end #if ($todoTags.size() > 0 || $hasToDoMethod) + #if ($todoTags.size() > 0) @@ -37,7 +77,7 @@ #set ($methodTodoTags = $m.getTags($jellyContext.taskTag)) #if ($methodTodoTags.size() > 0)
Class Todos
- + #foreach ($tag in $methodTodoTags)
Method TodosMethod Todos