source: trunk/grails-app/conf/BootStrap.groovy @ 227

Last change on this file since 227 was 199, checked in by gav, 15 years ago

Upgrade quartz plugin to 0.4.1 propper.
Refactor and enable quartz scheduling for recurring tasks.
Adjust svn ignores to ignore all log files.
Create a pseudo system person for automated insertions.

File size: 790 bytes
Line 
1import grails.util.GrailsUtil
2
3class BootStrap
4{
5    def createDataService
6
7    def init = { servletContext ->
8
9        log.debug "GrailsUtil.environment = ${GrailsUtil.environment}"
10
11        switch (GrailsUtil.environment)
12        {
13            case "development":
14                        createDataService.ensureSystemAndAdminAccess()
15                        createDataService.createBaseData()
16                        createDataService.createDemoData()
17                        break
18            case "test":
19                        createDataService.ensureSystemAndAdminAccess()
20                        break
21            case "production":
22                        createDataService.ensureSystemAndAdminAccess()
23                        break 
24        }
25
26    }
27
28    def destroy = {
29    }
30}
Note: See TracBrowser for help on using the repository browser.