source: branches/features/purchaseOrders/scripts/_Events.groovy @ 932

Last change on this file since 932 was 930, checked in by gav, 14 years ago

Prevent interactive requests when a plugin is installed/un-installed.

File size: 653 bytes
RevLine 
[522]1
[526]2includeTargets << new File("${basedir}/scripts/_UpdateRev.groovy")
3
[522]4eventCompileStart = { msg ->
[528]5    if(System.getProperty("grails.env") != "test") {
6        println "Compile started, checking VCS Revision."
7        updateVcsRevision()
8    }
[522]9}
[930]10
11// Prevent interactive requests when a plugin is installed/un-installed.
12// http://ldaley.com/post/2616518761/disabling-grails-plugin-upgrade-confirmation
13def resolveDependenciesWasInteractive = false
14eventResolveDependenciesStart = {
15    resolveDependenciesWasInteractive = isInteractive
16    isInteractive = false
17}
18
19eventResolveDependenciesEnd = {
20    isInteractive = resolveDependenciesWasInteractive
21}
22
Note: See TracBrowser for help on using the repository browser.