From b8483a936be2ceebaf404dacd499aa7bb2a0d34d Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Sun, 18 Feb 2007 07:20:02 +0000
Subject: [PATCH] move from ant 1.6.5 to 1.7.0

---
 opendj-sdk/opends/ext/ant/etc/junit-noframes.xsl |   93 ++++++++++++++++++++++++----------------------
 1 files changed, 48 insertions(+), 45 deletions(-)

diff --git a/opendj-sdk/opends/ext/ant/etc/junit-noframes.xsl b/opendj-sdk/opends/ext/ant/etc/junit-noframes.xsl
index 25487f8..5e67587 100644
--- a/opendj-sdk/opends/ext/ant/etc/junit-noframes.xsl
+++ b/opendj-sdk/opends/ext/ant/etc/junit-noframes.xsl
@@ -1,15 +1,16 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
-	xmlns:lxslt="http://xml.apache.org/xslt"
-	xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils">
+        xmlns:lxslt="http://xml.apache.org/xslt"
+        xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils">
 <xsl:output method="html" indent="yes" encoding="US-ASCII"
   doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
 <xsl:decimal-format decimal-separator="." grouping-separator="," />
 <!--
-   Copyright 2001-2004 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.
-   You may obtain a copy of the License at
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
 
        http://www.apache.org/licenses/LICENSE-2.0
 
@@ -19,17 +20,14 @@
    See the License for the specific language governing permissions and
    limitations under the License.
  -->
- 
+
 <!--
- 
+
  Sample stylesheet to be used with Ant JUnitReport output.
- 
+
  It creates a non-framed report that can be useful to send via
  e-mail or such.
- 
- @author Stephane Bailliez <a href="mailto:sbailliez@apache.org"/>
- @author Erik Hatcher <a href="mailto:ehatcher@apache.org"/>
- 
+
 -->
 <xsl:template match="testsuites">
     <html>
@@ -51,7 +49,7 @@
       table.details tr td{
         background:#eeeee0;
       }
-      
+
       p {
         line-height:1.5em;
         margin-top:0.5em; margin-bottom:1.0em;
@@ -87,7 +85,7 @@
       <script type="text/javascript" language="JavaScript">
         var TestCases = new Array();
         var cur;
-        <xsl:for-each select="./testsuite">      
+        <xsl:for-each select="./testsuite">
             <xsl:apply-templates select="properties"/>
         </xsl:for-each>
 
@@ -95,7 +93,8 @@
        <script type="text/javascript" language="JavaScript"><![CDATA[
         function displayProperties (name) {
           var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
-          var doc = win.document.open();
+          var doc = win.document;
+          doc.open();
           doc.write("<html><head><title>Properties of " + name + "</title>");
           doc.write("<style>")
           doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");
@@ -118,39 +117,39 @@
           doc.close();
           win.focus();
         }
-      ]]>  
+      ]]>
       </script>
         </head>
         <body>
             <a name="top"></a>
-            <xsl:call-template name="pageHeader"/>  
-            
+            <xsl:call-template name="pageHeader"/>
+
             <!-- Summary part -->
             <xsl:call-template name="summary"/>
             <hr size="1" width="95%" align="left"/>
-            
+
             <!-- Package List part -->
             <xsl:call-template name="packagelist"/>
             <hr size="1" width="95%" align="left"/>
-            
+
             <!-- For each package create its part -->
             <xsl:call-template name="packages"/>
             <hr size="1" width="95%" align="left"/>
-            
+
             <!-- For each class create the  part -->
             <xsl:call-template name="classes"/>
-            
+
         </body>
     </html>
 </xsl:template>
-    
-    
-    
+
+
+
     <!-- ================================================================== -->
     <!-- Write a list of all packages with an hyperlink to the anchor of    -->
     <!-- of the package name.                                               -->
     <!-- ================================================================== -->
-    <xsl:template name="packagelist">   
+    <xsl:template name="packagelist">
         <h2>Packages</h2>
         Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.
         <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
@@ -163,7 +162,7 @@
                 <xsl:variable name="errorCount" select="sum($testsuites-in-package/@errors)"/>
                 <xsl:variable name="failureCount" select="sum($testsuites-in-package/@failures)"/>
                 <xsl:variable name="timeCount" select="sum($testsuites-in-package/@time)"/>
-                
+
                 <!-- write a summary for the package -->
                 <tr valign="top">
                     <!-- set a nice color depending if there is an error/failure -->
