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.

Bug 98235 - Classes from "subpackage" are excluded
Summary: Classes from "subpackage" are excluded
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 49026
  Show dependency tree
 
Reported: 2007-03-19 17:40 UTC by Jiri Prox
Modified: 2007-10-12 09:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-03-19 17:40:18 UTC
NetBeans IDE Dev (Build 200703181900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

Classes located in subfolder of excluded package are excluded as well, but they
should be visible.

Steps to reproduce:
1) have this project structure:
package a:  ClassA
package a.b: ClassB
package a.b.c: ClassC

2)
set this values in include/exclude dialog
Include=**
Exclude=**/b/*

-> the ClassC should be visible, but it's hidden.
The list of visible/hidden files in include/exclude dialog is ok, ClassC is
provided by code completion.
Comment 1 Jesse Glick 2007-03-21 02:00:53 UTC
So to clarify, the bug only affects the Projects display, right?
Comment 2 Jiri Prox 2007-03-21 10:06:11 UTC
Yes, exactly
Comment 3 Jesse Glick 2007-03-22 20:28:00 UTC
Probably an issue in PackageView but need to investigate more.
Comment 4 Jesse Glick 2007-10-10 01:02:55 UTC
"**/b/*" was matching the folder itself ("a/b/"), causing it to be omitted with all its children. Tweaking wildcard
logic so that trailing "/*" matches only files, not folders.

Checking in src/org/netbeans/spi/project/support/ant/PathMatcher.java;
/shared/data/ccvs/repository/ant/project/src/org/netbeans/spi/project/support/ant/PathMatcher.java,v  <--  PathMatcher.java
new revision: 1.4; previous revision: 1.3
done
Checking in test/unit/src/org/netbeans/spi/project/support/ant/PathMatcherTest.java;
/shared/data/ccvs/repository/ant/project/test/unit/src/org/netbeans/spi/project/support/ant/PathMatcherTest.java,v  <--
 PathMatcherTest.java
new revision: 1.5; previous revision: 1.4
done
Comment 5 Jiri Prox 2007-10-12 09:16:25 UTC
v.