Add generation of RSS feed for current version changes

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115602 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol committed 2004-06-29 20:39:56 +00:00
1 parent 729924ab10
commit 82a65297d8
6 files changed
+121 -1

No files matched your search

+1
View File
@@ -52,6 +52,7 @@
</tr>
</x:forEach>
</table>
<p>Get the RSS feed of the last changes <a href="changes.rss"><img src="images/rss.png"/></a></p>
</section>
<!-- Release information -->
<jsl:applyTemplates select="*"/>
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
* ========================================================================
*
* Copyright 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.
*
* ========================================================================
-->
<jsl:stylesheet
select="$doc"
xmlns:j="jelly:core"
xmlns:jsl="jelly:jsl"
xmlns:util="jelly:util"
xmlns:x="jelly:xml"
xmlns:doc="doc"
xmlns="dummy" trim="true">
<jsl:template match="document">
<rss version="0.91">
<channel>
<title>Changes report</title>
<link>${pom.url}</link>
<description>Changes report</description>
<language>en-us</language>
<copyright>Copyright 2004 The Apache Software Foundation</copyright>
<item>
<j:set var="changesCount"><x:expr select="count(//release[@version='${pom.currentVersion}']/action)"/></j:set>
<title>${changesCount} change(s) for version ${pom.currentVersion}</title>
<!-- If we don't go through a tmp variable Jelly inserts a space between ${pom.url}
and '/changes-report.html'. Go figure... -->
<j:set var="link" value="${pom.url}/changes-report.html"/>
<link>${link}</link>
<description>
<table border="1">
<tr><th style='width:50px'>Type</th><th>Changes</th><th style='width:70px'>By</th></tr>
<x:forEach var="action" select="//release[@version='${pom.currentVersion}']/action">
<j:set var="type"><x:expr select="@type"/></j:set>
<j:set var="dev"><x:expr select="@dev"/></j:set>
<j:set var="issue"><x:expr select="@issue"/></j:set>
<j:set var="dueto"><x:expr select="@due-to"/></j:set>
<j:set var="duetoemail"><x:expr select="@due-to-email"/></j:set>
<tr>
<td>${type}</td>
<td>
<x:expr select="string($action)"/>
<j:if test="${issue != ''}">
<j:useBean var="finder" class="org.apache.maven.changes.IssueFinder"/>
<j:set var="template" value="${maven.changes.issue.template}"/>
<j:set var="trackerURL" value="${pom.issueTrackingUrl}"/>
Fixes <a href="${finder.getIssueURL(trackerURL,issue,template)}">${issue}</a>.
</j:if>
<j:if test="${dueto != ''}">
<j:choose>
<j:when test="${duetoemail != ''}">
Thanks to <a href="mailto:${duetoemail}">${dueto}</a>.
</j:when>
<j:otherwise>
Thanks to ${dueto}.
</j:otherwise>
</j:choose>
</j:if>
</td>
<td>
<j:set var="teamLink" value="${pom.url}/team-list.html#${dev}"/>
<a href="${teamLink}">${dev}</a>
</td>
</tr>
</x:forEach>
</table>
</description>
</item>
</channel>
</rss>
</jsl:template>
</jsl:stylesheet>
Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B