[766] | 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 | // The default codec used to encode data with ${} |
---|
| 30 | grails.views.default.codec="none" // none, html, base64 |
---|
| 31 | grails.views.gsp.encoding="UTF-8" |
---|
| 32 | grails.converters.encoding="UTF-8" |
---|
| 33 | // enable Sitemesh preprocessing of GSP pages |
---|
| 34 | grails.views.gsp.sitemesh.preprocess = true |
---|
| 35 | // scaffolding templates configuration |
---|
| 36 | grails.scaffolding.templates.domainSuffix = 'Instance' |
---|
| 37 | |
---|
| 38 | // Set to false to use the new Grails 1.2 JSONBuilder in the render method |
---|
| 39 | grails.json.legacy.builder=false |
---|
| 40 | // enabled native2ascii conversion of i18n properties files |
---|
| 41 | grails.enable.native2ascii = true |
---|
| 42 | // whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine! |
---|
| 43 | grails.logging.jul.usebridge = true |
---|
| 44 | // packages to include in Spring bean scanning |
---|
| 45 | grails.spring.bean.packages = [] |
---|
| 46 | |
---|
| 47 | // set per-environment serverURL stem for creating absolute links |
---|
| 48 | environments { |
---|
| 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 |
---|
| 62 | log4j = { |
---|
| 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 | |
---|