Skip to content

Instantly share code, notes, and snippets.

static def createStringsFromJson(File inputFile, String outputFolderRootPath) {
def json = new JsonSlurper().parseText(inputFile.text)
def sw = new StringWriter()
def xml = new groovy.xml.MarkupBuilder(sw)
def keywords = ["abstract", "continue", "for", "new", "switch",
"default", "package", "synchronized",
"boolean", "do", "if", "private", "this",
"break", "double", "implements", "protected", "throw",
"byte", "else", "import", "public", "throws",