git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113855 13f79535-47bb-0310-9956-ffa450edef68
57 lines
1.8 KiB
XML
57 lines
1.8 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<jsl:stylesheet
|
|
select="$doc"
|
|
xmlns:j="jelly:core"
|
|
xmlns:jsl="jelly:jsl"
|
|
xmlns:x="jelly:xml"
|
|
xmlns="dummy" trim="false">
|
|
<jsl:template match="changelog">
|
|
<document>
|
|
|
|
<properties>
|
|
<title>Developer Activity Analysis</title>
|
|
</properties>
|
|
|
|
<body>
|
|
<section name="Activity by Developer">
|
|
<p>
|
|
<!-- The range needs to be fed in somehow. -->
|
|
Timeframe: ${maven.activitylog.range} days,
|
|
Total Commits:
|
|
<x:expr select="count(./changelog-entry)"/>
|
|
Total Number of Files Changed:
|
|
<x:expr select="count(./changelog-entry/file)"/>
|
|
</p>
|
|
<table>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Number of Commits</th>
|
|
<th>Number of files changed</th>
|
|
</tr>
|
|
<j:forEach var="developer" items="${pom.developers}">
|
|
<j:set var="developerId" value="${developer.id}"/>
|
|
<j:set var="name" value="${developer.name}"/>
|
|
<j:set var="commits"><x:expr select="count(./changelog-entry/author[text()='${name}'])"/></j:set>
|
|
<j:set var="changedFiles"><x:expr select="count(./changelog-entry/author[text()='${name}']/../file)"/></j:set>
|
|
|
|
<j:if test="${commits != '0'}">
|
|
<tr>
|
|
<td><a href="team-list.html#${developerId}">${name}</a></td>
|
|
<td>${commits}</td>
|
|
<td>${changedFiles}</td>
|
|
</tr>
|
|
</j:if>
|
|
</j:forEach>
|
|
</table>
|
|
</section>
|
|
</body>
|
|
</document>
|
|
</jsl:template>
|
|
|
|
<!-- element values don't pass through as text -->
|
|
<jsl:template match="properties"/>
|
|
<jsl:template match="section"/>
|
|
|
|
</jsl:stylesheet>
|