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.
Summary: | Should be able to change source/test paths from project property | ||
---|---|---|---|
Product: | java | Reporter: | _ gtzabari <gtzabari> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | jrojcek |
Priority: | P4 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 41537 |
Description
_ gtzabari
2004-09-04 21:37:22 UTC
This is probably about project with existing sources. (In the vanilla J2SE project it would be WONTFIX). Petr, Shouldn't you support this operation for both? Once you fix it for a project with existing sources it would implicitly fix the vanilla J2SE case. Yes, the code for vanilla J2SEProject and J2SEProject from existing sources is the same except of New Project Wizard and J2SEProjectGenerator. Fixing it for the project with existing sources fixes it also for the vanilla one. The only question is if we want to expose the UI for this in the vanilla J2SEProject. No, this ability is intentionally excluded from the GUI in 4.0. To do it right we would need to also offer to move/rename the folders at the same time as we update the property, which then has VCS implications, etc. Jesse, I suggest the following: - If no VCS is associated with code, move src/test directory on behalf of the user. - If VCS associated exists, pop up a dialog and explain that the operation is not supported, see issue #X for more information. - If src/test directories are empty, you can/should always offer support for renaming them In 4.1 you will be able to change the source and tests dirs registered in the project. There is not currently any GUI for moving existing sources, however. Probably will never implement, since in 4.1 you can already add/remove source/test roots, so you do not need to edit project.properties; just move your sources and update the properties dialog accordingly. Can be done by adding and removing source root in the project's properties. |