Index: src/org/netbeans/spi/project/support/ant/SourcesHelper.java =================================================================== RCS file: /cvs/ant/project/src/org/netbeans/spi/project/support/ant/SourcesHelper.java,v retrieving revision 1.21 diff -u -r1.21 SourcesHelper.java --- src/org/netbeans/spi/project/support/ant/SourcesHelper.java 9 Jul 2007 23:48:55 -0000 1.21 +++ src/org/netbeans/spi/project/support/ant/SourcesHelper.java 26 Sep 2007 13:14:19 -0000 @@ -490,21 +490,25 @@ for (Root r : allRoots) { for (FileObject loc : r.getIncludeRoots()) { if (!loc.isFolder()) { - continue; + if (!FileUtil.isArchiveFile(loc)) { + continue; + } } if (FileUtil.getRelativePath(pdir, loc) != null) { // Inside projdir already. Skip it. continue; } - try { - Project other = ProjectManager.getDefault().findProject(loc); - if (other != null) { - // This is a foreign project; we cannot own it. Skip it. + if (loc.isFolder()) { + try { + Project other = ProjectManager.getDefault().findProject(loc); + if (other != null) { + // This is a foreign project; we cannot own it. Skip it. + continue; + } + } catch (IOException e) { + // Assume it is a foreign project and skip it. continue; } - } catch (IOException e) { - // Assume it is a foreign project and skip it. - continue; } // It's OK to go. newRegisteredRoots.add(loc);