Posts Grails 1.3.7, cobertura and zip errors
Post
Cancel

Grails 1.3.7, cobertura and zip errors

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")
        }   
    }
This post is licensed under CC BY 4.0 by the author.
Recent Update
Trending Tags

Trending Tags