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
package com.jetbootlabs.services | |
/* | |
* Truncates H2 tables mapped by the domainClasses variable. Useful for cleaning up test data. | |
* | |
* Temporarily disables referential integrity to avoid constraint violation errors when | |
* deleting records. | |
* | |
* Inspired by Luke Daley's blog post on how to do this in MySQL: | |
* http://ldaley.com/post/398082618/brute-force-fixture-cleanup-in-grails |
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
// saving from url to a file (append) | |
new File("output.xml") << new URL ("http://some.url/some/path.xml").getText() |
NewerOlder