<?xml version="1.0" encoding="UTF-8"?>
<project name="myproject" basedir="." default="transform">
     <echo message="The base dir is: ${basedir}"/>
      <property name="lib.dir" value="jar"/>
         <echo message="The base dir is: ${lib.dir}"/>
    <path id="test.classpath">
         <!-- adding the saxon jar to your classpath -->
         <fileset dir="${lib.dir}" includes="*.jar"/>
    </path>

    <target name="transform">
        <xslt in="${basedir}\test-output\testng-results.xml" style="${basedir}\test-output\testng-results.xsl"
              out="${basedir}\test-output\testReport.html">
            <param name="testNgXslt.outputDir" expression="${basedir}\test-output"/>
            <classpath refid="test.classpath"/>
        </xslt>
    </target>
</project>

 

相关文章:

  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-05-15
  • 2021-07-30
  • 2021-08-28
  • 2022-12-23
猜你喜欢
  • 2021-07-12
  • 2021-06-21
  • 2021-11-06
  • 2021-10-11
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
相关资源
相似解决方案