三叶草的改变位置仪表类 [英] Changing location of Clover instrumented classes

查看:205
本文介绍了三叶草的改变位置仪表类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是三叶草2.5和我有一个目标,将打包的二进制文件。然而,在那一刻,似乎三叶草仪表相同的输出目录,我想在一个罐子包装了非仪器类生成的类。

I'm using Clover 2.5 and I've got a target that will package up the binary files. However, at the moment, it seems that the Clover instrumented classes are being generated in the same output directory as the un-instrumented classes that I wish to package up in a jar.

我要如何去建立一个罐子,以便不包括仪表类?有没有办法来改变,其中仪表类吐出来?或者是打包一个jar不包括仪表类唯一的办法就是重新编译再次一切吗?

How do I go about creating a jar so that the instrumented classes are not included? Is there a way to change where the instrumented classes are spat out? Or is the only way to package up a jar that does not include the instrumented classes is to re-compile everything again?

我尝试使用 TMPDIR 三叶草设置属性的目标,但似乎没有任何效果。

I tried using the tmpdir attribute of the clover-setup target but that did not seem to have any effect.

推荐答案

如果你手动蚂蚁这样做,使用<$c$c><clover-instr>任务,而不是&LT;三叶草设置&gt; &LT;三叶草指令输入&GT; 有一个 DESTDIR 属性,它是目录在其中四叶草会写的仪表副本源$ C ​​$ C。

If you're doing this manually with Ant, use the <clover-instr> task instead of <clover-setup>. <clover-instr> has a destdir attribute that is the "directory into which Clover will write an instrumented copy of the source code".

如果你使用Eclipse来踢这一​​切关,四叶草文档说你可以在您的项目并选择属性鼠标右键,选择三叶草,选择编译选项卡,选择用户指定文件夹,然后选择您希望仪表类项目目录[要输出]。

If you're using Eclipse to kick all of this off, the Clover documentation says that you can "right click on your project and select properties, select Clover, select Compilation tab, select 'User specified folder' and then select a project directory where you wish instrumented classes [to be output]".

这篇关于三叶草的改变位置仪表类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