protected void traverseManifest ( Manifest manifest , TraversalState state ) { Attributes atts ; String cp ; String [ ] parts ; if ( manifest == null ) return ; atts = manifest . getMainAttributes ( ) ; cp = atts . getValue ( "Class-Path" ) ; if ( cp == null ) return ; parts = cp . split ( " " ) ; for ( String part : parts ) { if ( part . trim ( ) . length ( ) == 0 ) return ; if ( part . toLowerCase ( ) . endsWith ( ".jar" ) || ! part . equals ( "." ) ) traverseClasspathPart ( part , state ) ; } }
Analyzes the MANIFEST . MF file of a jar whether additional jars are listed in the Class - Path key .