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.
Summary: | Compile Package on <default package> compiles whole src tree | ||
---|---|---|---|
Product: | java | Reporter: | Milan Kubec <mkubec> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | jglick, jrojcek |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 52271, 56127 | ||
Bug Blocks: | 56772 | ||
Attachments: | Diff file |
Description
Milan Kubec
2004-11-03 15:32:14 UTC
Probably the action provider is setting javac.includes to e.g. "**" when "*" is correct. Similarly, selecting Compile Package on src/org/foo/bar should probably send "org/foo/bar/*" rather than "org/foo/bar/" (~ "org/foo/bar/**"). It was designed to compile whole subtree **. But it can be changed to *. I have no strong opinion concerning this. I guess the expectation is that only direct child files should be compiled, assuming the user is looking at a standard (list-style) package view... Note, once again, we are missing a proper API for distinguishing a package from a folder in a Lookup (e.g. action selection). Affects VCS integration, search, etc. We should seriously consider defining such an API and using it consistently. Otherwise you will fix this in the obvious way - and then cause a new bug for people who use a traditional tree view for their packages and are expecting Compile to operate recursively. Requires chnge of: org.netbeans.modules.java.j2seproject.J2SEActionProvider (j2seproject) org.netbeans.modules.ant.freeform.Actions (freeform) Created attachment 20738 [details]
Diff file
Compile on package compiles only single level. If switched to tree package view, it compiles the subtree. Checking in src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java,v <-- J2SEActionProvider.java new revision: 1.39; previous revision: 1.38 done Checking in test/unit/src/org/netbeans/modules/java/j2seproject/J2SEActionProviderTest.java; /cvs/java/j2seproject/test/unit/src/org/netbeans/modules/java/j2seproject/J2SEActionProviderTest.java,v <-- J2SEActionProviderTest.java new revision: 1.9; previous revision: 1.8 done Verified in dev-200504010747. |