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
|
Line | |
---|
1 | |
---|
2 | includeTargets << new File("${basedir}/scripts/_UpdateRev.groovy") |
---|
3 | |
---|
4 | eventCompileStart = { 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 |
---|
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.