public void addClasspath(List<File> classpath) throws IOException {
  Validate.notNull(classpath);
  Validate.noNullElements(classpath);
  for (  File classpathElement : classpath) {
    if (classpathElement.isFile()) {
      addJar(classpathElement);
    }
 else     if (classpathElement.isDirectory()) {
      addDirectory(classpathElement);
    }
 else {
      throw new IllegalStateException();
    }
  }
}

public void addClasspath ( List < File > classpath ) throws IOException { Validate . notNull ( classpath ) ; Validate . noNullElements ( classpath ) ; for ( File classpathElement : classpath ) { if ( classpathElement . isFile ( ) ) { addJar ( classpathElement ) ; } else if ( classpathElement . isDirectory ( ) ) { addDirectory ( classpathElement ) ; } else { throw new IllegalStateException ( ) ; } } }
add classes contained within a list of jar files and folders . note that if a duplicate class is encountered , the original is kept .
