On 22/06/2009, at 12:46 PM, Richard Vowles wrote:
> Ok, so since no-one responded to me about their ideal way to solve
> the problem I am going to propose a solution and if I don't get any
> "but nay!" comments, I'll go ahead and implement a patch and attach
> it to a JIRA.
>
> My *suggestion* is this - extend the loadEventsHooks in
> GrailsBuildEventListener so that it looks for all scripts that
> *start* with _Events. It processes plain _Events as normal, and when
> an event is fired it checks to see if there are any
> _Event_That_Event_Name.groovy scripts anywhere, and if so, loads
> them in with loadEventScript.
>
> I would have sworn there was an event ("CompileEnd") in the
> _GrailsCompile.groovy, but I can no-longer find it anywhere. It
> might be worthwhile to pepper more events around, but I think this
> is the biggie.
>
> Thus if people need stuff to load after the compilation, they can
> create a script called _Events_Compile_End.groovy and that will load
> the extra event triggers into the namespace.
Is there no way to run a compile after the plugin is installed and
after that execute the plugin's relevant scripts with the libs and
classes from the plugin available?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email