public Class parseClass(File file) throws CompilationFailedException, IOException {
        return parseClass(new GroovyCodeSource(file, config.getSourceEncoding()));
    }
public Class parseClass ( File file ) throws CompilationFailedException , IOException { return parseClass ( new GroovyCodeSource ( file , config . getSourceEncoding ( ) ) ) ; }
Parses the given file into a Java class capable of being run

@param file the file name to parse
@return the main class defined in the given script