MAVEN-229: Fix inconsistent use of / and \. Now uses / exclusively.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112787 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
4ae9f1f594
commit
4802326d37
1 file changed
+5
-1
@@ -4,6 +4,7 @@
|
||||
select="$doc"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:jsl="jelly:jsl"
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:x="jelly:xml"
|
||||
xmlns:doc="doc"
|
||||
xmlns="dummy" trim="false">
|
||||
@@ -60,6 +61,7 @@
|
||||
<!-- Type coercion doesn't work worth a fuck in jexl. -->
|
||||
<j:set var="name" value="${file.attribute('name').getValue()}"/>
|
||||
<j:set var="name" value="${name.substring(mavenTool.toInteger(srcDirLength.toString()))}"/>
|
||||
<util:replace var="name" value="${name}" oldChar="\\" newChar="/"/>
|
||||
<!--- +1 is for the trailing slash above -->
|
||||
<j:set var="errorCount"><x:expr select="count($file/error)"/></j:set>
|
||||
|
||||
@@ -79,7 +81,8 @@
|
||||
<j:if test="${errorCount != 0}">
|
||||
<j:set var="name" value="${file.attribute('name').getValue()}"/>
|
||||
<j:set var="name" value="${name.substring(mavenTool.toInteger(srcDirLength.toString()))}"/>
|
||||
|
||||
<util:replace var="name" value="${name}" oldChar="\\" newChar="/"/>
|
||||
|
||||
<subsection name="${name}">
|
||||
<table>
|
||||
<tr>
|
||||
@@ -100,6 +103,7 @@
|
||||
<j:when test="${lastIndex > 0}">
|
||||
<j:set var="index" value="${mavenTool.toInteger(lastIndex.toString())}"/>
|
||||
<j:set var="nameWithoutJavaExtension" value="${name.substring(0, index)}"/>
|
||||
<util:replace var="nameWithoutJavaExtension" value="${nameWithoutJavaExtension}" oldChar="\\" newChar="/"/>
|
||||
<a href="xref/${nameWithoutJavaExtension}.html#${line}">${line}</a>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
|
||||
Reference in new issue
Block a user