|
@@ -137,58 +137,3 @@ public final class Main |
|
|
throw new Exception( "Unable to locate ant.jar in classpath" ); |
|
|
throw new Exception( "Unable to locate ant.jar in classpath" ); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class MyClassLoader extends URLClassLoader |
|
|
|
|
|
{ |
|
|
|
|
|
MyClassLoader( final URL[] urls, final ClassLoader classLoader ) |
|
|
|
|
|
{ |
|
|
|
|
|
super( urls, classLoader ); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Class loadClass( final String name ) |
|
|
|
|
|
throws ClassNotFoundException |
|
|
|
|
|
{ |
|
|
|
|
|
System.out.println( "Loading: " + name ); |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
return super.loadClass( name ); |
|
|
|
|
|
} |
|
|
|
|
|
catch( final ClassNotFoundException cnfe ) |
|
|
|
|
|
{ |
|
|
|
|
|
System.out.println( "Failed to Load: " + name ); |
|
|
|
|
|
throw cnfe; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected Class findClass( final String name ) |
|
|
|
|
|
throws ClassNotFoundException |
|
|
|
|
|
{ |
|
|
|
|
|
System.out.println( "findClass: " + name ); |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
return super.findClass( name ); |
|
|
|
|
|
} |
|
|
|
|
|
catch( final ClassNotFoundException cnfe ) |
|
|
|
|
|
{ |
|
|
|
|
|
System.out.println( "Failed to Load: " + name ); |
|
|
|
|
|
throw cnfe; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Class loadClass( final String name, final boolean resolve ) |
|
|
|
|
|
throws ClassNotFoundException |
|
|
|
|
|
{ |
|
|
|
|
|
System.out.println( "Loading: " + name ); |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
return super.loadClass( name, resolve ); |
|
|
|
|
|
} |
|
|
|
|
|
catch( final ClassNotFoundException cnfe ) |
|
|
|
|
|
{ |
|
|
|
|
|
System.out.println( "Failed to Load: " + name ); |
|
|
|
|
|
throw cnfe; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|