question: public static List < LibraryLocation > gatherAllLibraries ( String [ ] dirPaths ) { List < LibraryLocation > libraries = new ArrayList < LibraryLocation > ( ) ; for ( int i = 0 ; i < dirPaths . length ; i ++ ) { File extDir = new File ( dirPaths [ i ] ) ; if ( extDir . isDirectory ( ) ) { String [ ] names = extDir . list ( fgArchiveFilter ) ; if ( names != null ) { for ( int j = 0 ; j < names . length ; j ++ ) { File jar = new File ( extDir , names [ j ] ) ; if ( jar . isFile ( ) ) { try { IPath libPath = new Path ( jar . getCanonicalPath ( ) ) ; IPath sourcePath = Path . EMPTY ; IPath packageRoot = Path . EMPTY ; URL javadocLocation = null ; URL indexLocation = null ; LibraryLocation library = new LibraryLocation ( libPath , sourcePath , packageRoot , javadocLocation , indexLocation ) ; libraries . add ( library ) ; } catch ( IOException e ) { Launching . log ( e ) ; } } } } } } return libraries ; }
target:  Returns a list of all zip's and jars contained in the given directories.