@ Override public PathImpl getPath ( String pathName ) { if ( _pathMap != null ) { String cleanPathName = pathName ; if ( cleanPathName . endsWith ( "/" ) ) cleanPathName = cleanPathName . substring ( 0 , cleanPathName . length ( ) - 1 ) ; JarMap . JarList jarEntryList = _pathMap . get ( cleanPathName ) ; if ( jarEntryList != null ) { return jarEntryList . getEntry ( ) . getJarPath ( ) . lookup ( pathName ) ; } } else { for ( int i = 0 ; i < _jarList . size ( ) ; i ++ ) { JarEntry jarEntry = _jarList . get ( i ) ; PathImpl path = jarEntry . getJarPath ( ) ; PathImpl filePath = path . lookup ( pathName ) ; if ( filePath . exists ( ) ) return filePath ; } } return null ; }
Find a given path somewhere in the classpath