public static Set < String > scanClassPathWithIncludes ( final String classPath , final Set < String > excludeJarSet , final Set < String > includePrefixes ) { final Set < String > pathSet = new HashSet < String > ( ) ; // Defer to JDKPaths to do the actual classpath scanning. __JDKPaths . processClassPathItem ( classPath , excludeJarSet , pathSet ) ; return filterPathSet ( pathSet , Collections . < String > emptySet ( ) , includePrefixes ) ; }
Scan the classpath string provided and collect a set of package paths found in jars and classes on the path including only those that match a set of include prefixes .