private static Collection<SearchDirectory> classpathDirectories() throws IOException {
  HadoopLocations loc=locations();
  Collection<SearchDirectory> res=new ArrayList<>();
  res.add(new SearchDirectory(new File(loc.common(),"lib"),AcceptAllDirectoryFilter.INSTANCE));
  res.add(new SearchDirectory(new File(loc.hdfs(),"lib"),AcceptAllDirectoryFilter.INSTANCE));
  res.add(new SearchDirectory(new File(loc.mapred(),"lib"),AcceptAllDirectoryFilter.INSTANCE));
  res.add(new SearchDirectory(new File(loc.common()),new PrefixDirectoryFilter("hadoop-common-")));
  res.add(new SearchDirectory(new File(loc.common()),new PrefixDirectoryFilter("hadoop-auth-")));
  res.add(new SearchDirectory(new File(loc.hdfs()),new PrefixDirectoryFilter("hadoop-hdfs-")));
  res.add(new SearchDirectory(new File(loc.mapred()),new PrefixDirectoryFilter("hadoop-mapreduce-client-common")));
  res.add(new SearchDirectory(new File(loc.mapred()),new PrefixDirectoryFilter("hadoop-mapreduce-client-core")));
  res.addAll(parseUserLibs());
  return res;
}

private static Collection < SearchDirectory > classpathDirectories ( ) throws IOException { HadoopLocations loc = locations ( ) ; Collection < SearchDirectory > res = new ArrayList < > ( ) ; res . add ( new SearchDirectory ( new File ( loc . common ( ) , "lib" ) , AcceptAllDirectoryFilter . INSTANCE ) ) ; res . add ( new SearchDirectory ( new File ( loc . hdfs ( ) , "lib" ) , AcceptAllDirectoryFilter . INSTANCE ) ) ; res . add ( new SearchDirectory ( new File ( loc . mapred ( ) , "lib" ) , AcceptAllDirectoryFilter . INSTANCE ) ) ; res . add ( new SearchDirectory ( new File ( loc . common ( ) ) , new PrefixDirectoryFilter ( "hadoop-common-" ) ) ) ; res . add ( new SearchDirectory ( new File ( loc . common ( ) ) , new PrefixDirectoryFilter ( "hadoop-auth-" ) ) ) ; res . add ( new SearchDirectory ( new File ( loc . hdfs ( ) ) , new PrefixDirectoryFilter ( "hadoop-hdfs-" ) ) ) ; res . add ( new SearchDirectory ( new File ( loc . mapred ( ) ) , new PrefixDirectoryFilter ( "hadoop-mapreduce-client-common" ) ) ) ; res . add ( new SearchDirectory ( new File ( loc . mapred ( ) ) , new PrefixDirectoryFilter ( "hadoop-mapreduce-client-core" ) ) ) ; res . addAll ( parseUserLibs ( ) ) ; return res ; }
gets base directories to discover classpath elements in .
