info = new ClassPathInfo(sources, classes, libraries, libraries, tests, Collections.emptyList()); projectInfo.put(project, info);
sources = classPath.getSourceFolders(); classes = classPath.getClassFolders(); libraries = classPath.getLibraries(true); info = new ClassPathInfo(sources, classes, libraries, classPath.getLibraries(false), classPath.getTestSourceFolders(), classPath.getTestLibraries()); mProjectInfo.put(project, info);
/** * Returns the list of libraries needed to compile the test source files * * @param project the project to look up test source file locations for * @return a list of jar files to add to the regular project dependencies when compiling the * test sources */ @NonNull public List<File> getTestLibraries(@NonNull Project project) { return getClassPath(project).getTestLibraries(); }
/** * Returns the list of source folders for test source files * * @param project the project to look up test source file locations for * @return a list of source folders to search for .java files */ @NonNull public List<File> getTestSourceFolders(@NonNull Project project) { return getClassPath(project).getTestSourceFolders(); }
/** * Returns the list of Java libraries * * @param project the project to look up jar dependencies for * @param includeProvided If true, included provided libraries too (libraries that are not * packaged with the app, but are provided for compilation purposes and * are assumed to be present in the running environment) * @return a list of jar dependencies containing .class files */ @NonNull public List<File> getJavaLibraries(@NonNull Project project, boolean includeProvided) { return getClassPath(project).getLibraries(includeProvided); }
/** * Returns the list of output folders for class files * * @param project the project to look up class file locations for * @return a list of output folders to search for .class files */ @NonNull public List<File> getJavaClassFolders(@NonNull Project project) { return getClassPath(project).getClassFolders(); }
/** * Returns the list of source folders for Java source files * * @param project the project to look up Java source file locations for * @return a list of source folders to search for .java files */ @NonNull public List<File> getJavaSourceFolders(@NonNull Project project) { return getClassPath(project).getSourceFolders(); }