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;
}

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 ; }
verifies if the selected submanifest occurs in the supplied list of excluded subdirs .
