larryi      01/07/17 07:12:06

  Modified:    src/tests/webpages/WEB-INF test-tomcat.xml
  Log:
  Specifying a classpath in a Task definition causes Ant to create the task in
  its own class loader.  Thus, GTestDefaults, GTest, and HttpClient tasks
  reference different sets of static "result" vectors.  test.jsp would always
  display the empty result vectors created for GTestDefaults.  By removing
  the classpath, test.jsp behavior returns to normal.
  
  Hopefully, access to tomcat_util.jar can be provided in some other fashion..
  
  Revision  Changes    Path
  1.36      +1 -22     jakarta-tomcat/src/tests/webpages/WEB-INF/test-tomcat.xml
  
  Index: test-tomcat.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/tests/webpages/WEB-INF/test-tomcat.xml,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- test-tomcat.xml   2001/07/17 05:17:58     1.35
  +++ test-tomcat.xml   2001/07/17 14:12:06     1.36
  @@ -16,7 +16,7 @@
           early tests.
       -->
   
  -     <property name="revision" value="$Revision: 1.35 $" />  
  +     <property name="revision" value="$Revision: 1.36 $" />  
        <property name="host" value="127.0.0.1" />
        <property name="port"     value="8080" />
        <property name="outputType"     value="text" />
  @@ -25,61 +25,40 @@
        <property name="http.protocol" value="HTTP/1.0" />
   
        <property name="gdir" value="../Golden" />
  -     <property name="g.jar"
  -            value="${tomcat.home}/lib/container/tomcat_util.jar" />
  -  
  -     <path id="cp.g" >
  -       <pathelement location="${g.jar}"/>
  -     </path>
   
        <!-- ==================== Tasks ==================== -->     
        <taskdef name="httpClient" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.HttpClient" />
        <taskdef name="httpRequest" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.HttpRequest" />
        <taskdef name="header" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.Header" />
        <taskdef name="param" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.Parameter" />
        <taskdef name="cookie" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.Cookie" />
        <taskdef name="body" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.Body" />
        <taskdef name="goldenMatch" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.matchers.GoldenMatch" />
        <taskdef name="headerMatch" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.matchers.HeaderMatch" />
        <taskdef name="httpStatusMatch" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.matchers.HttpStatusMatch" />
        <taskdef name="responseMatch" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.matchers.ResponseMatch" />
        <taskdef name="responseMatchFile" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.matchers.ResponseMatchFile" />
        <taskdef name="sessionMatch" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.matchers.SessionMatch" />
        <taskdef name="comment" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.Body" />
   
        <taskdef name="gtestDefaults"
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.TestDefaults" />
   
        <!-- Backward compatibility -->
        <taskdef name="gtest" 
  -           classpathRef="cp.g"
              classname="org.apache.tomcat.util.test.GTest" />
   
   
  
  
  

Reply via email to