@@ -182,12 +181,14 @@
                         <xsl:with-param name="value" select="$timeCount"/>
                     </xsl:call-template>
                     </td>
+                    <td><xsl:value-of select="$testsuites-in-package/@timestamp"/></td>
+                    <td><xsl:value-of select="$testsuites-in-package/@hostname"/></td>
                 </tr>
             </xsl:for-each>
-        </table>        
+        </table>
     </xsl:template>
-    
-    
+
+
     <!-- ================================================================== -->
     <!-- Write a package level report                                       -->
     <!-- It creates a table with values from the document:                  -->
@@ -199,10 +200,10 @@
             <xsl:sort select="@package"/>
                 <a name="{@package}"></a>
                 <h3>Package <xsl:value-of select="@package"/></h3>
-                
+
                 <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
                     <xsl:call-template name="testsuite.test.header"/>
-            
+
                     <!-- match the testsuites of this package -->
                     <xsl:apply-templates select="/testsuites/testsuite[./@package = current()/@package]" mode="print.test"/>
                 </table>
@@ -211,14 +212,14 @@
                 <p/>
         </xsl:for-each>
     </xsl:template>
-    
+
     <xsl:template name="classes">
         <xsl:for-each select="testsuite">
             <xsl:sort select="@name"/>
             <!-- create an anchor to this class name -->
             <a name="{@name}"></a>
             <h3>TestCase <xsl:value-of select="@name"/></h3>
-            
+
             <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
               <xsl:call-template name="testcase.test.header"/>
               <!--
@@ -239,11 +240,11 @@
                 </a>
             </div>
             <p/>
-            
+
             <a href="#top">Back to top</a>
         </xsl:for-each>
     </xsl:template>
-    
+
     <xsl:template name="summary">
         <h2>Summary</h2>
         <xsl:variable name="testCount" select="sum(testsuite/@tests)"/>
@@ -290,7 +291,7 @@
         </tr>
         </table>
     </xsl:template>
-    
+
   <!--
    Write properties into a JavaScript data structure.
    This is based on the original idea by Erik Hatcher (ehatcher@apache.org)
@@ -302,14 +303,14 @@
         cur['<xsl:value-of select="@name"/>'] = '<xsl:call-template name="JS-escape"><xsl:with-param name="string" select="@value"/></xsl:call-template>';
     </xsl:for-each>
   </xsl:template>
-    
+
 <!-- Page HEADER -->
 <xsl:template name="pageHeader">
     <h1>Unit Test Results</h1>
     <table width="100%">
     <tr>
         <td align="left"></td>
-        <td align="right">Designed for use with <a href='http://www.junit.org'>JUnit</a> and <a href='http://jakarta.apache.org/ant'>Ant</a>.</td>
+        <td align="right">Designed for use with <a href='http://www.junit.org'>JUnit</a> and <a href='http://ant.apache.org/ant'>Ant</a>.</td>
     </tr>
     </table>
     <hr size="1"/>
@@ -333,6 +334,8 @@
         <th>Errors</th>
         <th>Failures</th>
         <th nowrap="nowrap">Time(s)</th>
+        <th nowrap="nowrap">Time Stamp</th>
+        <th>Host</th>
     </tr>
 </xsl:template>
 
@@ -357,7 +360,7 @@
                 <xsl:when test="@errors[.&gt; 0]">Error</xsl:when>
             </xsl:choose>
         </xsl:attribute>
-    
+
         <!-- print testsuite information -->
         <td><a href="#{@name}"><xsl:value-of select="@name"/></a></td>
         <td><xsl:value-of select="@tests"/></td>
@@ -368,6 +371,8 @@
                 <xsl:with-param name="value" select="@time"/>
             </xsl:call-template>
         </td>
+        <td><xsl:apply-templates select="@timestamp"/></td>
+        <td><xsl:apply-templates select="@hostname"/></td>
     </tr>
 </xsl:template>
 
@@ -443,8 +448,7 @@
 -->
 <xsl:template name="br-replace">
     <xsl:param name="word"/>
-    <xsl:param name="br"><br/></xsl:param>
-    <xsl:value-of select='stringutils:replace(string($word),"&#xA;",$br)'/>
+    <xsl:value-of disable-output-escaping="yes" select='stringutils:replace(string($word),"&#xA;","&lt;br/>")'/>
 </xsl:template>
 
 <xsl:template name="display-time">
@@ -458,4 +462,3 @@
 </xsl:template>
 
 </xsl:stylesheet>
-

--
Gitblit v1.10.0