ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r382058 - in /ant/core/trunk/src/etc: junit-frames.xsl log.xsl
Date Wed, 01 Mar 2006 15:33:08 GMT
Author: stevel
Date: Wed Mar  1 07:33:07 2006
New Revision: 382058

URL: http://svn.apache.org/viewcvs?rev=382058&view=rev
Log:
minor layout tweaks to make it slightly more readable, updated year and corrected an old URL

Modified:
    ant/core/trunk/src/etc/junit-frames.xsl
    ant/core/trunk/src/etc/log.xsl

Modified: ant/core/trunk/src/etc/junit-frames.xsl
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/junit-frames.xsl?rev=382058&r1=382057&r2=382058&view=diff
==============================================================================
--- ant/core/trunk/src/etc/junit-frames.xsl (original)
+++ ant/core/trunk/src/etc/junit-frames.xsl Wed Mar  1 07:33:07 2006
@@ -65,19 +65,19 @@
 
     <!-- create the alltests-fails.html at the root -->
     <redirect:write file="{$output.dir}/alltests-fails.html">
-        <xsl:apply-templates select="." mode="all.tests">
-	    <xsl:with-param name="type" select="'fails'"/>
-	</xsl:apply-templates>
+      <xsl:apply-templates select="." mode="all.tests">
+        <xsl:with-param name="type" select="'fails'"/>
+      </xsl:apply-templates>
     </redirect:write>
 
-    <!-- create the alltests-errors.html at the root -->
+  <!-- create the alltests-errors.html at the root -->
     <redirect:write file="{$output.dir}/alltests-errors.html">
-        <xsl:apply-templates select="." mode="all.tests">
-	    <xsl:with-param name="type" select="'errors'"/>
-	</xsl:apply-templates>
+      <xsl:apply-templates select="." mode="all.tests">
+        <xsl:with-param name="type" select="'errors'"/>
+      </xsl:apply-templates>
     </redirect:write>
 
-    <!-- process all packages -->
+  <!-- process all packages -->
     <xsl:for-each select="./testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
         <xsl:call-template name="package">
             <xsl:with-param name="name" select="@package"/>
@@ -109,35 +109,35 @@
 
     <!-- for each class, creates a @name.html -->
     <!-- @bug there will be a problem with inner classes having the same name, it will
be overwritten -->
-    <xsl:for-each select="/testsuites/testsuite[@package = $name]">
-        <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}.html">
-            <xsl:apply-templates select="." mode="class.details"/>
-        </redirect:write>
-        <xsl:if test="string-length(./system-out)!=0">
-            <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-out.txt">
-                <xsl:value-of disable-output-escaping="yes" select="./system-out" />
-            </redirect:write>
-        </xsl:if>
-        <xsl:if test="string-length(./system-err)!=0">
-            <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-err.txt">
-                <xsl:value-of disable-output-escaping="yes" select="./system-err" />
-            </redirect:write>
-        </xsl:if>
-	<xsl:if test="@failures != 0">
-	    <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-fails.html">
-		<xsl:apply-templates select="." mode="class.details">
-		    <xsl:with-param name="type" select="'fails'"/>
-		</xsl:apply-templates>
-	    </redirect:write>
-	</xsl:if>
-	<xsl:if test="@errors != 0">
-	    <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-errors.html">
-		<xsl:apply-templates select="." mode="class.details">
-		    <xsl:with-param name="type" select="'errors'"/>
-		</xsl:apply-templates>
-	    </redirect:write>
-	</xsl:if>
-    </xsl:for-each>
+  <xsl:for-each select="/testsuites/testsuite[@package = $name]">
+    <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}.html">
+      <xsl:apply-templates select="." mode="class.details"/>
+    </redirect:write>
+    <xsl:if test="string-length(./system-out)!=0">
+      <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-out.txt">
+        <xsl:value-of disable-output-escaping="yes" select="./system-out"/>
+      </redirect:write>
+    </xsl:if>
+    <xsl:if test="string-length(./system-err)!=0">
+      <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-err.txt">
+        <xsl:value-of disable-output-escaping="yes" select="./system-err"/>
+      </redirect:write>
+    </xsl:if>
+    <xsl:if test="@failures != 0">
+      <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-fails.html">
+        <xsl:apply-templates select="." mode="class.details">
+          <xsl:with-param name="type" select="'fails'"/>
+        </xsl:apply-templates>
+      </redirect:write>
+    </xsl:if>
+    <xsl:if test="@errors != 0">
+      <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-errors.html">
+        <xsl:apply-templates select="." mode="class.details">
+          <xsl:with-param name="type" select="'errors'"/>
+        </xsl:apply-templates>
+      </redirect:write>
+    </xsl:if>
+  </xsl:for-each>
 </xsl:template>
 
 <xsl:template name="index.html">
