git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113957 13f79535-47bb-0310-9956-ffa450edef68
98 lines
3.1 KiB
XML
98 lines
3.1 KiB
XML
<?xml version="1.0" encoding="$encoding"?>
|
|
<document>
|
|
|
|
<properties>
|
|
<author email="turbine-maven-user@jakarta.apache.org">Maven</author>
|
|
<title>Articles</title>
|
|
</properties>
|
|
|
|
<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))
|
|
#set ($hasToDoMethod = false)
|
|
#foreach ($m in $class.methods)
|
|
#set ($methodTodoTags = $m.getTags($jellyContext.taskTag))
|
|
#if ($methodTodoTags.size() > 0)
|
|
#set ($hasToDoMethod = true)
|
|
#end
|
|
#end
|
|
#if ($todoTags.size() > 0 || $hasToDoMethod)
|
|
<subsection name="$class.name">
|
|
<a name="$class.name"></a>
|
|
#if ($todoTags.size() > 0)
|
|
<table>
|
|
<th>Class Todos</th>
|
|
#foreach ($tag in $todoTags)
|
|
<tr>
|
|
<td>
|
|
<![CDATA[$tag.value]]>
|
|
</td>
|
|
</tr>
|
|
#end
|
|
</table>
|
|
#end
|
|
|
|
#foreach ($m in $class.methods)
|
|
#set ($methodTodoTags = $m.getTags($jellyContext.taskTag))
|
|
#if ($methodTodoTags.size() > 0)
|
|
<table>
|
|
<th><a name="${class.name}.methods">Method Todos</a></th>
|
|
#foreach ($tag in $methodTodoTags)
|
|
<tr>
|
|
<td>
|
|
<![CDATA[${m.name}(): $tag.value]]>
|
|
</td>
|
|
</tr>
|
|
#end
|
|
</table>
|
|
#end
|
|
#end
|
|
</subsection>
|
|
#end
|
|
#end
|
|
</p>
|
|
</section>
|
|
</body>
|
|
</document>
|