maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Ekelchik <Boris.Ekelc...@DigitalInsight.com>
Subject Checkstyle report problem
Date Tue, 19 Aug 2003 01:43:55 GMT
 

Generated links and labels in the checkstyle report seam to loose random
number of characters from original class names, e.g.:

 

Checkstyle report row for ApplicationException is 

<tr>

  <td>

    <a href="#plicationException.java">plicationException.java</a> 

  </td>

  <td>1</td> 

</tr>

 

TopiHandler becomes:

<tr>

  <td>

    <a href="#opicHandler.java">opicHandler.java</a> 

  </td>

  <td>55</td> 

</tr>

 

I am not totally sure, but it may something to do with this in
maven-checkstyle-plugin-2.0-SNAPSHOT\plugin-resources\checkstyle.jsl:

 

            <j:forEach var="file" items="${files}">

              <!-- Type coercion doesn't work worth a [BE:
four-letter-word-apparently-not-allowed-into-this-mailing-list] 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>

              

              <j:if test="${errorCount != 0}">

                <tr>

                  <td>

                    <a href="#${name}">${name}</a>

                  </td>

                  <td><doc:formatAsNumber string="${errorCount}"
pattern="0"/></td>

                </tr>

              </j:if>

            </j:forEach>

          </table>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message