question: private static boolean includeSubManifest ( String subManifestFile , String [ ] excludedSubdirs ) { boolean result = true ; if ( excludedSubdirs != null && excludedSubdirs . length > 0 ) { int index = subManifestFile . lastIndexOf ( "/" ) ; String path = subManifestFile . substring ( 0 , index ) ; String sd = path . substring ( path . lastIndexOf ( "/" ) + 1 ) ; for ( String subdir : excludedSubdirs ) { if ( sd . equals ( subdir ) ) { result = false ; break ; } } } return result ; }
target:  Verifies if the selected subManifest occurs in the supplied list of excluded subdirs.