Changeset 907 for branches


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
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/util-apps/DomainUtil/application.properties

    r766 r907  
    11#Grails Metadata file
    2 #Fri Jan 28 09:40:40 EST 2011
    3 app.grails.version=1.2.2
     2#Fri Apr 22 21:13:22 EST 2011
     3app.grails.version=1.3.7
    44app.name=DomainUtil
    55app.servlet.version=2.4
    66app.version=0.1
    7 plugins.hibernate=1.2.2
    8 plugins.tomcat=1.2.2
     7plugins.hibernate=1.3.7
     8plugins.tomcat=1.3.7
  • 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}
  • branches/util-apps/DomainUtil/grails-app/views/index.gsp

    r766 r907  
    22    <head>
    33        <title>Welcome to Grails</title>
    4                 <meta name="layout" content="main" />
    5                 <style type="text/css" media="screen">
     4        <meta name="layout" content="main" />
     5        <style type="text/css" media="screen">
    66
    7                         #nav {
    8                                 margin-top:20px;
    9                                 margin-left:30px;
    10                                 width:228px;
    11                                 float:left;
     7        #nav {
     8            margin-top:20px;
     9            margin-left:30px;
     10            width:228px;
     11            float:left;
    1212
    13                         }
    14                         .homePagePanel * {
    15                                 margin:0px;
    16                         }
    17                         .homePagePanel .panelBody ul {
    18                                 list-style-type:none;
    19                                 margin-bottom:10px;
    20                         }
    21                         .homePagePanel .panelBody h1 {
    22                                 text-transform:uppercase;
    23                                 font-size:1.1em;
    24                                 margin-bottom:10px;
    25                         }
    26                         .homePagePanel .panelBody {
    27                             background: url(images/leftnav_midstretch.png) repeat-y top;
    28                                 margin:0px;
    29                                 padding:15px;
    30                         }
    31                         .homePagePanel .panelBtm {
    32                             background: url(images/leftnav_btm.png) no-repeat top;
    33                                 height:20px;
    34                                 margin:0px;
    35                         }
     13        }
     14        .homePagePanel * {
     15            margin:0px;
     16        }
     17        .homePagePanel .panelBody ul {
     18            list-style-type:none;
     19            margin-bottom:10px;
     20        }
     21        .homePagePanel .panelBody h1 {
     22            text-transform:uppercase;
     23            font-size:1.1em;
     24            margin-bottom:10px;
     25        }
     26        .homePagePanel .panelBody {
     27            background: url(images/leftnav_midstretch.png) repeat-y top;
     28            margin:0px;
     29            padding:15px;
     30        }
     31        .homePagePanel .panelBtm {
     32            background: url(images/leftnav_btm.png) no-repeat top;
     33            height:20px;
     34            margin:0px;
     35        }
    3636
    37                         .homePagePanel .panelTop {
    38                             background: url(images/leftnav_top.png) no-repeat top;
    39                                 height:11px;
    40                                 margin:0px;
    41                         }
    42                         h2 {
    43                                 margin-top:15px;
    44                                 margin-bottom:15px;
    45                                 font-size:1.2em;
    46                         }
    47                         #pageBody {
    48                                 margin-left:280px;
    49                                 margin-right:20px;
    50                         }
    51                 </style>
     37        .homePagePanel .panelTop {
     38            background: url(images/leftnav_top.png) no-repeat top;
     39            height:11px;
     40            margin:0px;
     41        }
     42        h2 {
     43            margin-top:15px;
     44            margin-bottom:15px;
     45            font-size:1.2em;
     46        }
     47        #pageBody {
     48            margin-left:280px;
     49            margin-right:20px;
     50        }
     51        </style>
    5252    </head>
    5353    <body>
    54                 <div id="nav">
    55                         <div class="homePagePanel">
    56                                 <div class="panelTop">
     54        <div id="nav">
     55            <div class="homePagePanel">
     56                <div class="panelTop"></div>
     57                <div class="panelBody">
     58                    <h1>Application Status</h1>
     59                    <ul>
     60                        <li>App version: <g:meta name="app.version"></g:meta></li>
     61                        <li>Grails version: <g:meta name="app.grails.version"></g:meta></li>
     62                        <li>Groovy version: ${org.codehaus.groovy.runtime.InvokerHelper.getVersion()}</li>
     63                        <li>JVM version: ${System.getProperty('java.version')}</li>
     64                        <li>Controllers: ${grailsApplication.controllerClasses.size()}</li>
     65                        <li>Domains: ${grailsApplication.domainClasses.size()}</li>
     66                        <li>Services: ${grailsApplication.serviceClasses.size()}</li>
     67                        <li>Tag Libraries: ${grailsApplication.tagLibClasses.size()}</li>
     68                    </ul>
     69                    <h1>Installed Plugins</h1>
     70                    <ul>
     71                        <g:set var="pluginManager"
     72                               value="${applicationContext.getBean('pluginManager')}"></g:set>
    5773
    58                                 </div>
    59                                 <div class="panelBody">
    60                                         <h1>Application Status</h1>
    61                                         <ul>
    62                                                 <li>App version: <g:meta name="app.version"></g:meta></li>
    63                                                 <li>Grails version: <g:meta name="app.grails.version"></g:meta></li>
    64                                                 <li>JVM version: ${System.getProperty('java.version')}</li>
    65                                                 <li>Controllers: ${grailsApplication.controllerClasses.size()}</li>
    66                                                 <li>Domains: ${grailsApplication.domainClasses.size()}</li>
    67                                                 <li>Services: ${grailsApplication.serviceClasses.size()}</li>
    68                                                 <li>Tag Libraries: ${grailsApplication.tagLibClasses.size()}</li>
    69                                         </ul>
    70                                         <h1>Installed Plugins</h1>
    71                                         <ul>
    72                                                 <g:set var="pluginManager"
    73                                                        value="${applicationContext.getBean('pluginManager')}"></g:set>
     74                        <g:each var="plugin" in="${pluginManager.allPlugins}">
     75                            <li>${plugin.name} - ${plugin.version}</li>
     76                        </g:each>
    7477
    75                                                 <g:each var="plugin" in="${pluginManager.allPlugins}">
    76                                                         <li>${plugin.name} - ${plugin.version}</li>
    77                                                 </g:each>
     78                    </ul>
     79                </div>
     80                <div class="panelBtm"></div>
     81            </div>
     82        </div>
     83        <div id="pageBody">
     84            <h1>Welcome to Grails</h1>
     85            <p>Congratulations, you have successfully started your first Grails application! At the moment
     86            this is the default page, feel free to modify it to either redirect to a controller or display whatever
     87            content you may choose. Below is a list of controllers that are currently deployed in this application,
     88            click on each to execute its default action:</p>
    7889
    79                                         </ul>
    80                                 </div>
    81                                 <div class="panelBtm">
    82                                 </div>
    83                         </div>
    84 
    85 
    86                 </div>
    87                 <div id="pageBody">
    88                 <h1>Welcome to Grails</h1>
    89                 <p>Congratulations, you have successfully started your first Grails application! At the moment
    90                 this is the default page, feel free to modify it to either redirect to a controller or display whatever
    91                 content you may choose. Below is a list of controllers that are currently deployed in this application,
    92                 click on each to execute its default action:</p>
    93 
    94                 <div id="controllerList" class="dialog">
    95                                 <h2>Available Controllers:</h2>
    96                     <ul>
    97                       <g:each var="c" in="${grailsApplication.controllerClasses}">
    98                             <li class="controller"><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li>
    99                       </g:each>
    100                     </ul>
    101                 </div>
    102                 </div>
     90            <div id="controllerList" class="dialog">
     91                <h2>Available Controllers:</h2>
     92                <ul>
     93                    <g:each var="c" in="${grailsApplication.controllerClasses.sort { it.fullName } }">
     94                        <li class="controller"><g:link controller="${c.logicalPropertyName}">${c.fullName}</g:link></li>
     95                    </g:each>
     96                </ul>
     97            </div>
     98        </div>
    10399    </body>
    104100</html>
  • branches/util-apps/DomainUtil/grails-app/views/layouts/main.gsp

    r766 r907  
     1<!DOCTYPE html>
    12<html>
    23    <head>
     
    910    <body>
    1011        <div id="spinner" class="spinner" style="display:none;">
    11             <img src="${resource(dir:'images',file:'spinner.gif')}" alt="Spinner" />
     12            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
    1213        </div>
    13         <div id="grailsLogo" class="logo"><a href="http://grails.org"><img src="${resource(dir:'images',file:'grails_logo.png')}" alt="Grails" border="0" /></a></div>
     14        <div id="grailsLogo"><a href="http://grails.org"><img src="${resource(dir:'images',file:'grails_logo.png')}" alt="Grails" border="0" /></a></div>
    1415        <g:layoutBody />
    1516    </body>
  • branches/util-apps/DomainUtil/web-app/WEB-INF/tld/grails.tld

    r766 r907  
    55            http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    66        version="2.0">
    7     <description>The Grails (Groovy on Rails) custom tag library</description>
     7    <description>The Grails custom tag library</description>
    88    <tlib-version>0.2</tlib-version>
    99    <short-name>grails</short-name>
    1010    <uri>http://grails.codehaus.org/tags</uri>
    11 
    1211
    1312    <tag>
  • branches/util-apps/DomainUtil/web-app/css/main.css

    r766 r907  
    130130    border: 1px solid red;
    131131}
     132td.errors textarea {
     133    border: 1px solid red;
     134}
    132135
    133136/* TABLES */
Note: See TracChangeset for help on using the changeset viewer.