Files
maven-plugins/xdoc/src/plugin-resources/templates/maven-reports.xml
T

110 lines
4.8 KiB
XML

<?xml version="1.0" encoding="$encoding" ?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<document>
<properties>
<title key="template.maven_reports.title"
bundle="plugin-resources.templates.templates" >
<message key="template.maven_reports.title"
bundle="plugin-resources.templates.templates" />
</title>
</properties>
<body>
<section key="template.maven_reports.section.title"
bundle="plugin-resources.templates.templates"
name="Maven Generated Reports">
<p>
<message key="template.maven_reports.section.maven_reports1"
bundle="plugin-resources.templates.templates" />
<a href="http://maven.apache.org/">Maven</a>
<message key="template.maven_reports.section.maven_reports2"
bundle="plugin-resources.templates.templates" />
</p>
#set ($reports = $project.getPluginContext('maven-xdoc-plugin').getVariable('reports'))
<subsection key="template.maven_reports.section.subsection.title"
bundle="plugin-resources.templates.templates"
name="Overview">
<table>
<tr>
<th>
<message key="template.maven_reports.section.subsection.document"
bundle="plugin-resources.templates.templates" />
</th>
<th>
<message key="template.maven_reports.section.subsection.description"
bundle="plugin-resources.templates.templates" />
</th>
</tr>
#foreach ($report in $reports)
#if ($report.link && $report.link.length() != 0)
<tr>
#if($report.fileSuffix && $report.fileSuffix.length() != 0)
#set ($fileSuffix = $report.fileSuffix)
#else
#set ($fileSuffix = '.html')
#end
#if($report.target && $report.target.length() != 0)
<td>
<a href="${report.link}${fileSuffix}"
target="${report.target}">
$report.name
</a>
</td>
#else
<td>
<a href="${report.link}${fileSuffix}">
$report.name
</a>
</td>
#end
<td>$report.description</td>
</tr>
#end
#if ($report.externalLink && $report.externalLink.length() != 0)
<tr>
#if($report.target && $report.target.length() != 0)
<td>
<a href="${report.externalLink}"
class="externalLink"
target="${report.target}">
$report.name
</a>
</td>
#else
<td>
<a href="${report.externalLink}"
class="externalLink">
$report.name
</a>
</td>
#end
<td>$report.description</td>
</tr>
#end
#end
</table>
</subsection>
</section>
</body>
</document>