root / web-presentation / trunk / eneraptor-web-presentation / grails-app / conf / Config.groovy @ 90
History | View | Annotate | Download (3.54 KB)
1 | 86 | alexbesir | // 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 | // set per-environment serverURL stem for creating absolute links
|
||
52 | environments { |
||
53 | production { |
||
54 | grails.serverURL = "http://www.changeme.com"
|
||
55 | } |
||
56 | development { |
||
57 | grails.serverURL = "http://localhost:8080/${appName}"
|
||
58 | } |
||
59 | test { |
||
60 | grails.serverURL = "http://localhost:8080/${appName}"
|
||
61 | } |
||
62 | |||
63 | } |
||
64 | |||
65 | // log4j configuration
|
||
66 | log4j = { |
||
67 | // Example of changing the log pattern for the default console
|
||
68 | // appender:
|
||
69 | //
|
||
70 | //appenders {
|
||
71 | // console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
|
||
72 | //}
|
||
73 | |||
74 | error 'org.codehaus.groovy.grails.web.servlet', // controllers |
||
75 | 'org.codehaus.groovy.grails.web.pages', // GSP |
||
76 | 'org.codehaus.groovy.grails.web.sitemesh', // layouts |
||
77 | 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping |
||
78 | 'org.codehaus.groovy.grails.web.mapping', // URL mapping |
||
79 | 'org.codehaus.groovy.grails.commons', // core / classloading |
||
80 | 'org.codehaus.groovy.grails.plugins', // plugins |
||
81 | 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration |
||
82 | 'org.springframework',
|
||
83 | 'org.hibernate',
|
||
84 | 'net.sf.ehcache.hibernate'
|
||
85 | |||
86 | warn 'org.mortbay.log'
|
||
87 | } |