diff --git a/tasklist/project.xml b/tasklist/project.xml index 61a0ed13..02b88e3b 100644 --- a/tasklist/project.xml +++ b/tasklist/project.xml @@ -80,6 +80,15 @@ Release Manager + + Arnaud Heritier + aheritier + aheritier@apache.org + + + Developer + + diff --git a/tasklist/src/plugin-resources/templates/tasklist.vm b/tasklist/src/plugin-resources/templates/tasklist.vm index f0c72cfa..bd08935c 100644 --- a/tasklist/src/plugin-resources/templates/tasklist.vm +++ b/tasklist/src/plugin-resources/templates/tasklist.vm @@ -14,7 +14,8 @@ Class Class Todos Count - Method with Todos + Method Todos Count + Field Todos Count @@ -25,10 +26,17 @@ #foreach ($m in $class.methods) #set ($methodTodoTags = $m.getTags($jellyContext.taskTag)) #if ($methodTodoTags.size() > 0) - #set ($methodTodosCount = $methodTodosCount + 1 ) + #set ($methodTodosCount = $methodTodosCount + $methodTodoTags.size()) #end #end - #if ($classTodosCount > 0 || $methodTodosCount > 0) + #set ($fieldTodosCount = 0) + #foreach ($f in $class.fields) + #set ($fieldTodoTags = $f.getTags($jellyContext.taskTag)) + #if ($fieldTodoTags.size() > 0) + #set ($fieldTodosCount = $fieldTodosCount + $fieldTodoTags.size()) + #end + #end + #if ($classTodosCount > 0 || $methodTodosCount > 0 || $fieldTodosCount > 0) #set ($classesCount = $classesCount + 1 ) @@ -36,14 +44,21 @@ #if ($classTodosCount > 0) - $classTodosCount + $classTodosCount #else 0 #end #if ($methodTodosCount > 0) - $methodTodosCount + $methodTodosCount + #else + 0 + #end + + + #if ($fieldTodosCount > 0) + $fieldTodosCount #else 0 #end @@ -53,7 +68,7 @@ #end #if ($classesCount == 0) - No class or method todo found + No class, method or field todo found #end @@ -61,20 +76,27 @@ #foreach ($class in $docInfo.classes) #set ($todoTags = $class.getTags($jellyContext.taskTag)) - #set ($hasToDoMethod = false) + #set ($hasMethodTodos = false) #foreach ($m in $class.methods) #set ($methodTodoTags = $m.getTags($jellyContext.taskTag)) #if ($methodTodoTags.size() > 0) - #set ($hasToDoMethod = true) + #set ($hasMethodTodos = true) #end #end - #if ($todoTags.size() > 0 || $hasToDoMethod) + #set ($hasFieldTodos = false) + #foreach ($f in $class.fields) + #set ($fieldTodoTags = $f.getTags($jellyContext.taskTag)) + #if ($fieldTodoTags.size() > 0) + #set ($hasFieldTodos = true) + #end + #end + #if ($todoTags.size() > 0 || $hasMethodTodos || $hasFieldTodos) #if ($todoTags.size() > 0) - + @@ -89,26 +111,52 @@
Class TodosClass Todos
#end - #foreach ($m in $class.methods) - #set ($methodTodoTags = $m.getTags($jellyContext.taskTag)) - #if ($methodTodoTags.size() > 0) - - - - - - - - #foreach ($tag in $methodTodoTags) - - - + #if ($hasMethodTodos) +
Method Todos
- -
+ + + + + + + #foreach ($m in $class.methods) + #set ($methodTodoTags = $m.getTags($jellyContext.taskTag)) + #if ($methodTodoTags.size() > 0) + #foreach ($tag in $methodTodoTags) + + + + #end #end - -
Method Todos
+ +
#end + + + #end + + #if ($hasFieldTodos) + + + + + + + + #foreach ($f in $class.fields) + #set ($fieldTodoTags = $f.getTags($jellyContext.taskTag)) + #if ($fieldTodoTags.size() > 0) + #foreach ($tag in $fieldTodoTags) + + + + #end + #end + #end + +
Field Todos
+ +
#end
#end diff --git a/tasklist/xdocs/changes.xml b/tasklist/xdocs/changes.xml index 53d0ac76..25ecbba1 100644 --- a/tasklist/xdocs/changes.xml +++ b/tasklist/xdocs/changes.xml @@ -1,5 +1,4 @@ - - Changes dIon Gillard Emmanuel Venisse + Arnaud Heritier + Show todos for fields Fix xdoc title @@ -38,7 +38,7 @@ Added tasklist summary - + Made the task tag name a property Added more documentation