Files
maven-plugins/multichanges/src/plugin-resources/releases.jsl
T
2005-10-29 20:40:47 +00:00

137 lines
5.8 KiB
XML

<?xml version="1.0"?>
<!--
* ========================================================================
*
* 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:x="jelly:xml" xmlns:maven="jelly:maven" xmlns="dummy" trim="false">
<jsl:template match="releases">
<document>
<properties>
<title>Latest releases</title>
</properties>
<body>
<section name="Latest releases">
<table>
<tr>
<th>Project name</th>
<th>Latest stable release</th>
<th>Release date</th>
<th>Current version</th>
</tr>
<maven:get var="maven.multiproject.aggregateDir" plugin="maven-multiproject-plugin" property="maven.multiproject.aggregateDir"/>
<maven:get var="maven.multiproject.navigation" plugin="maven-multiproject-plugin" property="maven.multiproject.navigation"/>
<j:set var="navType" value="${maven.multiproject.navigation}"/>
<x:set var="projects" sort="@date" descending="true" select="project[not(@date = 'Not released') and not(@date = 'No information available')]"/>
<j:forEach var="project" items="${projects}">
<j:set var="artifactId"><x:expr select="$project/@artifactId"/></j:set>
<j:choose>
<j:when test="${navType eq 'aggregate'}">
<j:set var="baseUrl" value="${maven.multiproject.aggregateDir}${artifactId}"/>
</j:when>
<j:otherwise>
<j:set var="baseUrl"><x:expr select="$project/@url"/></j:set>
</j:otherwise>
</j:choose>
<tr>
<td>
<a href="${baseUrl}/downloads.html"><x:expr select="$project/@name"/></a>
</td>
<td>
<j:set var="version"><x:expr select="$project/@version"/></j:set>
<a href="${baseUrl}/announcements/announcement-${version}.txt"><x:expr select="$project/@version"/></a>
</td>
<td>
<x:expr select="$project/@date"/>
</td>
<td>
<x:expr select="$project/@nextVersion"/>
</td>
</tr>
</j:forEach>
<x:set var="projects" sort="@date" descending="true" select="project[@date = 'Not released']"/>
<j:forEach var="project" items="${projects}">
<j:set var="artifactId"><x:expr select="$project/@artifactId"/></j:set>
<j:choose>
<j:when test="${navType eq 'aggregate'}">
<j:set var="baseUrl" value="${maven.multiproject.aggregateDir}${artifactId}"/>
</j:when>
<j:otherwise>
<j:set var="baseUrl"><x:expr select="$project/@url"/></j:set>
</j:otherwise>
</j:choose>
<tr>
<td>
<a href="${baseUrl}/downloads.html"><x:expr select="$project/@name"/></a>
</td>
<td>
<x:expr select="$project/@version"/>
</td>
<td>
<x:expr select="$project/@date"/>
</td>
<td>
<x:expr select="$project/@nextVersion"/>
</td>
</tr>
</j:forEach>
<x:set var="projects" sort="@date" descending="true" select="project[@date = 'No information available']"/>
<j:forEach var="project" items="${projects}">
<j:set var="artifactId"><x:expr select="$project/@artifactId"/></j:set>
<j:set var="version"><x:expr select="$project/@version"/></j:set>
<j:choose>
<j:when test="${navType eq 'aggregate'}">
<j:set var="baseUrl" value="${maven.multiproject.aggregateDir}${artifactId}"/>
</j:when>
<j:otherwise>
<j:set var="baseUrl"><x:expr select="$project/@url"/></j:set>
</j:otherwise>
</j:choose>
<tr>
<j:choose>
<j:when test="${version eq 'No information available'}">
<td>
<x:expr select="$project/@name"/>
</td>
<td>
<x:expr select="$project/@version"/>
</td>
</j:when>
<j:otherwise>
<td>
<a href="${baseUrl}/downloads.html"><x:expr select="$project/@name"/></a>
</td>
<td>
<a href="${baseUrl}/announcements/announcement-${version}.txt"><x:expr select="$project/@version"/></a>
</td>
</j:otherwise>
</j:choose>
<td>
<x:expr select="$project/@date"/>
</td>
<td>
<x:expr select="$project/@nextVersion"/>
</td>
</tr>
</j:forEach>
</table>
</section>
</body>
</document>
</jsl:template>
</jsl:stylesheet>