dion        02/05/26 22:32:24

  Modified:    src/dvsl/xdocs checkstyle.dvsl
  Log:
  Vincent's patch for correctly determining class names
  
  Revision  Changes    Path
  1.2       +10 -12    jakarta-turbine-maven/src/dvsl/xdocs/checkstyle.dvsl
  
  Index: checkstyle.dvsl
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/dvsl/xdocs/checkstyle.dvsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- checkstyle.dvsl   8 Apr 2002 00:09:02 -0000       1.1
  +++ checkstyle.dvsl   27 May 2002 05:32:24 -0000      1.2
  @@ -10,21 +10,21 @@
   ## Based on the XSL stylesheet checkstyle-noframes.xsl from the
   ## checkstyle contrib.
   ##
  -## Version: $Id: checkstyle.dvsl,v 1.1 2002/04/08 00:09:02 kaz Exp $
  +## Version: $Id: checkstyle.dvsl,v 1.2 2002/05/27 05:32:24 dion Exp $
   
   #######################################################################
   ## V E L O C I T Y    M A C R O S                                    ##
   #######################################################################
   
   ## Convert a string that represents a number using the specified
  -## pattern.  
  +## pattern.
   ##
   #macro (formatAsNumber $string $pattern)
       #set ($value = $context.toolbox.numbers.parse($string))
       $context.toolbox.formatter.formatNumber($value, $pattern)
   #end
   
  -## Create link to the xref docs for a particular file and line 
  +## Create link to the xref docs for a particular file and line
   ## number.
   ##
   #macro (createLineNumberLink $name $line)
  @@ -38,17 +38,14 @@
   #end
   
   #######################################################################
  -## T E M P L A T E    D E F I N I T I O N S                          ## 
  -####################################################################### 
  +## T E M P L A T E    D E F I N I T I O N S                          ##
  +#######################################################################
   
   ## Matches the root element of the JUnit XML report.
   ##
   #match ("checkstyle")
   <?xml version="1.0"?>
   
  -#set ($basedir = 
$context.toolbox.fileutil.file($context.toolbox.srcDir).getAbsolutePath())
  -#set ($basedirlen = $basedir.length() + 1)
  -
   <document>
   
     <properties>
  @@ -59,7 +56,7 @@
       <section name="Checkstyle Results">
         <p>
           The following document contains the results of <a
  -        href="http://checkstyle.sourceforge.net/";>Checkstyle</a>.  
  +        href="http://checkstyle.sourceforge.net/";>Checkstyle</a>.
         </p>
       </section>
   
  @@ -78,7 +75,7 @@
         <table>
           <tr><th>Files</th><th>Errors</th></tr>
           #foreach ($file in $node.selectNodes("file"))
  -          #set ($name = $file.attribute("name").substring($basedirlen))
  +          #set ($name = 
$context.toolbox.pathtool.getPackagePath($file.attribute('name')))
             #set ($errorCount = $file.valueOf("count(error)"))
           <tr>
             <td><a href="#$name">$name</a></td>
  @@ -86,10 +83,11 @@
           </tr>
           #end
         </table>
  -  
  +
         #foreach ($file in $node.selectNodes("file"))
           #if ($file.get("error"))
  -          #set ($name = $file.attribute('name').substring($basedirlen))
  +          #set ($name = 
$context.toolbox.pathtool.getPackagePath($file.attribute('name')))
  +
         <subsection name="$name">
           <table>
             <tr><th>Error</th><th>Line</th></tr>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to