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.
When many files are in the NetBeans installation directory (e.g., C:\Program Files\NetBeans6 on Windows) the module suite build process takes a long time (5 minutes or more) doing seemingly nothing. I uncompressed the NB source zip into the install dir, enabled verbose Ant logging, and see many messages like "No module in: <filename>" for the files in the install directory (now including the source, hence the slowdown). The "build" target in the harness suite.xml calls the custom createmodulexml Ant task which I think must call org.netbeans.nbbuild.ModuleSelector. It seems the createmodulexml task (org.netbeans.nbbuild.CreateModuleXML) or suite.xml "build" target should be more intelligent in excluding files that aren't required in the build even though they may be located in the NB installation directory.
Reassigning to core for evaluation
Never observed such a problem. If you can reproduce, please use thread dumps and/or a profiler to see what actually is hanging or consuming CPU.
Created attachment 59702 [details] Ant output when set to verbose logging
Created attachment 59703 [details] Contents of NetBeans install directory when problem occurs
Ah, you have the sources INSIDE the installation dir. Don't do that. Put them somewhere else.
Please see the attachments, "ant_verbose_output.txt" and "netbeans_directory_list.txt". I was able to reproduce this (on the same machine w/the same installation of NB) by simply moving the NB source, platform source directories and 2 original downloaded zip files to the NB directory, and performing a clean and build of my module suite. The process of java.exe spawned by Netbeans (nbexec.exe) is taking the most CPU, though it's only 20-30% at a given time. I think the activity is more disk-related because it's scanning thousands of files. I did a simple test: 1. With all the src files in my NB directory, build takes 5 minutes 30 seconds. 2. Without the extra source files, build takes 1 minute 30 seconds.