Changeset 930


Ignore:
Timestamp:
May 18, 2011, 2:59:58 PM (14 years ago)
Author:
gav
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/purchaseOrders/scripts/_Events.groovy

    r528 r930  
    88    }
    99}
     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 TracChangeset for help on using the changeset viewer.