root/trunk/grails-app/conf/Config.groovy @ 86

Revision 86, 3.3 KB (checked in by duh, 4 years ago)

- proof of concept AJAX-ified Grails WebFlow? based wizard
- @see  http://localhost:8080/gscf/wizard
- defined graphvix configuration for use with the class diagram plugin

  • Property svn:keywords set to Date Author Rev
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// }
12grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
13grails.mime.use.accept.header = false
14grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
15                      xml: ['text/xml', 'application/xml'],
16                      text: 'text/plain',
17                      js: 'text/javascript',
18                      rss: 'application/rss+xml',
19                      atom: 'application/atom+xml',
20                      css: 'text/css',
21                      csv: 'text/csv',
22                      all: '*/*',
23                      json: ['application/json','text/json'],
24                      form: 'application/x-www-form-urlencoded',
25                      multipartForm: 'multipart/form-data'
26                    ]
27// The default codec used to encode data with ${}
28grails.views.default.codec="none" // none, html, base64
29grails.views.gsp.encoding="UTF-8"
30grails.converters.encoding="UTF-8"
31
32// enabled native2ascii conversion of i18n properties files
33grails.enable.native2ascii = true
34
35// set per-environment serverURL stem for creating absolute links
36environments {
37    production {
38        grails.serverURL = "http://www.changeme.com"
39    }
40    development {
41        grails.serverURL = "http://localhost:8080/${appName}"
42    }
43    test {
44        grails.serverURL = "http://localhost:8080/${appName}"
45    }
46
47}
48
49// log4j configuration
50log4j = {
51    // Example of changing the log pattern for the default console
52    // appender:
53    //
54    //appenders {
55    //    console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
56    //}
57
58    error  'org.codehaus.groovy.grails.web.servlet',  //  controllers
59               'org.codehaus.groovy.grails.web.pages', //  GSP
60               'org.codehaus.groovy.grails.web.sitemesh', //  layouts
61               'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
62               'org.codehaus.groovy.grails.web.mapping', // URL mapping
63               'org.codehaus.groovy.grails.commons', // core / classloading
64               'org.codehaus.groovy.grails.plugins', // plugins
65               'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
66               'org.springframework',
67               'org.hibernate'
68
69    warn   'org.mortbay.log'
70}
71
72graphviz {
73    // graphviz installation path is dependent on OS
74    // (requirement for class diagram plugin)
75        switch (System.properties["os.name"]) {
76            case "Mac OS X":
77                // define mac path to Graphviz dot executable
78                // (install using macports: sudo port install graphviz)
79                dot.executable = "/opt/local/bin/dot"
80                break
81            default:
82                // assume the linux default path
83                dot.executable = "/usr/bin/dot"
84        }
85}
Note: See TracBrowser for help on using the browser.