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 174526

Summary: lib doesnt get deleted from the lib/ folder when deleting
Product: java Reporter: nagyz <nagyz>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description nagyz 2009-10-14 11:17:12 UTC
Okay, so as I want my project to compile out-of-box when pulling out of svn, I like to have
a dedicated lib folder. So let's say I need x.jar as my code depends on it, so I add that
jar to my dependencies, and it copies it to my own lib/ folder. So far so good.

But when I delete x.jar from my dependencies, it does not get deleted from the physical
lib/ folder. This can cause stale, never-used jars present in a version-controller project.
Comment 1 Tomas Zezula 2009-11-10 06:13:27 UTC
The removal of the jar is problematic as the lib folder may be shared by more projects.
The only save point where the jar can be removed is when you delete the library from local (folder) storage in library manager.
Comment 2 locked 2010-11-29 14:15:39 UTC
An idea could be a dialog that asks whether the lib should be physically removed or not (same as "delete project").

I am also against simply deleting libs from the folder when I remove them from the classpath.
Comment 3 Martin Balin 2016-07-07 07:16:31 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss