I have a file named Entry.template which I would like to load from the Classpath.
The Entry.template file
is copied to .grails/.../resources. I believe the 'resources' directory is supposed to be on the Classpath?
My GrailsTestCase class has the following:
Resource resource = new ClassPathResource("resources/Entry.template")
def template = resource.getFile()The Citation.template file is not found:
class path resource [resources/Entry.template] cannot be resolved to URL because it does not existDoes any one know what I'm doing wrong? The approach I've used is supposed to work according to this blog post:
http://phatness.com/2010/02/grails-test-files/Thanks