for (DubBundleChecker bundleDep : deps) {
verifyAndRemoveDepBuildpathEntries(bundleDep, buildpathToVerify);
}
for (ListIterator<IBuildpathEntry> iter = buildpathToVerify.listIterator(); iter.hasNext(); ) {
IBuildpathEntry bpEntry = iter.next();
IPath entryPath = EnvironmentPathUtils.getLocalPath(bpEntry.getPath());
if(bpEntry.getEntryKind() == IBuildpathEntry.BPE_LIBRARY && !isDubBuildpathEntry(bpEntry)) {
String entryPathStr = entryPath.toString();
assertTrue(
entryPathStr.endsWith("druntime/import") ||
entryPathStr.endsWith("phobos") ||
entryPathStr.startsWith("#special#builtin"));
iter.remove();
continue;
}
assertTrue(bpEntry.getEntryKind() == IBuildpathEntry.BPE_SOURCE);
assertTrue(bpEntry.isExternal() == false);
IPath folderPath = entryPath.removeFirstSegments(1); // Remove project segment
assertTrue(sourcePaths.remove(folderPath.toFile().toPath()));
iter.remove();
continue;
}