jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-taglibs-sandbox/latka-taglib/src/org/apache/taglibs/latka ExecuteSuiteTag.java
Date Wed, 12 Sep 2001 18:03:30 GMT
morgand     01/09/12 11:03:30

  Modified:    latka-taglib/src/org/apache/taglibs/latka
                        ExecuteSuiteTag.java
  Log:
  reassign runtime output from STDOUT to the JSP
  
  Revision  Changes    Path
  1.11      +8 -1      jakarta-taglibs-sandbox/latka-taglib/src/org/apache/taglibs/latka/ExecuteSuiteTag.java
  
  Index: ExecuteSuiteTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs-sandbox/latka-taglib/src/org/apache/taglibs/latka/ExecuteSuiteTag.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ExecuteSuiteTag.java	2001/09/07 17:09:39	1.10
  +++ ExecuteSuiteTag.java	2001/09/12 18:03:30	1.11
  @@ -1,6 +1,7 @@
   package org.apache.taglibs.latka;
   
   import java.io.IOException;
  +import java.io.PrintWriter;
   import java.io.Reader;
   import java.io.StringReader;
   
  @@ -10,6 +11,7 @@
   import java.util.Properties;
   
   import javax.servlet.jsp.JspTagException;
  +import javax.servlet.jsp.JspWriter;
   import javax.servlet.jsp.tagext.BodyTagSupport;
   
   import org.apache.commons.latka.Latka;
  @@ -132,7 +134,12 @@
         }
       }
   
  +    JspWriter jspWriter = pageContext.getOut();
  +
  +
       XMLReporter listener = new XMLReporter();
  +    listener.setPrintWriter(new PrintWriter(jspWriter));
  +
       try {
         latka.runTests(suite,listener);
   
  @@ -155,7 +162,7 @@
   
       try {
         String testResults = listener.getDocumentAsString();
  -      pageContext.getOut().write(latka.transformXML(testResults));
  +      jspWriter.write(latka.transformXML(testResults));
       } catch (IOException e) {
         e.printStackTrace();
         throw new JspTagException(e.toString());
  
  
  

Mime
View raw message