From c6dc70ab19977498a9ceb32dbfdfed865b53f733 Mon Sep 17 00:00:00 2001 From: bwalding Date: Sun, 23 Feb 2003 15:57:38 +0000 Subject: [PATCH] o Consolidate reporting model git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112978 13f79535-47bb-0310-9956-ffa450edef68 --- xdoc/src/plugin-resources/site.jsl | 156 ++++-------------- .../templates/maven-reports.xml | 115 +------------ 2 files changed, 42 insertions(+), 229 deletions(-) diff --git a/xdoc/src/plugin-resources/site.jsl b/xdoc/src/plugin-resources/site.jsl index 31be73a3..a32a09bf 100644 --- a/xdoc/src/plugin-resources/site.jsl +++ b/xdoc/src/plugin-resources/site.jsl @@ -206,127 +206,41 @@ Project Reports - - - - - - - - - - - - - - - - - - - - ${maven.xdoc.projectReports} - - - -
- - Tasks - -
-
- -
- - Task List - -
-
- -
- - Changes - -
-
- -
- - Change Log - -
- -
- - File Activity - -
-
- -
- - Unit Tests - -
-
- -
- - Metric Results - -
- -
- - Javadoc Report - -
-
- - - - -
- - Cactus Tests - -
-
-
-
-
-
+ + + + + + + + + + + + + +
+ + + ${report.name} + + +
+
+
diff --git a/xdoc/src/plugin-resources/templates/maven-reports.xml b/xdoc/src/plugin-resources/templates/maven-reports.xml index 54a48f3e..7224cd8d 100644 --- a/xdoc/src/plugin-resources/templates/maven-reports.xml +++ b/xdoc/src/plugin-resources/templates/maven-reports.xml @@ -15,116 +15,15 @@ Each report is briefly described below.

- + #set ($reports = $project.getPluginContext('maven-xdoc-plugin').getVariable('reports')) + - #if (! $project.reports.isEmpty()) - #foreach ($report in $reports) - - - - - #end - #else - #if ($files.file("$maven-docs-dest/changes.html").exists()) - - - - #end - #if ($project.repository) - - - - - - - - - - #end - #if ($files.file("$maven-docs-dest/task.html").exists()) - - - - #end - - - - #if ($files.file($project.build.unitTestSourceDirectory).exists()) - - - - #end - - #if ($files.file($project.build.sourceDirectory).exists()) - - - - - - - - - - #end - - #if ($files.file("$maven-docs-dest/clover").exists()) - - - - #end - #if ($files.file("$gen-xdocs/cactus-report.xml").exists()) - - - - #end + #foreach ($report in $reports) + + + + #end
DocumentDescription
$report.name$report.description
Changes - This document provides a history of the changes made to the - project, in a user friendly format, generated from the - xdocs/changes.xml file. -
Change Log - This document provides a history of the most recent - changes made to the project taken directly from the - source code repository. -
Developer Activity - This document provides a report of activity in terms of - CVS commits and breaks it out by developer. -
File Activity - This document provides a report of activity in terms of - CVS commits and breaks it out by file. -
Tasks - This document provides a list of tasks that need to - be completed for the project, generated from the - xdocs/tasks.xml file. -
Task List - This document provides a list of tasks that need to - be completed for the project, generated from the - @todo javadoc tag in java source code. -
Unit Tests - This document provides the results of the unit tests that - are part of this project. Successes and failures are - noted. -
Metric Results - This document provides information on various source code - metrics that have been computed. These metrics can - provide useful information regarding the abstractness and - total number of classes. -
Checkstyle Report - This document provides the results of the Checkstyle - report. This report provides an indication of how well - this project complies with its coding conventions. -
Javadoc Report - This document the details of javadoc execution against - the project. This encourages the reduction of javadoc - errors. -
Clover Test Coverage - This document provides the results of the Clover report. This - reports show what portion on your code has been executed by - your test suite and generates statistics. It gives a very good - idea of how good your test suite is. -
Cactus Tests - This document provides the results of the Cactus unit tests that - are part of this project. Successes and failures are noted. -
$report.name$report.description