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
|
Rev | Line | |
---|
[522] | 1 | |
---|
[526] | 2 | includeTargets << new File("${basedir}/scripts/_UpdateRev.groovy") |
---|
| 3 | |
---|
[522] | 4 | eventCompileStart = { 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 |
---|
| 13 | def resolveDependenciesWasInteractive = false |
---|
| 14 | eventResolveDependenciesStart = { |
---|
| 15 | resolveDependenciesWasInteractive = isInteractive |
---|
| 16 | isInteractive = false |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | eventResolveDependenciesEnd = { |
---|
| 20 | isInteractive = resolveDependenciesWasInteractive |
---|
| 21 | } |
---|
| 22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.