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
workaround: for us it was running in an ANT environment and storing some location parent (knowing the subpath) in the Java environment properties (System.setProperty( "dirAncestor", "/foo" )
) we could access the dir ancestor via Groovy's properties.get('dirAncestor')
.
maybe this will help for some scenarios mentioned here.