This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class UrlMappings { | |
| static mappings = { | |
| "/$controller/$action?/$id?"{ | |
| constraints { | |
| // apply constraints here | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.codehaus.groovy.runtime.StackTraceUtils; | |
| //Script para executar os testes unitários de JavaScript | |
| includeTargets << new File("${basedir}/scripts/_RunJavaScriptUnitTests.groovy") | |
| includeTargets << new File("${basedir}/scripts/_RunJavaScriptUiTests.groovy") | |
| /* | |
| * Configuração do Tomcat que é executado internamente, utilizando GZIP para JavaScript. | |
| */ | |
| eventConfigureTomcat = { tomcat -> |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2013-09-19 18:30:36,625 [http-bio-8080-exec-1] ERROR StackTrace - Full Stack Trace: | |
| groovy.lang.MissingPropertyException: No such property: org.codehaus.grails.INCLUDED_JS_LIBRARIES for class: org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper | |
| at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) | |
| at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:273) | |
| at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) | |
| at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) | |
| at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) | |
| at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) | |
| at org.codehaus.groovy.grails.web.filters.JavascriptLibraryFilters$_closure1_closure2_closure3.doCall(JavascriptLibraryFilters.groovy:27) | |
| at org.codehaus.gro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| eventConfigureTomcat = { tomcat -> | |
| tomcat.connector.setAttribute("compression", "on") | |
| tomcat.connector.setAttribute("compressableMimeType", "text/html,text/xml,text/plain,application/javascript") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| Custom model to a TreeStore. It's important to define text and qtip! | |
| */ | |
| Ext.define('MyApp.model.MyTreeModel',{ | |
| extend: 'Ext.data.Model', | |
| fields: [{ | |
| name: 'text', | |
| type: 'string' | |
| },{ | |
| name: 'leaf', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class JavascriptServiceSpec extends IntegrationSpec { | |
| static final Locale PT = new Locale("pt","BR") | |
| static final Locale EN = new Locale("en","US") | |
| def javascriptService | |
| def setup() { | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RecenteControllerSpec extends IntegrationSpec { | |
| def grailsApplication | |
| @Shared | |
| Long formId | |
| def setup() { | |
| formId = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grails.project.work.dir = 'target/work' | |
| grails.project.target.level = 1.6 | |
| grails.project.dependency.resolution = { | |
| inherits("global") { | |
| excludes 'svn' | |
| } | |
| legacyResolve false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Category { | |
| String name | |
| String description | |
| Category parent | |
| static hasMany = [subcategories : Category] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Test { | |
| String name | |
| Integer age | |
| BigDecimal salary | |
| static constraints = { | |
| name blank: false, maxSize: 60 |