This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
for (Root r : allRoots) {
for (FileObject loc : r.getIncludeRoots()) {
if (!loc.isFolder()) {
continue;
if (!FileUtil.isArchiveFile(loc)) {
}
if (FileUtil.getRelativePath(pdir, loc) != null) {
// Inside projdir already. Skip it.
try {
if (loc.isFolder()) {
Project other = ProjectManager.getDefault().findProject(loc);
if (other != null) {
// This is a foreign project; we cannot own it. Skip it.
} catch (IOException e) {
// Assume it is a foreign project and skip it.
// It's OK to go.
newRegisteredRoots.add(loc);