I get the following error:
ERROR: Clover-for-Groovy encountered an error while loading config:
Basically, when I use ant.'clover-setup' I get this error and no instrumentation is performed. I can leave off all params to the ant task (i.e. accepting all defaults) and still get this error.
No stacktraces near that error. There is a stacktrace later on because the ant.'clover-report' can't find the coverage database - but it isn't there (as it is never created) so it seems to be working as expected.
The previous line is execing java with this class 'org.codehaus.groovy.tools.FileSystemCompiler' and has the clover jar and a temp groverxxxx.jar in the classpath.
Then the error line.
[ant:clover-setup] Cleaning up Clover directory ...
By default, Clover should log to stdout. You can specify the log level by setting the clover.logging.level to either
You can also specify which framework gets used via the clover.logging.adapter System property. Valid values are:
will force Clover to use log4j.
Such error might happen when Ant jar is missing in class path. In such case the error message with a stack trace looks this:
[groovyc] ERROR: Clover-for-Groovy encountered an error while loading config: Clover-for-Groovy encountered an error while loading config: : org/apache/tools/ant/BuildException [groovyc] java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException [groovyc] at java.lang.Class.getDeclaredFields0(Native Method) ...
[groovyc] at com.atlassian.clover.instr.java.InstrumentationConfig.loadFromStream(InstrumentationConfig.java:439) [groovyc] at com.atlassian.clover.instr.groovy.Grover.newConfigFromResource(Grover.java:241) [groovyc] at com.atlassian.clover.instr.groovy.Grover.<init>(Grover.java:210)
If this is your case, then please use includeAntRuntime="true" in your build configuration.
Welcome to your weekly Jira Ops Early access program update, where we’re sharing news and updates on Jira Ops' progress as we work toward our 1.0 release. If you ever want to drop us feedback or idea...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs