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 - lib doesnt get deleted from the lib/ folder when deleting
Summary: lib doesnt get deleted from the lib/ folder when deleting
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All Windows 7 x64
: P4 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 11:17 UTC by nagyz
Modified: 2016-07-07 07:16 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 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