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
+
14
+ grails. project. groupId = appName // change this to alter the default package name and Maven publishing destination
15
+ grails. mime. file. extensions = true // enables the parsing of file extensions from URLs into the request format
16
+ grails. mime. use. accept. header = false
17
+ grails. mime. types = [ html : [' text/html' ,' application/xhtml+xml' ],
18
+ xml : [' text/xml' , ' application/xml' ],
19
+ text : ' text/plain' ,
20
+ js : ' text/javascript' ,
21
+ rss : ' application/rss+xml' ,
22
+ atom : ' application/atom+xml' ,
23
+ css : ' text/css' ,
24
+ csv : ' text/csv' ,
25
+ all : ' */*' ,
26
+ json : [' application/json' ,' text/json' ],
27
+ form : ' application/x-www-form-urlencoded' ,
28
+ multipartForm : ' multipart/form-data'
29
+ ]
30
+
31
+ // URL Mapping Cache Max Size, defaults to 5000
32
+ // grails.urlmapping.cache.maxsize = 1000
33
+
34
+ // What URL patterns should be processed by the resources plugin
35
+ grails. resources. adhoc. patterns = [' /images/*' , ' /css/*' , ' /js/*' , ' /plugins/*' ]
36
+
37
+
38
+ // The default codec used to encode data with ${}
39
+ grails. views. default. codec = " none" // none, html, base64
40
+ grails. views. gsp. encoding = " UTF-8"
41
+ grails. converters. encoding = " UTF-8"
42
+ // enable Sitemesh preprocessing of GSP pages
43
+ grails. views. gsp. sitemesh. preprocess = true
44
+ // scaffolding templates configuration
45
+ grails. scaffolding. templates. domainSuffix = ' Instance'
46
+
47
+ // Set to false to use the new Grails 1.2 JSONBuilder in the render method
48
+ grails. json. legacy. builder = false
49
+ // enabled native2ascii conversion of i18n properties files
50
+ grails. enable. native2ascii = true
51
+ // packages to include in Spring bean scanning
52
+ grails. spring. bean. packages = []
53
+ // whether to disable processing of multi part requests
54
+ grails. web. disable. multipart= false
55
+
56
+ // request parameters to mask when logging exceptions
57
+ grails. exceptionresolver. params. exclude = [' password' ]
58
+
59
+ // set per-environment serverURL stem for creating absolute links
60
+ environments {
61
+ development {
62
+ grails. logging. jul. usebridge = true
63
+ }
64
+ production {
65
+ grails. logging. jul. usebridge = false
66
+ grails. serverURL = " http://www.changeme.com"
67
+ }
68
+ }
69
+
70
+ // log4j configuration
71
+ log4j = {
72
+ // Example of changing the log pattern for the default console
73
+ // appender:
74
+ //
75
+ // appenders {
76
+ // console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
77
+ // }
78
+
79
+ error ' org.codehaus.groovy.grails.web.servlet' , // controllers
80
+ ' org.codehaus.groovy.grails.web.pages' , // GSP
81
+ ' org.codehaus.groovy.grails.web.sitemesh' , // layouts
82
+ ' org.codehaus.groovy.grails.web.mapping.filter' , // URL mapping
83
+ ' org.codehaus.groovy.grails.web.mapping' , // URL mapping
84
+ ' org.codehaus.groovy.grails.commons' , // core / classloading
85
+ ' org.codehaus.groovy.grails.plugins' , // plugins
86
+ ' org.codehaus.groovy.grails.orm.hibernate' , // hibernate integration
87
+ ' org.springframework' ,
88
+ ' org.hibernate' ,
89
+ ' net.sf.ehcache.hibernate'
90
+ }
0 commit comments