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 47609 - [40cat] New Java Project fro existing sources: Test sources path not used correctly
Summary: [40cat] New Java Project fro existing sources: Test sources path not used cor...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-08-20 23:00 UTC by pasek
Modified: 2004-08-23 22:07 UTC (History)
0 users

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 pasek 2004-08-20 23:00:58 UTC
[ BUILD # : Beta1 ]
[ JDK VERSION : J2SE 1.5.0 ]

When I create a new standard project for existing sources and I select a path for the JUnit sources using the file dialog the path will not be set correctly after project creation.

The user has to use the "Resolve Reference problem dialog" to set the test source path for a second time.
Comment 1 Jesse Glick 2004-08-20 23:08:15 UTC
Working fine for me. 040820 custom, 1.5.0 b63, Linux, selected
/space/src/xerces/src and /space/src/xerces/tests as source roots,
/tmp/xerces-wrapper as project dir. Source Packages and Test Packages
both displayed the correct contents. Reopen with precise steps to
reproduce from scratch if you can find any.
Comment 2 pasek 2004-08-20 23:44:47 UTC
Simple setup for reproducing this problem:

D:\Temp\ProjectXY as project dir
D:\Temp\ProjectXY\src as src dir
D:\Temp\ProjectXY\test as test src dir

Problem does not occur if the project dir is not the parent directory
of the src directories like in your setup, but if the project dir is
the parent dir of the src dirs the problem is reproducable.
Comment 3 Jesse Glick 2004-08-21 00:43:47 UTC
Got it, thanks.
Comment 4 deadpoet 2004-08-21 07:55:04 UTC
I have the same problem too. 

My project structure is as follows
1. project root -> project_root
2. src -> project_root/src/java
3. test -> project_root/src/test

My environment is OSX 10.3.5, Java 1.4.2_05-141, NB Beta1
Comment 5 Jesse Glick 2004-08-23 22:07:14 UTC
committed     Up-To-Date  1.25       
java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProjectGenerator.java