ccnet not catching Nant.Core.BuildExceptions , xsl change to catch
Last night a developer added a lib to the project and accidentilly checked it
in. Of course there was no dll on the build machine, and the build
failed. I looked at the ccnet email and site, and saw the build failed,
but no details. I started to comb through the xml file, and relaized that
compile.xsl was not catching anything in the <builderror><message>,
just what was in <buildresults><message> where the word error or
warning appears (' error', and ' warning' in my edited xsl).
I made a simple change to the xsl and now we are displaying these errors
too. Change is below. I think ccnet needs a central place to handle
xsl's, though, since every change I make to the xsl needs to be made in 4 places
at this point :)
<xsl:variable name="error.messages" select="(/cruisecontrol//buildresults//message[(contains(text(),
' error') and not (contains(text(), '0 error')))]) | (//builderror//message)
" />