o Add new report deregister goal, modify register goal for slightly modified report method

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bwalding
2003-02-23 15:57:06 +00:00
parent 7ade43c7a6
commit 9873992dfe
16 changed files with 187 additions and 92 deletions

View File

@@ -10,12 +10,15 @@
<property name="maven.gen.docs" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.gen.docs')}"/>
<goal name="maven-linkcheck-plugin:register">
<j:if test="${context.getVariable('maven.mode.online') == null}">
<doc:registerReport
name="Link Check Report"
link="linkcheck"
description="Report on the validity of all links in the documentation."/>
</j:if>
<doc:registerReport
name="Link Check Report"
pluginName="maven-linkcheck-plugin"
link="linkcheck"
description="Report on the validity of all links in the documentation."/>
</goal>
<goal name="maven-linkcheck-plugin:deregister">
<doc:deregisterReport name="Link Check Report"/>
</goal>
<define:taglib uri="linkcheck">
@@ -40,7 +43,18 @@
</goal>
<postGoal name="xdoc:jelly-transform">
<attainGoal name="maven-linkcheck-plugin:report-real"/>
<j:set var="reports" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
<j:set var="context" value="${pom.getPluginContext('maven-xdoc-plugin')}"/>
<j:set var="online">${maven.mode.online}</j:set>
<j:if test="${online.trim().length() > 0}">
<j:forEach var="report" items="${reports}">
<j:if test="${report.get('pluginName').equals('maven-linkcheck-plugin')}">
<attainGoal name="maven-linkcheck-plugin:report-real"/>
</j:if>
</j:forEach>
</j:if>
</postGoal>
<goal