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 groovy.xml.dom.DOMCategory | |
| includeTargets << grailsScript("_GrailsInit") | |
| includeTargets << grailsScript("_GrailsPlugins") | |
| def getAvailablePluginVersions = { | |
| def plugins = [:] | |
| eachRepository {repo, url -> | |
| use(DOMCategory) { | |
| pluginsList.'plugin'.each {plugin -> |
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
| includeTargets << grailsScript("_GrailsInit") | |
| includeTargets << grailsScript("_PluginDependencies") | |
| target('default': "Prepares development environment") { | |
| depends(installPlugins, installDependencies) | |
| event("StatusFinal", ["Done"]) | |
| } | |
| target(installPlugins: "Installs all plugins") { | |
| depends(resolveDependencies) |
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
| package com.energizedwork.grails.plugins.jodatime; | |
| import grails.converters.JSON; | |
| import org.codehaus.groovy.grails.web.converters.exceptions.ConverterException; | |
| import org.codehaus.groovy.grails.web.converters.marshaller.ObjectMarshaller; | |
| import org.codehaus.groovy.grails.web.json.JSONException; | |
| import org.joda.time.DateTime; | |
| import org.joda.time.DateTimeZone; | |
| import org.joda.time.format.DateTimeFormat; | |
| import org.joda.time.format.DateTimeFormatter; |
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
| allprojects { | |
| task clean << { task -> | |
| ant.exec(executable: "grails", dir: "$task.project.projectDir", failonerror: true) { | |
| arg line: "clean" | |
| } | |
| } | |
| } | |
| task test << { | |
| ant.exec(executable: "grails", dir: "$projectDir", failonerror: true) { |
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 java.beans.PropertyEditorSupport | |
| import org.apache.commons.lang.StringUtils | |
| class DomainClassLookupPropertyEditor extends PropertyEditorSupport { | |
| Class domainClass | |
| String property | |
| String getAsText() { | |
| value."$property" |
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 TagListEditor extends PropertyEditorSupport { | |
| void setAsText(String text) { | |
| value = text.split(/,\s*/) as Set | |
| } | |
| String getAsText() { | |
| value?.join(", ") | |
| } | |
| } |
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 TagListEditor extends PropertyEditorSupport { | |
| void setAsText(String text) { | |
| value = text.split(/,\s*/).collect { | |
| Tag.findByName(it) ?: new Tag(name: it) | |
| } as Set | |
| } | |
| String getAsText() { | |
| value?.name?.join(", ") | |
| } |
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
| @artifact.package@import grails.test.* | |
| import org.junit.* | |
| import static org.junit.Assert.* | |
| import static org.hamcrest.CoreMatchers.* | |
| import static org.junit.matchers.JUnitMatchers.* | |
| class @artifact.name@ { | |
| @Before void 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
| package com.github.robfletcher.grails.validation | |
| import org.codehaus.groovy.grails.validation.AbstractConstraint | |
| import org.springframework.validation.Errors | |
| class AcyclicConstraint extends AbstractConstraint { | |
| static final String DEFAULT_MESSAGE_CODE = "default.acyclic.violation.message" | |
| static final String NAME = "acyclic" |
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
| @artifact.package@import spock.lang.* | |
| import grails.plugin.spock.* | |
| class @artifact.name@ extends @artifact.superclass@ { | |
| def "feature method"() { | |
| } | |
| } |
OlderNewer