MPTASKLIST-7. Fix bad html generation.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
evenisse 2004-02-11 08:52:52 +00:00
parent bfc9c793d3
commit 854ad57ca1
3 changed files with 36 additions and 10 deletions

View File

@ -5,7 +5,7 @@
<pomVersion>3</pomVersion>
<id>maven-tasklist-plugin</id>
<name>Maven Tasklist Plug-in</name>
<currentVersion>2.2</currentVersion>
<currentVersion>2.3-SNAPSHOT</currentVersion>
<description/>
<shortDescription>Create xdoc from @TODO tags</shortDescription>
<url>http://maven.apache.org/reference/plugins/tasklist/</url>

View File

@ -8,12 +8,17 @@
<body>
<section name="Todos">
<p>
</p>
<table>
<table summary="todo summary">
<thead>
<tr>
<th>Class</th>
<th>Class Todos Count</th>
<th>Method with Todos</th>
</tr>
</thead>
<tbody>
#set ($classesCount = 0)
#foreach ($class in $docInfo.classes)
#set ($classTodosCount = $class.getTags($jellyContext.taskTag).size() )
#set ($methodTodosCount = 0)
@ -24,6 +29,7 @@
#end
#end
#if ($classTodosCount > 0 || $methodTodosCount > 0)
#set ($classesCount = $classesCount + 1 )
<tr>
<td>
<a href="#$class.name">$class.name</a>
@ -45,9 +51,14 @@
</tr>
#end
#end
#if ($classesCount == 0)
<tr>
<td colspan="3"><em>No class or method todo found</em></td>
</tr>
#end
</tbody>
</table>
<hr/>
<p>
#foreach ($class in $docInfo.classes)
#set ($todoTags = $class.getTags($jellyContext.taskTag))
#set ($hasToDoMethod = false)
@ -59,10 +70,14 @@
#end
#if ($todoTags.size() > 0 || $hasToDoMethod)
<subsection name="$class.name">
<a name="$class.name"></a>
#if ($todoTags.size() > 0)
<table>
<table summary="$class.name todos">
<thead>
<tr>
<th>Class Todos</th>
</tr>
</thead>
<tbody>
#foreach ($tag in $todoTags)
<tr>
<td>
@ -70,14 +85,20 @@
</td>
</tr>
#end
</tbody>
</table>
#end
#foreach ($m in $class.methods)
#set ($methodTodoTags = $m.getTags($jellyContext.taskTag))
#if ($methodTodoTags.size() > 0)
<table>
<table summary="${class.name} method todos">
<thead>
<tr>
<th><a name="${class.name}.methods">Method Todos</a></th>
</tr>
</thead>
<tbody>
#foreach ($tag in $methodTodoTags)
<tr>
<td>
@ -85,13 +106,13 @@
</td>
</tr>
#end
</tbody>
</table>
#end
#end
</subsection>
#end
#end
</p>
</section>
</body>
</document>

View File

@ -8,6 +8,11 @@
<body>
<release version="2.3" date="In CVS">
<action dev="evenisse" type="fix" issue="MPTASKLIST-7">
Fix bad html generation.
</action>
</release>
<release version="2.2" date="2003-09-29">
<action dev="dion" type="update">update to use maven.docs.*/maven.gen.docs</action>
<action dev="evenisse" type="fix">