cc.setScriptBaseClass(DelegatingScript.class.getCanonicalName());
GroovyShell sh = new GroovyShell(getClass().getClassLoader(),new Binding(),cc);
DelegatingScript script = null;
script = (DelegatingScript)sh.parse(reader);
script.setDelegate(delegate);
script.run();
}
/**
* Parses the script from the named classpath resource
* @param path