BUILD FAILED
/opt/build.xml:19: Problem: failed to create task or type cobertura-report
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
解决办法:设置jar的引入路径:
第一步,将cobertura.jar以及Cobertura/lib下的所有jar引入classpath
- <pathid="lib.classpath">
- <filesetdir="${lib.dir}">
- <includename="**/*.jar"/>
- </fileset>
- </path>
本文提供了解决ANT构建错误的方法,详细步骤包括设置jar引入路径和引入cobertura task,以解决在使用cobertura进行代码覆盖率报告时出现的问题。
954

被折叠的 条评论
为什么被折叠?



