public static void addAllJarsFromDirectory(List<? super String> classpath, final File dir) {
    File[] files = dir.listFiles();
    if (files != null) {
      for (File file : files) {
        if (StringUtil.endsWithIgnoreCase(file.getName(), ".jar")) {
          classpath.add(file.getAbsolutePath());
        }
      }
    }
  }
public static void addAllJarsFromDirectory(List<? super String> classpath, final File dir)