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

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

Add branches/util-apps/DomainUtil application.

File size: 3.4 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// The default codec used to encode data with ${}
30grails.views.default.codec="none" // none, html, base64
31grails.views.gsp.encoding="UTF-8"
32grails.converters.encoding="UTF-8"
33// enable Sitemesh preprocessing of GSP pages
34grails.views.gsp.sitemesh.preprocess = true
35// scaffolding templates configuration
36grails.scaffolding.templates.domainSuffix = 'Instance'
37
38// Set to false to use the new Grails 1.2 JSONBuilder in the render method
39grails.json.legacy.builder=false
40// enabled native2ascii conversion of i18n properties files
41grails.enable.native2ascii = true
42// whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine!
43grails.logging.jul.usebridge = true
44// packages to include in Spring bean scanning
45grails.spring.bean.packages = []
46
47// set per-environment serverURL stem for creating absolute links
48environments {
49    production {
50        grails.serverURL = "http://www.changeme.com"
51    }
52    development {
53        grails.serverURL = "http://localhost:8080/${appName}"
54    }
55    test {
56        grails.serverURL = "http://localhost:8080/${appName}"
57    }
58
59}
60
61// log4j configuration
62log4j = {
63    // Example of changing the log pattern for the default console
64    // appender:
65    //
66    //appenders {
67    //    console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
68    //}
69
70
71    error  'org.codehaus.groovy.grails.web.servlet',  //  controllers
72               'org.codehaus.groovy.grails.web.pages', //  GSP
73               'org.codehaus.groovy.grails.web.sitemesh', //  layouts
74               'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
75               'org.codehaus.groovy.grails.web.mapping', // URL mapping
76               'org.codehaus.groovy.grails.commons', // core / classloading
77               'org.codehaus.groovy.grails.plugins', // plugins
78               'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
79               'org.springframework',
80               'org.hibernate',
81           'net.sf.ehcache.hibernate'
82
83    warn   'org.mortbay.log'
84}
85
86
87     
Note: See TracBrowser for help on using the repository browser.