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>