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
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Zezula
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:
Exception Reporter:


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 "src.dir" and
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

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
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

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; 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.