source: branches/util-apps/DomainUtil/grails-app/conf/Config.groovy @ 907

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

Upgrade branches/util-apps/DomainUtil to Grails-1.3.7.

File size: 3.6 KB
Line 
1// locations to search for config files that get merged into the main config
2// config files can either be Java properties files or ConfigSlurper scripts
3
4// grails.config.locations = [ "classpath:${appName}-config.properties",
5//                             "classpath:${appName}-config.groovy",
6//                             "file:${userHome}/.grails/${appName}-config.properties",
7//                             "file:${userHome}/.grails/${appName}-config.groovy"]
8
9// if(System.properties["${appName}.config.location"]) {
10//    grails.config.locations << "file:" + System.properties["${appName}.config.location"]
11// }
12
13grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
14grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
15grails.mime.use.accept.header = false
16grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
17                      xml: ['text/xml', 'application/xml'],
18                      text: 'text/plain',
19                      js: 'text/javascript',
20                      rss: 'application/rss+xml',
21                      atom: 'application/atom+xml',
22                      css: 'text/css',
23                      csv: 'text/csv',
24                      all: '*/*',
25                      json: ['application/json','text/json'],
26                      form: 'application/x-www-form-urlencoded',
27                      multipartForm: 'multipart/form-data'
28                    ]
29
30// URL Mapping Cache Max Size, defaults to 5000
31//grails.urlmapping.cache.maxsize = 1000
32
33// The default codec used to encode data with ${}
34grails.views.default.codec = "none" // none, html, base64
35grails.views.gsp.encoding = "UTF-8"
36grails.converters.encoding = "UTF-8"
37// enable Sitemesh preprocessing of GSP pages
38grails.views.gsp.sitemesh.preprocess = true
39// scaffolding templates configuration
40grails.scaffolding.templates.domainSuffix = 'Instance'
41
42// Set to false to use the new Grails 1.2 JSONBuilder in the render method
43grails.json.legacy.builder = false
44// enabled native2ascii conversion of i18n properties files
45grails.enable.native2ascii = true
46// whether to install the java.util.logging bridge for sl4j. Disable for AppEngine!
47grails.logging.jul.usebridge = true
48// packages to include in Spring bean scanning
49grails.spring.bean.packages = []
50
51// request parameters to mask when logging exceptions
52grails.exceptionresolver.params.exclude = ['password']
53
54// set per-environment serverURL stem for creating absolute links
55environments {
56    production {
57        grails.serverURL = "http://www.changeme.com"
58    }
59    development {
60        grails.serverURL = "http://localhost:8080/${appName}"
61    }
62    test {
63        grails.serverURL = "http://localhost:8080/${appName}"
64    }
65
66}
67
68// log4j configuration
69log4j = {
70    // Example of changing the log pattern for the default console
71    // appender:
72    //
73    //appenders {
74    //    console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
75    //}
76
77    error  'org.codehaus.groovy.grails.web.servlet',  //  controllers
78           'org.codehaus.groovy.grails.web.pages', //  GSP
79           'org.codehaus.groovy.grails.web.sitemesh', //  layouts
80           'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
81           'org.codehaus.groovy.grails.web.mapping', // URL mapping
82           'org.codehaus.groovy.grails.commons', // core / classloading
83           'org.codehaus.groovy.grails.plugins', // plugins
84           'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
85           'org.springframework',
86           'org.hibernate',
87           'net.sf.ehcache.hibernate'
88
89    warn   'org.mortbay.log'
90}
Note: See TracBrowser for help on using the repository browser.