Using external javac compiler causes classes to not be instrumented with Clover

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Running the following ANT command, example only:


ant clean with.clover compile

Builds the project successfully where classes are compiled as expected. However, the classes are not instrumented.

原因

This is due to a compiler attribute is defined within the <javac/> task. For example:


<javac .......
compiler="<the_compiler>" .....
</javac>

However a compiler should not be specified here as outlined in the following documentation:

ソリューション

Remove the compiler attribute from the <javac/> task and define the compiler using the clovercompile attribute within the <clover-setup> task.

最終更新日 2012 年 11 月 21 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.