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 27689 - Wrong project home set after project creation
Summary: Wrong project home set after project creation
Status: VERIFIED DUPLICATE of bug 27844
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-30 18:40 UTC by Petr Jiricka
Modified: 2003-07-09 13:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2002-09-30 18:40:45 UTC
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.
Comment 1 Torbjorn Norbye 2002-10-01 01:14:24 UTC
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?
Comment 2 David Konecny 2002-10-03 09:39:18 UTC
Tor, you STARTED the issue, but did not assign it to yourself. So, I'm
assigning it to you.
Comment 3 Torbjorn Norbye 2002-10-07 21:47:09 UTC
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 ***
Comment 4 Petr Jiricka 2002-10-08 08:52:58 UTC
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.
Comment 5 Petr Jiricka 2003-07-09 13:55:29 UTC
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.