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 48364 - [freeform] external Java source roots are not visible in files view
Summary: [freeform] external Java source roots are not visible in files view
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks: 42682
  Show dependency tree
 
Reported: 2004-09-02 12:15 UTC by David Konecny
Modified: 2006-03-24 09:47 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 David Konecny 2004-09-02 12:15:40 UTC
SUBJ says all.
Comment 1 Jesse Glick 2004-09-02 15:44:08 UTC
Sort of obscure case, I guess. Works fine if you select folders
beneath the "source location" (even if the project folder is
different). But if you choose unrelated Java source folders, does not
create generic (untyped) <source-folder>s in project.xml.

Currently FreeformSources interprets project.xml quite literally and
only creates those generic groups that you explicitly specify. It
*could* be more clever and quietly create a generic group for each
typed group, which would solve this, but I am not sure that is the
best fix - maybe better for wizard to just create the generic group
too. No strong opinion.
Comment 2 David Konecny 2004-09-02 16:08:11 UTC
"maybe better for wizard to just create the generic group too." - yes,
that's how I would like to implement it. Any added source folder (in
wizard or in customizer) which is external will be added also as
generic. Removal of such a source root will try to remove also generic
one.

It is similar to what Java Project with External Sources does.
Comment 3 David Konecny 2004-09-03 14:45:05 UTC
Implemented:
src/org/netbeans/modules/ant/freeform/FreeformProjectGenerator.java;
new revision: 1.24; previous revision: 1.23
src/org/netbeans/modules/ant/freeform/ui/ProjectModel.java;
new revision: 1.4; previous revision: 1.3
test/unit/src/org/netbeans/modules/ant/freeform/ui/ProjectModelTest.
new revision: 1.3; previous revision: 1.2
Comment 4 Jaromir Uhrik 2005-07-14 16:18:59 UTC
Verified.