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 177112

Summary: free-form project does not allow to have a common classpath for all source folders
Product: projects Reporter: swachter1 <swachter1>
Component: Ant FreeformAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WONTFIX    
Severity: normal CC: anebuzelsky, jglick
Priority: P4 Keywords: UI
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: image that shows the situation

Description swachter1 2009-11-18 09:29:33 UTC
Created attachment 91271 [details]
image that shows the situation

When I try to create a new free-form project then in the "Java Sources Classpath" step the check box "Separate Classpath for Each Source Package Folder" can not set to unchecked because it is read only.

This prevents to have a common classpath for all source folders.
Comment 1 Antonin Nebuzelsky 2009-11-18 14:46:46 UTC
Probably there is some reason for this behaviour?
Comment 2 Jesse Glick 2009-11-18 16:13:44 UTC
Should be enabled if there is >1 source root or >1 compilation unit of a given type. If some are marked as test roots, you need to specify a different classpath for these. You can always fine-tune any of these choices in project.xml later; the GUI intentionally only offers a limited set of configuration options.
Comment 3 swachter1 2009-11-19 01:08:34 UTC
Thanks for the hint, Jesse.

The project has some test folders. After I removed the test folders from the free-form project I could uncheck the "separate classpath" flag.

Maybe the fact that a common classpath can be used only in certain situations could be documented (in the help or even better in the dialog in case that the flag is set and read only).
Comment 4 Jesse Glick 2009-11-19 09:17:01 UTC
Yes, the dialog should be improved to state this explicitly.

By the way you can try http://wiki.netbeans.org/AutomaticProjects as an alternative to freeform projects; feedback welcome.
Comment 5 Antonin Nebuzelsky 2010-01-11 04:29:28 UTC
Changing the default component owner to tzezula.
Comment 6 Martin Balin 2016-07-07 08:37:56 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss