There was a change with 1.1, and eventCompileEnd no longer gets the type. Instead, the test compile
fires a different event:
/Users/robert/dev/grails/scripts/_GrailsTest.groovy: event("TestCompileStart", [type])
/Users/robert/dev/grails/scripts/_GrailsTest.groovy: event("TestCompileEnd", [type])
~~ Robert.
Todd Wells wrote:
> Am I doing something wrong here or are there any ideas for an alternative?
>
> On Sat, May 9, 2009 at 4:55 PM, Todd Wells <
[hidden email]
> <mailto:
[hidden email]>> wrote:
>
> The docs for the "CompileEnd" event say the parameter it gets passed
> is "kind", which indicates the kind of compile -- source or test.
>
> But when I make a simple _Events.groovy that has this:
>
> eventCompileEnd = { kind ->
> println "FINISHED COMPILING ${kind.toString()}"
> }
>
> I get this output for a 'grails compile':
>
> [groovyc] Compiling 53 source files to
> /Users/ttop/.grails/1.1/projects/grails/classes
> FINISHED COMPILING org.codehaus.gant.GantBinding@64d6833a
>
> What am I missing here? I need to know what type of compile
> finished. Really what I want to do is make sure a certain file gets
> copied into a specific location before the war is packaged, so if
> there's a better way to go about it than hooking into this event,
> I'd like to know that too.
>
>
>
--
~~ Robert Fischer.
Grails Training
http://GroovyMag.com/trainingSmokejumper Consulting
http://SmokejumperIT.comEnfranchised Mind Blog
http://EnfranchisedMind.com/blogCheck out my book, "Grails Persistence with GORM and GSQL"!
http://www.smokejumperit.com/redirect.html---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email