Ignore:
Timestamp:
Apr 28, 2011, 2:31:56 PM (13 years ago)
Author:
gav
Message:

Upgrade branches/util-apps/DomainUtil to Grails-1.3.7.

Location:
branches/util-apps/DomainUtil/grails-app/conf
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/util-apps/DomainUtil/grails-app/conf/BootStrap.groovy

    r766 r907  
    1 class BootStrap
    2 {
     1class BootStrap {
    32
    43    def init = { servletContext ->
    5     } // init
    6 
     4    }
    75    def destroy = {
    86    }
    9 
    10 } // end class
     7}
  • branches/util-apps/DomainUtil/grails-app/conf/BuildConfig.groovy

    r766 r907  
    11grails.project.class.dir = "target/classes"
    22grails.project.test.class.dir = "target/test-classes"
    3 grails.project.test.reports.dir = "target/test-reports"
     3grails.project.test.reports.dir = "target/test-reports"
    44//grails.project.war.file = "target/${appName}-${appVersion}.war"
    55grails.project.dependency.resolution = {
    66    // inherit Grails' default dependencies
    7     inherits( "global" ) {
     7    inherits("global") {
    88        // uncomment to disable ehcache
    99        // excludes 'ehcache'
    1010    }
    1111    log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    12     repositories {       
     12    repositories {
    1313        grailsPlugins()
    1414        grailsHome()
     15        grailsCentral()
    1516
    1617        // uncomment the below to enable remote dependency resolution
     
    2627        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
    2728
    28         // runtime 'mysql:mysql-connector-java:5.1.5'
     29        // runtime 'mysql:mysql-connector-java:5.1.13'
    2930    }
    30 
    3131}
  • branches/util-apps/DomainUtil/grails-app/conf/Config.groovy

    r766 r907  
    2727                      multipartForm: 'multipart/form-data'
    2828                    ]
     29
     30// URL Mapping Cache Max Size, defaults to 5000
     31//grails.urlmapping.cache.maxsize = 1000
     32
    2933// 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"
     34grails.views.default.codec = "none" // none, html, base64
     35grails.views.gsp.encoding = "UTF-8"
     36grails.converters.encoding = "UTF-8"
    3337// enable Sitemesh preprocessing of GSP pages
    3438grails.views.gsp.sitemesh.preprocess = true
     
    3741
    3842// Set to false to use the new Grails 1.2 JSONBuilder in the render method
    39 grails.json.legacy.builder=false
     43grails.json.legacy.builder = false
    4044// enabled native2ascii conversion of i18n properties files
    4145grails.enable.native2ascii = true
    42 // whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine!
     46// whether to install the java.util.logging bridge for sl4j. Disable for AppEngine!
    4347grails.logging.jul.usebridge = true
    4448// packages to include in Spring bean scanning
    4549grails.spring.bean.packages = []
     50
     51// request parameters to mask when logging exceptions
     52grails.exceptionresolver.params.exclude = ['password']
    4653
    4754// set per-environment serverURL stem for creating absolute links
     
    6875    //}
    6976
    70 
    7177    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',
     78           'org.codehaus.groovy.grails.web.pages', //  GSP
     79           'org.codehaus.groovy.grails.web.sitemesh', //  layouts
     80           'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
     81           'org.codehaus.groovy.grails.web.mapping', // URL mapping
     82           'org.codehaus.groovy.grails.commons', // core / classloading
     83           'org.codehaus.groovy.grails.plugins', // plugins
     84           'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
     85           'org.springframework',
     86           'org.hibernate',
    8187           'net.sf.ehcache.hibernate'
    8288
    8389    warn   'org.mortbay.log'
    8490}
    85 
    86 
    87      
  • branches/util-apps/DomainUtil/grails-app/conf/DataSource.groovy

    r766 r907  
    11dataSource {
    2         pooled = true
    3         driverClassName = "org.hsqldb.jdbcDriver"
    4         username = "sa"
    5         password = ""
     2    pooled = true
     3    driverClassName = "org.hsqldb.jdbcDriver"
     4    username = "sa"
     5    password = ""
    66}
    77hibernate {
    8     cache.use_second_level_cache=true
    9     cache.use_query_cache=true
    10     cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
     8    cache.use_second_level_cache = true
     9    cache.use_query_cache = true
     10    cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
    1111}
    1212// environment specific settings
    1313environments {
    14         development {
    15                 dataSource {
    16                         dbCreate = "create-drop" // one of 'create', 'create-drop','update'
    17                         url = "jdbc:hsqldb:mem:devDB"
    18                 }
    19         }
    20         test {
    21                 dataSource {
    22                         dbCreate = "update"
    23                         url = "jdbc:hsqldb:mem:testDb"
    24                 }
    25         }
    26         production {
    27                 dataSource {
    28                         dbCreate = "update"
    29                         url = "jdbc:hsqldb:file:prodDb;shutdown=true"
    30                 }
    31         }
     14    development {
     15        dataSource {
     16            dbCreate = "create-drop" // one of 'create', 'create-drop','update'
     17            url = "jdbc:hsqldb:mem:devDB"
     18        }
     19    }
     20    test {
     21        dataSource {
     22            dbCreate = "update"
     23            url = "jdbc:hsqldb:mem:testDb"
     24        }
     25    }
     26    production {
     27        dataSource {
     28            dbCreate = "update"
     29            url = "jdbc:hsqldb:file:prodDb;shutdown=true"
     30        }
     31    }
    3232}
  • branches/util-apps/DomainUtil/grails-app/conf/UrlMappings.groovy

    r766 r907  
    11class UrlMappings {
    2     static mappings = {
    3       "/$controller/$action?/$id?"{
    4               constraints {
    5                          // apply constraints here
    6                   }
    7           }
    8       "/"(view:"/index")
    9           "500"(view:'/error')
     2
     3        static mappings = {
     4                "/$controller/$action?/$id?"{
     5                        constraints {
     6                                // apply constraints here
     7                        }
     8                }
     9
     10                "/"(view:"/index")
     11                "500"(view:'/error')
    1012        }
    1113}
  • branches/util-apps/DomainUtil/grails-app/conf/spring/resources.groovy

    r766 r907  
    11// Place your Spring DSL code here
    22beans = {
    3    
    43}
Note: See TracChangeset for help on using the changeset viewer.