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 73971 - Renaming a project folder breaks references from other projects
Summary: Renaming a project folder breaks references from other projects
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2006-03-24 19:42 UTC by alexismp
Modified: 2009-11-02 11:00 UTC (History)
1 user (show)

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 alexismp 2006-03-24 19:42:37 UTC
Renaming a project break the build-impl.xml ANT script (clean target) for
depending projects

Steps to reproduce:

Create new "Enterprise Application" making sure the "Create EJB Module" and/or
the "Create Web Application Module" checkboxes are checked.

Projects generated and opened:
- EnterpriseApplication1
- EnterpriseApplication1-EJBModule
- EnterpriseApplication1-WebModule

Choose "Rename Project" in the contextual menu for the EJBModule and change the
name to "NewEnterpriseApplication1-EJBModule" and check the "Also Rename Project
Folder" checkbox.

Trying to clean the main 'EnterpriseApplication1' project triggers this error:
deps-clean:

D:\dev\EnterpriseApplication1\nbproject\build-impl.xml:279: The following error
occurred while executing this line:
java.io.FileNotFoundException:
D:\dev\EnterpriseApplication1\EnterpriseApplication1-ejb\build.xml (couldn't
find file)
Comment 1 Jan Becicka 2006-05-05 12:04:30 UTC
Not sure if this is general project issue or j2ee project issue.
Comment 2 Jesse Glick 2006-05-05 15:20:51 UTC
Common to Ant-based projects using ReferenceHelper. Superproject does not yet
listen to changes in the name of subproject.
Comment 3 Jesse Glick 2007-01-11 22:05:40 UTC
Easily reproduced just using j2seproject's.

No easy fix, I'm afraid. Would require a new API for the project being renamed
to communicate the change in location to all other open projects.
Comment 4 Milos Kleint 2007-01-12 06:47:33 UTC
additionally there's no way to figure if the project is referenced from any
non-opened projects, right?
Comment 5 Jesse Glick 2007-01-12 19:11:47 UTC
Right, there is currently no persisted reverse index that would tell you about
references from nonopen projects.
Comment 6 Milos Kleint 2007-10-31 13:26:55 UTC
IMO the whole concept of allowing users to rename/move/copy/(delete?) projects from the IDE is flawed, given the nature
of our underlying build systems (ant/maven/...). That's most visible in this case when inter-project dependencies come
into play. 
Comment 7 Milos Kleint 2008-11-19 12:39:11 UTC
unlikely to be worked on for 7.0 or the next version.
Comment 8 Quality Engineering 2009-11-02 11:00:10 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX