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 | |
---|
13 | grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination |
---|
14 | grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format |
---|
15 | grails.mime.use.accept.header = false |
---|
16 | grails.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 ${} |
---|
34 | grails.views.default.codec = "none" // none, html, base64 |
---|
35 | grails.views.gsp.encoding = "UTF-8" |
---|
36 | grails.converters.encoding = "UTF-8" |
---|
37 | // enable Sitemesh preprocessing of GSP pages |
---|
38 | grails.views.gsp.sitemesh.preprocess = true |
---|
39 | // scaffolding templates configuration |
---|
40 | grails.scaffolding.templates.domainSuffix = 'Instance' |
---|
41 | |
---|
42 | // Set to false to use the new Grails 1.2 JSONBuilder in the render method |
---|
43 | grails.json.legacy.builder = false |
---|
44 | // enabled native2ascii conversion of i18n properties files |
---|
45 | grails.enable.native2ascii = true |
---|
46 | // whether to install the java.util.logging bridge for sl4j. Disable for AppEngine! |
---|
47 | grails.logging.jul.usebridge = true |
---|
48 | // packages to include in Spring bean scanning |
---|
49 | grails.spring.bean.packages = [] |
---|
50 | |
---|
51 | // request parameters to mask when logging exceptions |
---|
52 | grails.exceptionresolver.params.exclude = ['password'] |
---|
53 | |
---|
54 | // set per-environment serverURL stem for creating absolute links |
---|
55 | environments { |
---|
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 |
---|
69 | log4j = { |
---|
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 | } |
---|