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 48484 - Should be able to change source/test paths from project property
Summary: Should be able to change source/test paths from project property
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-09-04 21:37 UTC by _ gtzabari
Modified: 2008-10-15 15:00 UTC (History)
1 user (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 _ gtzabari 2004-09-04 21:37:22 UTC
Currently the only way I can see of doing this is
manually editing project.properties "src.dir" and
"test.src.dir"
Comment 1 Petr Hrebejk 2004-09-07 14:29:20 UTC
This is probably about project with existing sources. (In the vanilla
J2SE project it would be WONTFIX). 
Comment 2 _ gtzabari 2004-09-07 16:16:38 UTC
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.
Comment 3 Tomas Zezula 2004-09-07 16:42:43 UTC
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.
Comment 4 Jesse Glick 2004-09-07 17:37:02 UTC
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.
Comment 5 _ gtzabari 2004-09-07 18:23:38 UTC
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
Comment 6 Jesse Glick 2004-12-02 16:02:04 UTC
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.
Comment 7 Jesse Glick 2005-01-20 16:48:44 UTC
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.
Comment 8 Tomas Zezula 2008-10-15 15:00:22 UTC
Can be done by adding and removing source root in the project's properties.