src/main/java/org/jboss/loom/migrators/_ext/ExternalMigratorsLoader.java
private static Class loadGroovyClass( File file ) throws MigrationException {
        try {
            //InputStream groovyClassIS = new FileInputStream( file );
            //FileReader fr = new FileReader( file );
            GroovyCodeSource src = new GroovyCodeSource( file );
            GroovyClassLoader gcl = new GroovyClassLoader();
            //Class clazz = gcl.parseClass( groovyClassIS, StringUtils.substringBefore(file.getName(),"."));
            Class clazz = gcl.parseClass( src );
            return clazz;
        }
        catch( IOException ex ){
            throw new MigrationException("Failed creating class from " + file.getPath() + ":\n    " + ex.getMessage(), ex);
        }
    }
/**
     *  Loads a groovy class from given file.
     */
Loads a groovy class from given file.
Loads a groovy class from given file .
private static Class loadGroovyClass( File file ) throws MigrationException {
        try {
            GroovyCodeSource src = new GroovyCodeSource( file );
            GroovyClassLoader gcl = new GroovyClassLoader();
            Class clazz = gcl.parseClass( src );
            return clazz;
        }
        catch( IOException ex ){
            throw new MigrationException("Failed creating class from " + file.getPath() + ":\n    " + ex.getMessage(), ex);
        }
    }
private static Class loadGroovyClass ( File file ) throws MigrationException { try { GroovyCodeSource src = new GroovyCodeSource ( file ) ; GroovyClassLoader gcl = new GroovyClassLoader ( ) ; Class clazz = gcl . parseClass ( src ) ; return clazz ; } catch ( IOException ex ) { throw new MigrationException ( "Failed creating class from " + file . getPath ( ) + ":\n    " + ex . getMessage ( ) , ex ) ; } }
Loads a groovy class from given file.
Loads a groovy class from given file .
//InputStream groovyClassIS = new FileInputStream( file ); //FileReader fr = new FileReader( file ); //Class clazz = gcl.parseClass( groovyClassIS, StringUtils.substringBefore(file.getName(),"."));