开发者

Changing location of Clover instrumented classes

开发者 https://www.devze.com 2023-01-15 03:43 出处:网络
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 director

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.

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开发者_StackOverflow中文版 include the instrumented classes is to re-compile everything again?

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


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".

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]".

0

精彩评论

暂无评论...
验证码 换一张
取 消