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 138228 - support for multiple source folders
Summary: support for multiple source folders
Status: RESOLVED WONTFIX
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: _ tboudreau
URL:
Keywords:
: 138229 (view as bug list)
Depends on: 153347
Blocks: 153542
  Show dependency tree
 
Reported: 2008-06-25 14:38 UTC by minashokry
Modified: 2010-04-08 22:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Early draft of multiple source root support (336.48 KB, patch)
2008-10-15 23:43 UTC, _ tboudreau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description minashokry 2008-06-25 14:38:02 UTC
netbeans can only see source files exists under source folder "src" but in some cases there is a need for multiple
source folders, for example in case there is a need to put application source files under "src" and unit tests under
"test" folder.
but netbeans can only use folder indicated by property ${src.dir} in nbproject/project.properties file.
Comment 1 Milos Kleint 2008-06-25 14:40:18 UTC
*** Issue 138229 has been marked as a duplicate of this issue. ***
Comment 2 Milos Kleint 2008-06-25 14:42:05 UTC
you seem to be doing something wrong. the test source folder are frequently used. And actually you shall be able to have
as many source roots as you want.

closing as works for me. please reopen with detailed steps to reproduce and a sample project demonstrating the problem.
Comment 3 minashokry 2008-06-25 18:07:19 UTC
sorry, I forgot to mention this problem is only with mobile projects.
Comment 4 Milos Kleint 2008-06-25 18:21:11 UTC
ok, reassigning to mobility
Comment 5 _ tboudreau 2008-10-15 23:43:13 UTC
Created attachment 71917 [details]
Early draft of multiple source root support
Comment 6 _ tboudreau 2008-10-15 23:58:16 UTC
I've attached a first draft of multiple project support.  Here are issues that are pending:
 - Unintentional API change for CustomizerPanel (didn't realize it was in a public package) should be reverted
 - Includes a UI for adding multiple unit test roots as well, which should probably be gotten rid of (?)
 - After an existing mobility project has been opened in NetBeans with these patches, it cannot be opened in previous
versions of NetBeans anymore (new XML namespace for project configuration data)

What will take some thrashing out is finding any remaining code which assumes that there is only one source root.

At any rate, it is a start.  I will attach a build of the mobility project module;  however, it is a rough draft. 
Therefore DO NOT USE THE ATTACHED MODULES ON ANY PROJECT YOU DO NOT HAVE A BACKUP OF.
Comment 7 minashokry 2008-10-16 09:31:07 UTC
will this be ready in release 6.5?
Comment 8 Petr Suchomel 2008-10-16 09:42:16 UTC
Definitely no. This is a high impact change
Comment 9 Petr Suchomel 2008-10-16 09:43:44 UTC
Tim, could you move all from this issue to this one http://www.netbeans.org/issues/show_bug.cgi?id=138749 ?
Comment 10 _ tboudreau 2010-04-08 22:01:29 UTC
If bug 138749 is fixed, assuming we won't be looking to implement this any time soon.