public static Set < String > scanClassPath ( final String classPath , final Set < String > excludeJarSet , final Set < String > excludePrefixes , 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 , excludePrefixes , includePrefixes ) ; }
Scan the classpath string provided and collect a set of package paths found in jars and classes on the path . On the resulting path set first exclude those that match any exclude prefixes and then include those that match a set of include prefixes .