Hi,
This may look a little bit old school but I typically use a shell
terminal to run Grails scripts, if necessary.
If you are working on a unix platform (hope you are :)), then you can
use this bash auto-completion script for the grails and grails-debug
command:
--- Start of bash script -----
#!/bin/bash
grails help | grep 'grails ' | awk '{ print $2 }' > ~/.grails/
grails.completion
_grails() {
COMPREPLY=()
local cur="${COMP_WORDS[COMP_CWORD]}"
local options=`cat ~/.grails/grails.completion`
COMPREPLY=($(compgen -W "${options}" ${cur}))
}
complete -F _grails grails
complete -F _grails grails-debug
--- End of bash script -----
Enter grails or grails-debug and tab away :)
Regarding the painful restart of Grails each time that a domain class
is updated, this is weird. Are you saying that the full grails Web-app
is restarted? I mean the JVM is terminated and run-app is re-executed
by NB?
Personally, I
grails-debug run-app
and attach the Eclipse debugger and changes (controllers, domains or
services) are relatively fast - at least this is not painful.
Thanks,
Gianny