I have put a file in my grails-app/conf package called size_config.xml . When the war is built then unpacked the file shows up in WEB-INF/classes with the expected name. However, when I try to reference the file in my application it claims that the file is not found. I’ve tried all combinations that I can think would be logical in trying to reference including:
new File("WEB-INF/classes/size_config.xml")
new File("classes/size_config.xml")
new File("size_config.xml")
new File("grails-app/conf/size_config.xml")
and none of these seem to work. When I run my local integration tests I use “grails-app/conf/size_config.xml” and it finds the file just fine. Since the file is being packed up fine, I’m assuming its not a deploy config issue, but rather some minor item I’m failing to see. Ideas?
try this out: