简体   繁体   English

如何在Grails 2.3.x中禁用Groovy优化

[英]How to disable groovy optimizations in grails 2.3.x

I am having some problems with my coverage report. 我的承保范围报告有些问题。 According to this question It seems to be the optimizations groovy branches. 根据这个问题 ,似乎是优化的常规分支。

The answer says that I should drop this jar in my lib directory and run "test-app -coverage". 答案说,我应该将此jar放在我的lib目录中,然后运行“ test-app -coverage”。 But it is still not working. 但是它仍然无法正常工作。 I think its because I am using grails 2.3.x and groovy 2.x instead of groovy 1.8 (the solution is very old) 我认为是因为我使用的是grails 2.3.x和groovy 2.x而不是groovy 1.8(解决方案非常旧)

How do I use this jar? 我如何使用这个罐子? or the solution is diferent for new groovy compilers? 还是新的Groovy编译器解决方案不同?

Some examples of my problem with the coverage report 我的覆盖率报告问题的一些示例

在此处输入图片说明

and

在此处输入图片说明

I am using oracle java 7 build 24.51-b03 in linux 我在Linux中使用Oracle Java 7 build 24.51-b03

I am closing this question becouse the solution was clean/compile and not other procedure. 我正在关闭此问题,因为解决方案是干净的/可编译的,而不是其他程序。

The only problem so far with this solution is that there are still redlines in my reports that do not have conditional branches. 到目前为止,此解决方案的唯一问题是我的报表中仍然存在没有条件分支的红线。 But I will open a new question 但我会提出一个新问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM