From 88520d85e9497c5fbaefd966218665649635b9e9 Mon Sep 17 00:00:00 2001 From: brett Date: Sat, 3 Jul 2004 02:02:30 +0000 Subject: [PATCH] allow external link to be used for a report git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115630 13f79535-47bb-0310-9956-ffa450edef68 --- xdoc/plugin.jelly | 1 + xdoc/src/plugin-resources/navigation.jelly | 6 +++++- xdoc/src/plugin-resources/templates/maven-reports.xml | 10 ++++++++++ xdoc/xdocs/changes.xml | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/xdoc/plugin.jelly b/xdoc/plugin.jelly index d84c0f15..0403d87b 100644 --- a/xdoc/plugin.jelly +++ b/xdoc/plugin.jelly @@ -74,6 +74,7 @@ ${report.put('pluginName', pluginName)} ${report.put('description', description)} ${report.put('link', link)} + ${report.put('externalLink', externalLink)} ${report.put('target', target)} ${reports.add(report)} diff --git a/xdoc/src/plugin-resources/navigation.jelly b/xdoc/src/plugin-resources/navigation.jelly index 327c9cd9..a162aeab 100644 --- a/xdoc/src/plugin-resources/navigation.jelly +++ b/xdoc/src/plugin-resources/navigation.jelly @@ -53,9 +53,13 @@ + + + + @@ -76,4 +80,4 @@ - \ No newline at end of file + diff --git a/xdoc/src/plugin-resources/templates/maven-reports.xml b/xdoc/src/plugin-resources/templates/maven-reports.xml index 48e38764..5a1c6dd0 100644 --- a/xdoc/src/plugin-resources/templates/maven-reports.xml +++ b/xdoc/src/plugin-resources/templates/maven-reports.xml @@ -47,6 +47,16 @@ $report.description #end + #if ($report.externalLink && $report.externalLink.length() != 0) + + #if($report.target && $report.target.length() != 0) + $report.name + #else + $report.name + #end + $report.description + + #end #end diff --git a/xdoc/xdocs/changes.xml b/xdoc/xdocs/changes.xml index c87b1e65..7869dbe8 100644 --- a/xdoc/xdocs/changes.xml +++ b/xdoc/xdocs/changes.xml @@ -26,6 +26,7 @@ + Add an externalLink attribute to a report to use if link is not present Added a link to the release notes in the download report. Note that this link is only created if the project has a xdocs/changes.xml