public static URL [ ] getURLs ( final String path ) { final File topDir = new File ( path ) ; final List list = new ArrayList ( ) ; CClassLoader . getClasses ( topDir , list ) ; final URL ret [ ] = new URL [ list . size ( ) + 1 ] ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { ret [ i ] = ( URL ) list . get ( i ) ; } try { ret [ list . size ( ) ] = topDir . toURI ( ) . toURL ( ) ; } catch ( final Exception ignore ) { } return ret ; }
Return a list of jar and classes located in path