@NonNull private List<File> computeFullBootClasspath() { // computes and caches the full boot classpath. // Changes here should be applied to #computeFilteredClasspath() if (mBootClasspathAll == null) { checkState(mTargetInfo != null, "Cannot call getBootClasspath() before setTargetInfo() is called."); mBootClasspathAll = BootClasspathBuilder.computeFullBootClasspath( mTargetInfo.getTarget(), mSdkInfo.getAnnotationsJar()); } return mBootClasspathAll; }
private List<File> computeFilteredBootClasspath() { // computes and caches the filtered boot classpath. // Changes here should be applied to #computeFullClasspath() if (mBootClasspathFiltered == null) { checkState(mTargetInfo != null, "Cannot call getBootClasspath() before setTargetInfo() is called."); mBootClasspathFiltered = BootClasspathBuilder.computeFilteredClasspath( mTargetInfo.getTarget(), mLibraryRequests, mErrorReporter, mSdkInfo.getAnnotationsJar()); } return mBootClasspathFiltered; }
Optional<LibraryRequest> requestedLib = findMatchingLib(lib.getName(), requestedLibs); if (requestedLib.isPresent()) { requestedLibs.remove(requestedLib.get()); for (IAndroidTarget.OptionalLibrary lib : optionalLibraries) { Optional<LibraryRequest> requestedLib = findMatchingLib(lib.getName(), requestedLibs); if (requestedLib.isPresent()) {
return BootClasspathBuilder.computeFullBootClasspath( androidBuilderTarget, annotationsJar); return BootClasspathBuilder.computeFullBootClasspath(targetToUse, annotationsJar);