mjhugo/grails-build-info — Issue #1: issue with svn 1.7
Author: mjhugo
Created: 2012-02-09 12:57:39+00:00
State: open

If you are interested in more details, the grails build process fails for local builds (without HUDSON env vars) and svn 1.7 metadata format. From svn 1.7 the metadata format changed, so it is not so safe trying to detect the scm revision number directly from "entries" file... i.e
scmVersion = entries.text.split('\n')[3].trim()
throws an ArrayIndexOutOfBoundsException

Changing line 34 of _Events.groovy from
if (entries.exists()) {
to
if (entries.exists() && entries.text.split('\n').length>3) {
would be enough

Kind regards
Davide Cavestro