When turning code-coverage on for my grails app, I suddenly started getting an error when cobertura was instrumenting my classes; unable to read zip file. Found someone with similar issues here, but I had to end up with a different patch. I added the closure onto the fileset request on line 122 of _GrailsClasspath.groovy. Yeah, its a grails problem… they assume everything is a jar or zip in a lib directory… guess its not true in a plugin I loaded. Anyways, here’s the patch I added:
1
2
3
4
5
6
for (pluginLib in pluginLibDirs) {
fileset(dir: pluginLib.file.absolutePath){
include(name:"**/*.jar")
include(name:"**/*.zip")
}
}