Restored the ability to allow a user to select the name of the tag to be
used for the generation of the tasklist instead of the hardcoding of "@todo" in the vdoclet template. I didn't even realize this functionality was removed until doing a doc update that Tim O'Brien supplied and I saw the maven.tasklist.taskTag. Fixing this required some changes to vdoclet, namely, adapting the JellyContext to a Velocity context. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8477e3bf29
commit
2d9dc3397b
@ -33,6 +33,8 @@
|
||||
<j:set var="encoding"
|
||||
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.outputencoding')}"/>
|
||||
|
||||
<j:set var="taskTag" value="${maven.tasklist.taskTag}"/>
|
||||
|
||||
<j:if test="${sourcesPresent == 'true'}">
|
||||
|
||||
<echo>Generating tasklist ...</echo>
|
||||
|
||||
@ -3,3 +3,5 @@
|
||||
# -------------------------------------------------------------------
|
||||
# Task list plugin.
|
||||
# -------------------------------------------------------------------
|
||||
maven.tasklist.taskTag = @todo
|
||||
|
||||
|
||||
@ -10,10 +10,10 @@
|
||||
<section name="Todos">
|
||||
<p>
|
||||
#foreach ($class in $docInfo.classes)
|
||||
#set ($todoTags = $class.getTags("@todo"))
|
||||
#set ($todoTags = $class.getTags($jellyContext.taskTag))
|
||||
#set ($hasToDoMethod = false)
|
||||
#foreach ($m in $class.methods)
|
||||
#set ($methodTodoTags = $m.getTags("@todo"))
|
||||
#set ($methodTodoTags = $m.getTags($jellyContext.taskTag))
|
||||
#if ($methodTodoTags.size() > 0)
|
||||
#set ($hasToDoMethod = true)
|
||||
#end
|
||||
@ -34,7 +34,7 @@
|
||||
#end
|
||||
|
||||
#foreach ($m in $class.methods)
|
||||
#set ($methodTodoTags = $m.getTags("@todo"))
|
||||
#set ($methodTodoTags = $m.getTags($jellyContext.taskTag))
|
||||
#if ($methodTodoTags.size() > 0)
|
||||
<table>
|
||||
<th>Method Todos</th>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user