I\'m writing a groovy script that I want to be controlled via a properties file stored in the same folder. However, I want to be able to call this script from anywhere. Wh
One more solution. It works perfect even you run the script using GrovyConsole
File getScriptFile(){ new File(this.class.classLoader.getResourceLoader().loadGroovySource(this.class.name).toURI()) } println getScriptFile()