private void addProjectPath ( final Path path ) { addToClassPool ( path ) ; if ( path . toFile ( ) . isFile ( ) && path . toString ( ) . endsWith ( ".jar" ) ) { addJarClasses ( path ) ; } else if ( path . toFile ( ) . isDirectory ( ) ) { addDirectoryClasses ( path , Paths . get ( "" ) ) ; } else { throw new IllegalArgumentException ( "The project path '" + path + "' must be a jar file or a directory" ) ; } }
Adds the project paths and loads all classes .