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 106632 - Projects are not deleted completely
Summary: Projects are not deleted completely
Status: RESOLVED DUPLICATE of bug 107000
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ edwingo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-14 11:04 UTC by Jana Maleckova
Modified: 2007-06-19 18:36 UTC (History)
8 users (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 Jana Maleckova 2007-06-14 11:04:37 UTC
Product Version: NetBeans IDE Dev (Build 200706140604) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Userdir: D:\userdir60

Description:
============
1. create new j2se project
2. delete it completely with resources
Check your disc and see, lib directory of project remained there.
Comment 1 Tomas Zezula 2007-06-18 16:32:45 UTC
Who created the lib folder and why? Seems that some module created lib folder, the delete project tries to be careful
and not delete anything the project hasn't created. The project knows nothing about the lib folder, I will try to find
who creates it.
Comment 2 Tomas Zezula 2007-06-18 18:40:27 UTC
The visualweb creates the lib folder and should be responsible for clean it up (EJBDataSourceManager.OpenProjectListener).
Comment 3 _ edwingo 2007-06-18 21:10:11 UTC
Visual web adds libraries to a web project. Some examples are EJBs, web services, complibs. As I understand it, these
should go under $projectdir/lib. Jesse seems to agree in his comment on
http://www.netbeans.org/issues/show_bug.cgi?id=107000. However, Po-Ting disagrees. So the first question that needs to
be resolved is where these files should go? Who is the right person to figure this out?

The other issue is that I don't understand how the OpenProjects API can be used to fix this delete problem. Could
someone like tzezula explain how? I would think that the module would need to have a notification that the user wants
the project to be Deleted not just Closed.
Comment 4 Milos Kleint 2007-06-19 05:20:47 UTC
edwingo: "Visual web adds libraries to a web project." NO, it doesn't. It does add it to every single project out there,
even the ones that have nothing related to visualweb. And it does so very aggressively (even if no actual library is
there. That's what 107000 is about.

re: deletion of project. that cannot be handled by the project open listener. You need o get in ouch with the web
project maintainer and make sure he includes the lib directory to the list of project's source folders. That way delete,
rename, move starts working correctly.
Comment 5 _ edwingo 2007-06-19 18:36:24 UTC
mkleint: I believe there are two problems related to deletion here. One has to do with creating an empty "lib" directory
which is http://www.netbeans.org/issues/show_bug.cgi?id=107000. The other is how to delete projects that actually
contain contents within the lib directory http://www.netbeans.org/issues/show_bug.cgi?id=107029. This bug looks like a
dup of the first one and I will mark it as such.

*** This issue has been marked as a duplicate of 107000 ***