From 293ea5e04e2e71fc23376e6ba734d56d8ed3ac3b Mon Sep 17 00:00:00 2001 From: kschrader Date: Fri, 21 Feb 2003 16:08:33 +0000 Subject: [PATCH] Stephen McConnell writes: The following patch corrects a number of bugs in the maven-report.xml. The bugs include not checking for the existance of the tasks.xml and changes.xml which results in links being added to the report summary page that don't refer to anything. Cheers, Steve. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112965 13f79535-47bb-0310-9956-ffa450edef68 --- xdoc/src/plugin-resources/templates/maven-reports.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xdoc/src/plugin-resources/templates/maven-reports.xml b/xdoc/src/plugin-resources/templates/maven-reports.xml index 6492768a..54a48f3e 100644 --- a/xdoc/src/plugin-resources/templates/maven-reports.xml +++ b/xdoc/src/plugin-resources/templates/maven-reports.xml @@ -26,6 +26,7 @@ #end #else + #if ($files.file("$maven-docs-dest/changes.html").exists()) Changes This document provides a history of the changes made to the @@ -33,6 +34,7 @@ xdocs/changes.xml file. + #end #if ($project.repository) Change Log @@ -54,18 +56,20 @@ #end - Tasks + #if ($files.file("$maven-docs-dest/task.html").exists()) + Tasks This document provides a list of tasks that need to be completed for the project, generated from the xdocs/tasks.xml file. + #end Task List This document provides a list of tasks that need to be completed for the project, generated from the - @task javadoc tag in java source code. + @todo javadoc tag in java source code. #if ($files.file($project.build.unitTestSourceDirectory).exists())