MAVEN-214: LinkChecker plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
17b604c9d2
commit
fa5ca2bd70
36 files changed
+1839
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<properties>
|
||||
<title>Maven LinkCheck Plug-in</title>
|
||||
<author email="ben@walding.com">Ben Walding</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Maven LinkCheck Temporary File">
|
||||
<p>
|
||||
This file is used as a placeholder until the final link check can occur.
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<jsl:stylesheet
|
||||
select="$doc"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:jsl="jelly:jsl"
|
||||
xmlns:x="jelly:xml"
|
||||
xmlns="dummy"
|
||||
trim="false">
|
||||
|
||||
<jsl:template match="linkcheck">
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Link Check Report</title>
|
||||
</properties>
|
||||
<body>
|
||||
<section name="Link Check Report">
|
||||
<table>
|
||||
<tr>
|
||||
<th>URL</th>
|
||||
</tr>
|
||||
<x:set var="files" select="file[@unsuccessful!=0]"/>
|
||||
<j:forEach var="file" items="${files}">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<util:replace var="name" oldChar="\\" newChar="/">
|
||||
${file.attribute('name').value}
|
||||
</util:replace>
|
||||
<a href="${name}">${name}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<x:forEach var="result" select="$file/result">
|
||||
<j:set var="status"><x:expr select="$result/@status"/></j:set>
|
||||
<j:set var="target"><x:expr select="$result/@target"/></j:set>
|
||||
<j:if test="${status != 'OK'}">
|
||||
<span style="pad-left:60px">${status} - ${target}</span>
|
||||
<br/>
|
||||
</j:if>
|
||||
</x:forEach>
|
||||
</td>
|
||||
</tr>
|
||||
</j:forEach>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
</jsl:template>
|
||||
</jsl:stylesheet>
|
||||
Reference in new issue
Block a user