小编Tua*_*uan的帖子

eclipse中的ant junit构建错误

我希望有一些人已经看到并解决了我现在使用的蚂蚁脚本问题.我正在使用ant脚本在eclipse中编译我的java代码,但是eclipse不断给我这些错误

[junitreport] Processing E:\workspace\DataOrchestrationDevelopment\DataOrchestration\Logs\jsreports\junit\html\TESTS-TestSuites.xml to C:\Users\u0160235\AppData\Local\Temp\null1503375679
[junitreport] Loading stylesheet jar:file:/E:/software/apache/apache-ant-1.8.2/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 E:\workspace\DataOrchestrationDevelopment\DataOrchestration\Logs\jsreports\junit\html\TESTS-TestSuites.xml

BUILD FAILED
E:\workspace\DataOrchestrationDevelopment\DataOrchestration\ant\developerbuild.xml:124: The following error occurred while executing this line:
E:\workspace\DataOrchestrationDevelopment\DataOrchestration\ant\QunitAntScript.xml:20: Errors while applying transformations: Fatal error during transformation
Run Code Online (Sandbox Code Playgroud)

我的环境设置:

  • Windows 7的
  • Eclipse 3.6 RC2 32位
  • JDK 1.6更新32位32位
  • Ant …

java eclipse ant junit

21
推荐指数
2
解决办法
2万
查看次数

标签 统计

ant ×1

eclipse ×1

java ×1

junit ×1