curcuru     01/03/28 17:04:14

  Modified:    test/java build.xml
  Log:
  Use new Ant task to execute Xalan tests; testname can easily be overridden
  on the command line with -Dtestname=FooTestName
  
  Revision  Changes    Path
  1.22      +42 -3     xml-xalan/test/java/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/java/build.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- build.xml 2001/03/28 18:15:02     1.21
  +++ build.xml 2001/03/29 01:04:13     1.22
  @@ -110,6 +110,43 @@
           <pathelement path="${java.class.path}" />
       </path>
   
  +    <!-- =================================================================== 
-->
  +    <!-- Simple target to execute basic API tests from Ant                   
-->
  +    <!-- =================================================================== 
-->
  +    <taskdef name="xalantest" 
classname="org.apache.qetest.xsl.XSLTestAntTask">
  +        <classpath>
  +            <pathelement path="${build.dir}/${testxsl.jar.name}" />
  +            <pathelement path="${prepend.class.path}" />
  +            <pathelement path="${java.class.path}" />
  +            <!-- Needed so this build file can run: this refers to 
  +                 a precompiled version of XSLTestAntTask.class that 
  +                 is checked in: normally at runtime, it should come 
  +                 from the testxsl.jar file instead of below.
  +            -->
  +            <pathelement path="${src.dir}" />
  +        </classpath>
  +    </taskdef>
  +    <!-- A cheap target to allow you to execute a single API test 
  +         using Ant.  This defaults to the Minitest, however you may 
  +         simply override the ${testname} property on the command 
  +         line like so:
  +         build apitest -Dtestname=FooTest
  +    -->
  +    <property name="testname" value="org.apache.qetest.trax.Minitest" />
  +    <target name="apitest">
  +        <echo message="Executing Xalan API test: ${testname}" />
  +        <xalantest test="${testname}"
  +            inputDir="${tests.root}/api"
  +            goldDir="${tests.root}/api-gold"
  +            outputDir="../results-api"
  +            logFile="../results-api/results.xml"
  +            loggingLevel="${test.loggingLevel}"
  +            consoleLoggingLevel="30"
  +            classpathref="runapitests.class.path"
  +            fork="${fork-tests}"
  +            failonerror="yes" />
  +    </target>
  +
       <!-- Prepare output tree; copy over prebuilt classes -->
       <target name="prepare">
           <echo message="Classpath is ${java.class.path}" />
  @@ -595,9 +632,10 @@
       <target name="javadocs" depends="prepare"
               description="Build the Javadocs for tests">
               
  -        <!-- Ant 1.2 ignores destdir arg if doclet is set, so must send to 
doclet in doclet subelement-->    
  +        <!-- Ant 1.2 ignores destdir arg if doclet is set, so must send to 
doclet in doclet subelement dleslie-->    
  +        <!-- But: Ant 1.3 fails if you *don't* provide destdir attr... 
curcuru-->    
           <javadoc
  -             classpath="${java.class.path};${xalan.build.dir}/xalan.jar"
  +             
classpath="${java.class.path};${xalan.build.dir}/xalan.jar;${xalan.build.dir}/xalanj1compat.jar"
                sourcepath="${src.dir}"
                packagenames="${javadocs.packages}"
                protected="true"
  @@ -606,7 +644,8 @@
                use="true"
                windowtitle="${Name}" 
                doctitle="${Name}"
  -             bottom="${copyright}">
  +             bottom="${copyright}"
  +             destdir="${build.apidocs}">
                  <doclet name="xalanjdoc.Standard" 
path="${xalan.bin.dir}/xalan2jdoc.jar">
                     <param name="-d" value="${build.apidocs}"/>
                  </doclet>             
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to