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, 29 Aug 2001 23:15:54 GMT
morgand     01/08/29 16:15:54

  Modified:    latka-taglib/src/org/apache/taglibs/latka
                        ExecuteSuiteTag.java
  Log:
  added docs
  
  Revision  Changes    Path
  1.6       +20 -3     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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ExecuteSuiteTag.java	2001/08/29 16:53:54	1.5
  +++ ExecuteSuiteTag.java	2001/08/29 23:15:54	1.6
  @@ -15,6 +15,17 @@
   import org.apache.commons.latka.Suite;
   import org.apache.commons.latka.XMLReporter;
   
  +/**
  + * Tag which will execute a single Latka suite, either 
  + * from a file URI or from the body of the tag.  Note: 
  + * since many Servlet engines utilize Thread pools, the
  + * Latka properties will be reset to their defaults after 
  + * every invocation of this tag (see
  + * {@link org.apache.commons.latka.LatkaProperties} for
  + * more information).
  + * 
  + * @author Morgan Delagrange
  + */
   public class ExecuteSuiteTag extends BodyTagSupport {
   
     protected String _testFile = null;
  @@ -30,9 +41,7 @@
       (Properties) LatkaProperties.getProperties().clone();
   
     /**
  -   * File name will simply be the file, not the path to it.
  -   * All test files will be in the same directory, which will
  -   * be indicated by a context parameter.  If this property
  +   * The full path to the test file.  If this property
      * is not set, the suite will be read from the body
      * of the tag.
      * 
  @@ -95,6 +104,13 @@
       return EVAL_PAGE;
     }
   
  +  /**
  +   * There may be more sophisticated logic here for 
  +   * converting the "testFile" attribute to a Latka
  +   * Suite.
  +   * 
  +   * @return a Latka Suite
  +   */
     protected Suite suiteFromFileName() {
       // fix me to find dir from context param
       Suite suite = new Suite(_testFile);
  @@ -103,6 +119,7 @@
   
     public void release() {
       _testFile = null;
  +    _xmlSuiteReader = null;
     }
   
   }
  
  
  

Mime
View raw message