grails/grails-core — pull request #257 by dan-woods (2012-08-29 20:57:34+00:00)
Title: Configurable Reloading Behavior

This commit allows for reloading behavior to be configured from grails-app/conf/Config.groovy. By configuring the directives grails.reload.excludes and grails.reload.includes with a list of class names (Strings) that are to be excluded from reloading behavior or included in reloading behavior accordingly. If the grails.reload.includes list is configured, only the configured classes will be candidates for reloading. The default behavior will be to reload all source classes. The scope of the configuration is limited to project source files -- plugins will not be affected by this behavior. Spock tests are provided to validate project source file reloading behavior. This commit is derived from the JIRA conversation here.

This commit also starts the pluginScanner (which activates the GrailsProjectWatcher) from the new RunApp invocation, and provides a default value of true to the grails.reload.enabled system variable when the RunApp script is executed.