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
This commit is contained in:
1 parent
c2d4b895b8
commit
88520d85e9
4 files changed
+17
-1
No files matched your search
@@ -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)}
|
||||
</j:set>
|
||||
|
||||
@@ -53,9 +53,13 @@
|
||||
<item name="Project Reports" href="/maven-reports.html" collapse="true">
|
||||
<j:forEach var="report" items="${reports}">
|
||||
<j:set var="link" value="${report.link}"/>
|
||||
<j:set var="externalLink" value="${report.externalLink}"/>
|
||||
<j:if test="${!empty(link)}">
|
||||
<item name="${report.name}" href="/${report.link}.html" target="${report.target}"/>
|
||||
</j:if>
|
||||
<j:if test="${empty(link) and !empty(externalLink)}">
|
||||
<item name="${report.name}" href="${report.externalLink}" target="${report.target}"/>
|
||||
</j:if>
|
||||
</j:forEach>
|
||||
</item>
|
||||
<j:set var="devProcess" value="false"/>
|
||||
@@ -76,4 +80,4 @@
|
||||
</body>
|
||||
</project>
|
||||
|
||||
</j:whitespace>
|
||||
</j:whitespace>
|
||||
@@ -47,6 +47,16 @@
|
||||
<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>
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.8-SNAPSHOT" date="in CVS">
|
||||
<action dev="brett" type="add">Add an externalLink attribute to a report to use if link is not present</action>
|
||||
<action dev="vmassol" type="add">
|
||||
Added a link to the release notes in the download report. Note that this
|
||||
link is only created if the project has a <code>xdocs/changes.xml</code>
|
||||
|
||||
Reference in new issue
Block a user