Ant在Junit报告中失败了

时间:2012-07-06 12:38:28

标签: eclipse ant junit4

  

可能重复:
  Error! The first argument to the non-static Java function 'replace' is not a valid object reference

使用JUNIT-REPORT时出现以下错误。

[junitreport] Processing /Users/subhashlengare/Documents/workspace/PlatformData/build/test-report/TESTS-TestSuites.xml to /var/folders/qd/3r754f6x0cj34fjzz1n8xzk00000gn/T/null1260329582
[junitreport] Loading stylesheet jar:file:/Users/subhashlengare/installtions/apache-ant-1.8.4/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] : Error! The first argument to the non-static Java function 'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process /Users/subhashlengare/Documents/workspace/PlatformData/build/test-report/TESTS-TestSuites.xml

我正在使用以下环境

  • Mac OS 10.7.4
  • Java 1.6.33
  • Ant 1.8.4
  • JUnit 4

有人知道解决方案吗?

0 个答案:

没有答案