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 65708 - [50cat] Permit shared classpath for multiple source roots even when adding test source roots
Summary: [50cat] Permit shared classpath for multiple source roots even when adding te...
Status: RESOLVED DUPLICATE of bug 72337
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Freeform (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
: 56948 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-03 13:24 UTC by cpreisler
Modified: 2008-11-21 11:05 UTC (History)
1 user (show)

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 cpreisler 2005-10-03 13:24:07 UTC
[ BUILD # : Beta ]
[ JDK VERSION : 1.5.0_05 ]

I am using a free form Ant project that has several source directories.  When I add a Test Package Folder to the project and then switch to the Java Sources page the "Separate Classpath for Each Source Package Folder" checkbox becomes disabled and checked.  The test directory that I added has no classpath entries associated with it.  

The checkbox should not be disabled and I should be able to use the same classpath for each source package folder.
Comment 1 Jesse Glick 2005-10-03 22:06:07 UTC
Possible behaviors are:

1. The current behavior.

2. Two checkboxes, one applying to Source Folders and another to Test Folders. Yuck.

3. Permit user to have one classpath for all Source and Test folders together.
(Meaning that if he/she uses e.g. junit.jar it will have to be added to
everything, and that classes in source folders will be permitted to refer to
classes in test folders.)

Perhaps #3 is preferable to #1, though the user will as always get better
results by checking the checkbox and correctly specifying the classpath for each
source and test root individually. #2 is actually most correct, but also more
likely to confuse people more than they already are.

As always, project.xml permits any of these things, or even other scenarios not
supported by the GUI, such as a pair of source roots in one compilation unit
plus another source root in a different compilation unit. The issue is which
scenarios are common and functional enough for the GUI to support.
Comment 2 Jesse Glick 2005-10-03 22:06:56 UTC
Original summary was not distinctive.
Comment 3 Jesse Glick 2005-10-06 01:12:00 UTC
Messed up summary.
Comment 4 Milan Kubec 2008-09-29 11:30:10 UTC
*** Issue 56948 has been marked as a duplicate of this issue. ***
Comment 5 Milan Kubec 2008-11-21 11:05:58 UTC

*** This issue has been marked as a duplicate of 72337 ***