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.
1. Start the new Java project wizard 2. Enter some name, e.g. Project1, into the Name field 3. Uncheck the "use recommended location" field 4. Change the Home Directory to some different directory than the suggested default 5. Finish the wizard 6. Choose View As -> Physical View on the project 7. Expand the project node The project contains the directory which contains the project file, not the home directory specified in the wizard.
There are a number of problems in this area. The project panel wizard has disabled the textfield associated with the Recommended toggle; the target folder that the project file is instantiated into is the project-file itself rather than its parent; and even when I had fixed this I discovered that the "out" folder got added to the project file directory instead of the project home; presumably because JSCSettings getTargetFolder() has some code like this URL url = new URL("nbprjres://project/ProjectFilePosition/"); url = project.getResolver().decode(url); which assumes that the target folder should be relative to the project file rather than the project home. I'll look into this some more. There was some code commented out in the ProjectLocationPanel, for example the code which synchronizes the enabled-state of the project-file textfield with the "Use recommended" toggle. Does anyone know why it was disabled?
Tor, you STARTED the issue, but did not assign it to yourself. So, I'm assigning it to you.
This issue has been fixed - in the sense that the checkbox which allows you to put the project file in a different location than the project home has been removed. When reference points are added we may be able to address this. *** This issue has been marked as a duplicate of 27844 ***
My hope is that the plan is to re-introduce the checkbox later. This will be useful for example if I am working on a project where I don't have full control over the CVS repository. E.g. if I contribute to a project at SourceForge, then I will set up the project home to point to the CVS repository, but the other project members may not want me to commit NB project files into the repository, so I may want to store it at a different place.
Verified. I acknowledge that removing the checkbox fixes this issue. However, I still think that it would be nice to allow for different locations, so I filed issue 34819, which requests this.