Tag Archives: Script

Groovy ScriptEngine memory leak – fixed

Java 6 includes built-in support for Scripting for the Java Platform (JSR 223). You can learn how to use this scripting support with Groovy in the Grovvy documentation. We use this Groovy scripting support in a real production environment for … Continue reading

Posted in Groovy and Grails | Tagged , , , | 2 Comments

Execute SQL Scripts in Grails Bootstrap or Integration Tests

I recently had to execute some SQL scripts when a Grails applications starts up to insert test data into the database. Executing sql scripts is easy. Just open the SQL File and read the contents of the Script to a … Continue reading

Posted in Groovy and Grails | Tagged , , , | 2 Comments