ANT+JUNIT生成Report
我的build.xml生成report部分如下
<target name="runtests" depends="JUNIT" if="junit.present">
<junit fork="yes" haltonfailure="true">
<classpath>
<pathelement path="${build.dir}/classes" />
</classpath>
<formatter type="plain"/>
<test name="junit.samples.AllTests" haltonfailure="no" outfile="result">
<formatter type="xml"/>
</test>
</junit>
<junitreport todir="./report">
<fileset dir=".">
<include name="result.xml"/>
</fileset>
<report format="frames" todir="./report/html"/>
</junitreport>
</target>
可是运行的时候出错
出错信息如下:
runtests:
[junitreport] Using Xalan version: 2.0.1
BUILD FAILED
file:C:/Documents and Settings/kingo/桌面/JUNIT/junit3.8.1/junit/build.xml:43: Errors while applying transformations: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.Transfo
rmerException: org.xml.sax.SAXException: Namespace not supported by SAXParser
请问这是为什么呀!