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 116567 - Please put default folder value as src/
Summary: Please put default folder value as src/
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: API
Depends on:
Blocks: 114799
  Show dependency tree
 
Reported: 2007-09-24 19:22 UTC by tonybeckham
Modified: 2010-07-02 19:35 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2007-09-24 19:22:07 UTC
It is much more user friendly to make the default folder as src/ when creating new files in a project.  As of now (Build
200709200000), a few project types (BPEL module for example) do this on their own.  The best thing would be for the new
file wizard to have the default folder for a new file to be set to src/ instead of being blank.  If the user wanted to
they could still be able to edit the folder field and clear it to create in the project root if they wanted.
Comment 1 Sonali Kochar 2007-09-25 20:15:10 UTC
Increasing the priority since it blocks a p2 bug on XML
Comment 2 Milan Kuchtiak 2007-09-26 08:49:23 UTC
Reassigning to issues@projects
Comment 3 Jesse Glick 2007-09-26 17:19:04 UTC
1. Seems like an RFE to me. A module is always free to define its own template wizard if it does not like the behavior
of the standard ones. The project system code is behaving as designed.

2. Issue #114799 does not sound like a P2 to me. The user needs to decide where to put a new file. If any place in the
project is potentially OK, then that is their choice, though a better default would be nicer. If it is really incorrect
to place a new XML file in the root folder, then the template needs to use a different template wizard, e.g. the one in
java/project which limits target folders to registered Java packages.

3. Proper fix requires introduction of a small new API to specify a suggested folder path for general file templates in
a particular project. The path "src/" is currently conventional for non-freeform Ant-based projects, but not for
freeform or Maven projects, and I'm not sure it is even correct for web apps using Jakarta conventions.
Comment 4 Antonin Nebuzelsky 2010-03-29 14:10:28 UTC
Change of default owner.
Comment 5 Jesse Glick 2010-07-02 19:35:49 UTC
As explained in last comment, no plans to change current behavior.