public Object run ( final String scriptText , final String fileName , String [ ] args ) throws CompilationFailedException { GroovyCodeSource gcs = AccessController . doPrivileged ( new PrivilegedAction < GroovyCodeSource > ( ) { public GroovyCodeSource run ( ) { return new GroovyCodeSource ( scriptText , fileName , DEFAULT_CODE_BASE ) ; } } ) ; return run ( gcs , args ) ; }
Runs the given script text with command line arguments