This file contains 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
def init = { servletContext -> | |
if (["test", "ci", "functional"].contains(Environment.current.name)) { | |
// bring some environments down to bare database. 20120609160926 is the base migration script's ID | |
// limitation: if we add development to this list and run the app in IDEA, it orphans the java processes | |
executeCommand ("${getMigrationCommand()} --env=${Environment.current.name} version 20120609160926", new File("./db")) | |
executeCommand ("${getMigrationCommand()} --env=${Environment.current.name} up", new File("./db")) | |
} | |
// other init operations... | |
} |
This file contains 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
def getRandomNumber() { | |
randomInt = new Random().nextInt(11) | |
} | |
def buildCell() { | |
"""${getRandomNumber()} <br> | |
+ ${getRandomNumber()} <br> | |
<hr width=40px> | |
""" |
This file contains 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 { | |
void method1() { | |
println 'In method1' | |
} | |
void method1(String foo) { | |
println "In method1 with String param of $foo" | |
} | |
static method2(String foo) { |
NewerOlder