2012-07-04 35 views
0

我是Cobertura的新手,我试图从compliled jar文件中检测类。
拆包我运行下面的命令后:Cobertura没有找到任何仪器类

d:\的Cobertura-1.9.4.1 \ 7.6.300.01> d:\的Cobertura-1.9.4.1 \的Cobertura-instrument.bat --basedir d:\的Cobertura -1.9.4.1 \ 7.6.300.01
的Cobertura 1.9.4.1 - GNU GPL许可证(无担保) - 参见版权文件
0插入检测文件
的Cobertura:0班保存的信息。
仪时间:0毫秒

在d:\的Cobertura-1.9.4.1 \ 7.6.300.01类文件的位置。
为什么cobertura无法找到它们?

回答

1

请参阅http://cobertura.sourceforge.net/commandlinereference.html。您没有指定要使用的类。

的Cobertura-instrument.bat [--basedir目录] [--datafile文件] [--destination目录] [--ignore正则表达式] [...]

注意:类可以单独指定,也可以指定为包含多个类的目录树 。例如:

的Cobertura-instrument.bat --destination C:\ MyProject的\建立\仪表C:\ MyProject的\建立\类

(重点煤矿)