Skip to content

Instantly share code, notes, and snippets.

def kvmap = [
key1: "value1",
key2: "value2",
key3: [
"key3-1" : "value3-1",
"key3-2" : "value3-2",
],
]
LinkedHashMap.metaClass.toXml = { builder ->
import org.codehaus.groovy.tools.groovydoc.GroovyDocTool
import org.codehaus.groovy.groovydoc.GroovyRootDoc
import static groovy.io.FileType.*
import org.codehaus.groovy.tools.groovydoc.*
includeTargets << grailsScript("Init")
/**
* Generate i18n messages.properties from the domain class comments.
* support version: grails-1.3.0 or above