o change log plugin takes care of its own transformation now and has for
a while. Just getting rid of the cruft that's grown in here. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114551 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
8c0c0cd1f7
commit
42b92c0b8f
1 file changed
-45
@@ -193,7 +193,6 @@
|
||||
<jsl:applyTemplates select="$doc/document/body/section"/>
|
||||
<jsl:applyTemplates select="$doc/document/body/glossary" />
|
||||
<jsl:applyTemplates select="$doc/document/body/release" />
|
||||
<jsl:applyTemplates select="$doc/document/body/changelog" />
|
||||
<jsl:applyTemplates select="$doc/document/body/goals" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -449,50 +448,6 @@
|
||||
</jsl:copy>
|
||||
</jsl:template>
|
||||
|
||||
<!--************************-->
|
||||
<!-- changelog documentation-->
|
||||
<!--************************-->
|
||||
<jsl:template match="changelog" trim="false">
|
||||
<j:set var="rowMode" value="" />
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<th>Date</th><th>Author</th><th>Files/Message</th>
|
||||
</tr>
|
||||
<jsl:applyTemplates select="changelog-entry" />
|
||||
</table>
|
||||
</jsl:template>
|
||||
|
||||
<!-- transform a changelog entry -->
|
||||
<!-- FIXME: tr code copied from above -->
|
||||
<jsl:template match="changelog-entry" trim="false">
|
||||
<j:choose>
|
||||
<j:when test="${rowMode == 'a'}">
|
||||
<j:set var="rowMode" value="b"/>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<j:set var="rowMode" value="a"/>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
|
||||
<x:element name="tr"><j:whitespace trim="true">
|
||||
<x:attribute name="class">${rowMode}</x:attribute>
|
||||
|
||||
<td><x:expr select="date" /> <x:expr select="time" /></td>
|
||||
<td><x:expr select="author"/></td>
|
||||
<td><jsl:applyTemplates select="*" />
|
||||
<pre><x:expr select="msg"/></pre>
|
||||
</td>
|
||||
</j:whitespace></x:element>
|
||||
</jsl:template>
|
||||
|
||||
<jsl:template match="file">
|
||||
<j:set var="url">${pom.repository.url}<x:expr select="name"/></j:set>
|
||||
<j:set var="revUrl">${url}?<x:expr select="revision"/>&content-type=text/vnd.viewcvs-markup</j:set>
|
||||
<a href="${url}"><x:expr select="name"/></a> -
|
||||
<a href="${revUrl}">v<x:expr select="revision"/></a>
|
||||
<br/>
|
||||
</jsl:template>
|
||||
|
||||
<!-- remove the space at the end of parsed "a" anchors -->
|
||||
<jsl:template match="a" trim="false"><jsl:copy trim="true"><jsl:applyTemplates trim="true"/></jsl:copy></jsl:template>
|
||||
|
||||
|
||||
Reference in new issue
Block a user