Guest User

Untitled

a guest
Apr 23rd, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 4.36 KB | None | 0 0
  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.         all: '*/*',
  25.         json: ['application/json', 'text/json'],
  26.         form: 'application/x-www-form-urlencoded',
  27.         multipartForm: 'multipart/form-data',
  28.         csv: 'text/csv',
  29.         pdf: 'application/pdf',
  30.         rtf: 'application/rtf',
  31.         excel: 'application/vnd.ms-excel'
  32. ]
  33.  
  34. // URL Mapping Cache Max Size, defaults to 5000
  35. //grails.urlmapping.cache.maxsize = 1000
  36.  
  37. // What URL patterns should be processed by the resources plugin
  38. grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*']
  39.  
  40. // The default codec used to encode data with ${}
  41. grails.views.default.codec = "none" // none, html, base64
  42. grails.views.gsp.encoding = "UTF-8"
  43. grails.converters.encoding = "UTF-8"
  44. // enable Sitemesh preprocessing of GSP pages
  45. grails.views.gsp.sitemesh.preprocess = true
  46. // scaffolding templates configuration
  47. grails.scaffolding.templates.domainSuffix = 'Instance'
  48.  
  49. // Set to false to use the new Grails 1.2 JSONBuilder in the render method
  50. grails.json.legacy.builder = false
  51. // enabled native2ascii conversion of i18n properties files
  52. grails.enable.native2ascii = true
  53. // packages to include in Spring bean scanning
  54. grails.spring.bean.packages = []
  55. // whether to disable processing of multi part requests
  56. grails.web.disable.multipart = false
  57.  
  58. // request parameters to mask when logging exceptions
  59. grails.exceptionresolver.params.exclude = ['password']
  60.  
  61. // enable query caching by default
  62. grails.hibernate.cache.queries = true
  63.  
  64. // set per-environment serverURL stem for creating absolute links
  65. environments {
  66.     development {
  67.         grails.logging.jul.usebridge = true
  68.     }
  69.     production {
  70.         grails.logging.jul.usebridge = false
  71.         // TODO: grails.serverURL = "http://www.changeme.com"
  72.     }
  73. }
  74.  
  75. // log4j configuration
  76. log4j = {
  77.     // Example of changing the log pattern for the default console
  78.     // appender:
  79.     //
  80.     //appenders {
  81.     //    console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
  82.     //}
  83.  
  84.     error 'org.codehaus.groovy.grails.web.servlet',  //  controllers
  85.             'org.codehaus.groovy.grails.web.pages', //  GSP
  86.             'org.codehaus.groovy.grails.web.sitemesh', //  layouts
  87.             'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
  88.             'org.codehaus.groovy.grails.web.mapping', // URL mapping
  89.             'org.codehaus.groovy.grails.commons', // core / classloading
  90.             'org.codehaus.groovy.grails.plugins', // plugins
  91.             'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
  92.             'org.springframework',
  93.             'org.hibernate',
  94.             'net.sf.ehcache.hibernate'
  95. }
  96.  
  97. simpleCaptcha {
  98.     length = 4
  99.     chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
  100. }
  101.  
  102. grails {
  103.    mail {
  104.       host = "smtp.correo.yahoo.es"
  105.       port = 587
  106.       username = "[email protected]"
  107.       password = "sman12jkt"
  108.       props = [ "mail.smtp.auth":"true",
  109.                        "mail.smtp.socketFactory.port":"587",
  110.                        "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
  111.                        "mail.smtp.socketFactory.fallback":"false",  
  112.                        "mail.smtp.starttls.enable":"true"]
  113.    }
  114. }
Advertisement
Add Comment
Please, Sign In to add comment