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: | When mounting existing source, adding characters to the end of an existing folder isn't recognized as new. | ||
---|---|---|---|
Product: | java | Reporter: | dmartin01 <dmartin01> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | tzezula |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 41537 |
Description
dmartin01
2004-09-02 16:44:13 UTC
I just tried in a dev build and it seems to work OK for me. Can you give more precise instructions? Anyway, I get a different error than "Project Folder has to be located outside of the folder containing packages."; I get "Cannot place the project in a Project Folder that already contains NetBeans project"., which is the correct message. (Excuse the poor English grammar, hasn't been reviewed by native speakers yet I think.) If you were using the beta, try also with a nightly build; might have been something already fixed in CVS. In your case, the folder you are pointing at already has a Netbeans 4.0 project in it. My folder doesn't. It just contains the source. In my example, I shouldn't be mounting the source folder as a project folder, so Netbeans is correct to complain. But when I take corrective action by adding a character on the end to point at a completely new folder, Netbeans doesn't realize it like it should. To recreate, place some source (not a NB project) in a folder, such as "C:\Projects\Jesse". Then try to create a new project using "Java Project with Existing Source". Point at this folder for the source, then try to use "C:\Projects\Jesse2". When you get to Jesse, the error fires, but when you type the 2 it won't correct itself. I'm sorry, I should have said - use C:\Projects\Jesse2 as the "Project Folder". Got it. Yes, PanelSourceFolders.java is wrong. In several places it uses constructions such as ploc.equals(tloc) || ploc.startsWith(tloc) which is clearly wrong; should be ploc.equals(tloc) || ploc.startsWith(tloc + File.separatorChar) Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/PanelSourceFolders.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/wizards/PanelSourceFolders.java,v <-- PanelSourceFolders.java new revision: 1.26; previous revision: 1.25 done It is 2012 and I am STILL seeing this error. Just had to add an x to the beginning of folder name to get it to stop the error! |