protected void traverseClasspathPart ( String part , TraversalState state ) { File file ; file = null ; if ( part . startsWith ( "file:" ) ) { part = part . replace ( " " , "%20" ) ; try { file = new File ( new java . net . URI ( part ) ) ; } catch ( URISyntaxException e ) { getLogger ( ) . log ( Level . SEVERE , "Failed to generate URI: " + part , e ) ; } } else { file = new File ( part ) ; } if ( file == null ) { if ( isLoggingEnabled ( ) ) getLogger ( ) . log ( Level . INFO , "Skipping: " + part ) ; return ; } // find classes if ( file . isDirectory ( ) ) traverseDir ( file , state ) ; else if ( file . exists ( ) ) traverseJar ( file , state ) ; }
Analyzes a part of the classpath .