ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/etc junit-frames.xsl
Date Thu, 31 Jul 2003 19:38:39 GMT
antoine     2003/07/31 12:38:39

  Modified:    .        WHATSNEW
               src/etc  junit-frames.xsl
  Log:
  Display properly in junitreport the root package
  PR: 21915
  Submitted by: J.M. (Martijn) Kruithof (ant at kruithof dot xs4all dot nl)
  
  Revision  Changes    Path
  1.475     +4 -0      ant/WHATSNEW
  
  Index: WHATSNEW
  ===================================================================
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.474
  retrieving revision 1.475
  diff -u -r1.474 -r1.475
  --- WHATSNEW	31 Jul 2003 09:20:09 -0000	1.474
  +++ WHATSNEW	31 Jul 2003 19:38:38 -0000	1.475
  @@ -224,6 +224,10 @@
   
   * replace would change \r\n into \r\r\n under Windows.
   
  +* junitreport with frames did not display a link for classes without a package
  +  or in the top package.
  +  Bugzilla Report 21915.
  +
   Other changes:
   --------------
   * Six new Clearcase tasks added.
  
  
  
  1.16      +11 -3     ant/src/etc/junit-frames.xsl
  
  Index: junit-frames.xsl
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/junit-frames.xsl,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- junit-frames.xsl	21 Jul 2003 08:54:17 -0000	1.15
  +++ junit-frames.xsl	31 Jul 2003 19:38:39 -0000	1.16
  @@ -67,6 +67,7 @@
   
    @author Stephane Bailliez <a href="mailto:sbailliez@apache.org"/>
    @author Erik Hatcher <a href="mailto:ehatcher@apache.org"/>
  + @author Martijn Kruithof <a href="mailto:martijn@kruithof.xs4all.nl"/>
   
   -->
   <xsl:param name="output.dir" select="'.'"/>
  @@ -350,7 +351,10 @@
               <table width="100%">
                   <tr>
                       <td nowrap="nowrap">
  -                        <h2><a href="package-summary.html" target="classFrame"><xsl:value-of
select="$name"/></a></h2>
  +                        <h2><a href="package-summary.html" target="classFrame">
  +                            <xsl:value-of select="$name"/>
  +                            <xsl:if test="$name = ''">&lt;none&gt;</xsl:if>
  +                        </a></h2>
                       </td>
                   </tr>
               </table>
  @@ -439,8 +443,9 @@
   <xsl:template match="testsuite" mode="all.packages">
       <tr>
           <td nowrap="nowrap">
  -            <a href="{translate(@package,'.','/')}/package-summary.html" target="classFrame">
  +            <a href="./{translate(@package,'.','/')}/package-summary.html" target="classFrame">
                   <xsl:value-of select="@package"/>
  +                <xsl:if test="@package = ''">&lt;none&gt;</xsl:if>
               </a>
           </td>
       </tr>
  @@ -520,7 +525,10 @@
                               <xsl:otherwise>Pass</xsl:otherwise>
                           </xsl:choose>
                       </xsl:attribute>
  -                    <td><a href="{translate(@package,'.','/')}/package-summary.html"><xsl:value-of
select="@package"/></a></td>
  +                    <td><a href="./{translate(@package,'.','/')}/package-summary.html">
  +                        <xsl:value-of select="@package"/>
  +                        <xsl:if test="@package = ''">&lt;none&gt;</xsl:if>
  +                    </a></td>
                       <td><xsl:value-of select="sum($insamepackage/@tests)"/></td>
                       <td><xsl:value-of select="sum($insamepackage/@errors)"/></td>
                       <td><xsl:value-of select="sum($insamepackage/@failures)"/></td>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message