evenisse 2004/02/11 00:52:52
Modified: tasklist project.xml
tasklist/src/plugin-resources/templates tasklist.vm
tasklist/xdocs changes.xml
Log:
MPTASKLIST-7. Fix bad html generation.
Revision Changes Path
1.18 +1 -1 maven-plugins/tasklist/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/maven-plugins/tasklist/project.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- project.xml 10 Feb 2004 12:49:43 -0000 1.17
+++ project.xml 11 Feb 2004 08:52:52 -0000 1.18
@@ -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>
1.8 +30 -9
maven-plugins/tasklist/src/plugin-resources/templates/tasklist.vm
Index: tasklist.vm
===================================================================
RCS file:
/home/cvs/maven-plugins/tasklist/src/plugin-resources/templates/tasklist.vm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- tasklist.vm 5 Sep 2003 04:03:44 -0000 1.7
+++ tasklist.vm 11 Feb 2004 08:52:52 -0000 1.8
@@ -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>
1.6 +5 -0 maven-plugins/tasklist/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/maven-plugins/tasklist/xdocs/changes.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- changes.xml 29 Sep 2003 06:27:58 -0000 1.5
+++ changes.xml 11 Feb 2004 08:52:52 -0000 1.6
@@ -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">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]