I am new to groovy. and looking for a way to store common configs at one place so my application can access it.
I am keeping configurations for my groovy applications in WEB-INF, how can I access the file from my main application?
I tried this ConfigSlurper().parse(new File("config.groovy").toURL()), but can't get it working, because the path where tomcat is expecting the config.groovy is where tomcat is installed. I have my appBase configured to some other location.
How do I give relative path to new File('') so that it can read the config file?