mjhugo / grails-build-info

Provides a Grails controller/view that display basic information about a deployed WAR file
Other
8 stars 14 forks source link

issue with svn 1.7 #1

Closed mjhugo closed 12 years ago

mjhugo commented 12 years ago

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