Changeset 907 for branches/util-apps/DomainUtil/grails-app
- Timestamp:
- Apr 28, 2011, 2:31:56 PM (14 years ago)
- Location:
- branches/util-apps/DomainUtil/grails-app
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/util-apps/DomainUtil/grails-app/conf/BootStrap.groovy
r766 r907 1 class BootStrap 2 { 1 class BootStrap { 3 2 4 3 def init = { servletContext -> 5 } // init 6 4 } 7 5 def destroy = { 8 6 } 9 10 } // end class 7 } -
branches/util-apps/DomainUtil/grails-app/conf/BuildConfig.groovy
r766 r907 1 1 grails.project.class.dir = "target/classes" 2 2 grails.project.test.class.dir = "target/test-classes" 3 grails.project.test.reports.dir 3 grails.project.test.reports.dir = "target/test-reports" 4 4 //grails.project.war.file = "target/${appName}-${appVersion}.war" 5 5 grails.project.dependency.resolution = { 6 6 // inherit Grails' default dependencies 7 inherits( "global") {7 inherits("global") { 8 8 // uncomment to disable ehcache 9 9 // excludes 'ehcache' 10 10 } 11 11 log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' 12 repositories { 12 repositories { 13 13 grailsPlugins() 14 14 grailsHome() 15 grailsCentral() 15 16 16 17 // uncomment the below to enable remote dependency resolution … … 26 27 // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. 27 28 28 // runtime 'mysql:mysql-connector-java:5.1. 5'29 // runtime 'mysql:mysql-connector-java:5.1.13' 29 30 } 30 31 31 } -
branches/util-apps/DomainUtil/grails-app/conf/Config.groovy
r766 r907 27 27 multipartForm: 'multipart/form-data' 28 28 ] 29 30 // URL Mapping Cache Max Size, defaults to 5000 31 //grails.urlmapping.cache.maxsize = 1000 32 29 33 // The default codec used to encode data with ${} 30 grails.views.default.codec ="none" // none, html, base6431 grails.views.gsp.encoding ="UTF-8"32 grails.converters.encoding ="UTF-8"34 grails.views.default.codec = "none" // none, html, base64 35 grails.views.gsp.encoding = "UTF-8" 36 grails.converters.encoding = "UTF-8" 33 37 // enable Sitemesh preprocessing of GSP pages 34 38 grails.views.gsp.sitemesh.preprocess = true … … 37 41 38 42 // Set to false to use the new Grails 1.2 JSONBuilder in the render method 39 grails.json.legacy.builder =false43 grails.json.legacy.builder = false 40 44 // enabled native2ascii conversion of i18n properties files 41 45 grails.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! 43 47 grails.logging.jul.usebridge = true 44 48 // packages to include in Spring bean scanning 45 49 grails.spring.bean.packages = [] 50 51 // request parameters to mask when logging exceptions 52 grails.exceptionresolver.params.exclude = ['password'] 46 53 47 54 // set per-environment serverURL stem for creating absolute links … … 68 75 //} 69 76 70 71 77 error 'org.codehaus.groovy.grails.web.servlet', // controllers 72 73 74 75 76 77 78 79 80 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', 81 87 'net.sf.ehcache.hibernate' 82 88 83 89 warn 'org.mortbay.log' 84 90 } 85 86 87 -
branches/util-apps/DomainUtil/grails-app/conf/DataSource.groovy
r766 r907 1 1 dataSource { 2 3 4 5 2 pooled = true 3 driverClassName = "org.hsqldb.jdbcDriver" 4 username = "sa" 5 password = "" 6 6 } 7 7 hibernate { 8 cache.use_second_level_cache =true9 cache.use_query_cache =true10 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' 11 11 } 12 12 // environment specific settings 13 13 environments { 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 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 } 32 32 } -
branches/util-apps/DomainUtil/grails-app/conf/UrlMappings.groovy
r766 r907 1 1 class 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') 10 12 } 11 13 } -
branches/util-apps/DomainUtil/grails-app/conf/spring/resources.groovy
r766 r907 1 1 // Place your Spring DSL code here 2 2 beans = { 3 4 3 } -
branches/util-apps/DomainUtil/grails-app/views/index.gsp
r766 r907 2 2 <head> 3 3 <title>Welcome to Grails</title> 4 5 4 <meta name="layout" content="main" /> 5 <style type="text/css" media="screen"> 6 6 7 8 9 10 11 7 #nav { 8 margin-top:20px; 9 margin-left:30px; 10 width:228px; 11 float:left; 12 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 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 } 36 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 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> 52 52 </head> 53 53 <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> 57 73 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> 74 77 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> 78 89 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> 103 99 </body> 104 100 </html> -
branches/util-apps/DomainUtil/grails-app/views/layouts/main.gsp
r766 r907 1 <!DOCTYPE html> 1 2 <html> 2 3 <head> … … 9 10 <body> 10 11 <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...')}" /> 12 13 </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> 14 15 <g:layoutBody /> 15 16 </body>
Note: See TracChangeset
for help on using the changeset viewer.