maven-plugins/tasklist/plugin.jelly
2003-02-25 11:50:54 +00:00

53 lines
1.5 KiB
XML

<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:doc="doc"
xmlns:vdoclet="vdoclet">
<goal name="maven-tasklist-plugin:register">
<doc:registerReport
name="Task List"
pluginName="maven-tasklist-plugin"
link="task-list"
description="Report on tasks specified in the source code."/>
</goal>
<goal name="maven-tasklist-plugin:deregister">
<doc:deregisterReport name="Task List"/>
</goal>
<!-- ================================================================== -->
<!-- T A S K C R E A T I O N -->
<!-- ================================================================== -->
<goal name="tasklist" prereqs="maven-tasklist-plugin:report"/>
<goal
name="maven-tasklist-plugin:report"
prereqs="xdoc:init"
description="Generate a list of tasks from @todo tags in your code">
<j:set var="genDocs"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.gen.docs')}"/>
<j:set var="encoding"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.outputencoding')}"/>
<j:if test="${sourcesPresent == 'true'}">
<echo>Generating tasklist ...</echo>
<vdoclet:vdoclet
srcDir="${pom.build.sourceDirectory}"
destDir="${genDocs}"
template="plugin-resources/templates/tasklist.vm"
outputFile="task-list.xml"
encoding="${encoding}"
/>
</j:if>
</goal>
</project>