@@ -248,28 +248,30 @@
                 test can even not be started at all (failure to load the class)
 		so report the error directly
 		-->
-                <xsl:if test="./error">
-                    <tr class="Error">
-                        <td colspan="4"><xsl:apply-templates select="./error"/></td>
-                    </tr>
-                </xsl:if>
-		<xsl:choose>
-		    <xsl:when test="$type = 'fails'">
-			<xsl:apply-templates select=".//testcase[failure]" mode="print.test">
-			    <xsl:with-param name="show.class" select="'yes'"/>
-			</xsl:apply-templates>
-		    </xsl:when>
-		    <xsl:when test="$type = 'errors'">
-			<xsl:apply-templates select=".//testcase[error]" mode="print.test">
-			    <xsl:with-param name="show.class" select="'yes'"/>
-			</xsl:apply-templates>
-		    </xsl:when>
-		    <xsl:otherwise>
-			<xsl:apply-templates select=".//testcase" mode="print.test">
-			    <xsl:with-param name="show.class" select="'yes'"/>
-			</xsl:apply-templates>
-		    </xsl:otherwise>
-		</xsl:choose>
+              <xsl:if test="./error">
+                <tr class="Error">
+                  <td colspan="4">
+                    <xsl:apply-templates select="./error"/>
+                  </td>
+                </tr>
+              </xsl:if>
+              <xsl:choose>
+                <xsl:when test="$type = 'fails'">
+                  <xsl:apply-templates select=".//testcase[failure]" mode="print.test">
+                    <xsl:with-param name="show.class" select="'yes'"/>
+                  </xsl:apply-templates>
+                </xsl:when>
+                <xsl:when test="$type = 'errors'">
+                  <xsl:apply-templates select=".//testcase[error]" mode="print.test">
+                    <xsl:with-param name="show.class" select="'yes'"/>
+                  </xsl:apply-templates>
+                </xsl:when>
+                <xsl:otherwise>
+                  <xsl:apply-templates select=".//testcase" mode="print.test">
+                    <xsl:with-param name="show.class" select="'yes'"/>
+                  </xsl:apply-templates>
+                </xsl:otherwise>
+              </xsl:choose>
             </table>
         </body>
     </html>

Modified: ant/core/trunk/src/etc/log.xsl
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/log.xsl?rev=382058&r1=382057&r2=382058&view=diff
==============================================================================
--- ant/core/trunk/src/etc/log.xsl (original)
+++ ant/core/trunk/src/etc/log.xsl Wed Mar  1 07:33:07 2006
@@ -1,7 +1,7 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 <xsl:output method="html" indent="yes" encoding="US-ASCII"/>
 <!--
-    Copyright  2000-2004 The Apache Software Foundation
+    Copyright  2000-2006 The Apache Software Foundation
    
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
@@ -112,7 +112,7 @@
         </a>
       </td>
       <td style="text-align:right;vertical-align:bottom">
-        <a href="http://jakarta.apache.org/ant">Apache Ant</a>
+        <a href="http://ant.apache.org/">Apache Ant</a>
       </td>
     </tr>
     </table>
@@ -128,7 +128,7 @@
       <tr><td><hr noshade="yes" size="1"/></td></tr>
       <tr><td>
       <div align="center"><font color="#525D76" size="-1"><em>
-      Copyright &#169; 2000-2002, Apache Software Foundation
+      Copyright &#169; 2000-2006, Apache Software Foundation
       </em></font></div>
       </td></tr>
     </table>



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


Mime
View raw message