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

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

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

File size: 653 bytes
Line 
1
2includeTargets << new File("${basedir}/scripts/_UpdateRev.groovy")
3
4eventCompileStart = { msg ->
5    if(System.getProperty("grails.env") != "test") {
6        println "Compile started, checking VCS Revision."
7        updateVcsRevision()
8    }
9}
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.