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.
Summary: | removal of sharable library does not remove library jars | ||
---|---|---|---|
Product: | projects | Reporter: | David Konecny <dkonecny> |
Component: | Ant Project | Assignee: | Milos Kleint <mkleint> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | jglick |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
David Konecny
2011-05-10 23:34:50 UTC
The remove method is only intended to delete the definition of the library. Removing artifacts formerly referenced by the library is a separate task. (In reply to comment #1) > Removing artifacts formerly referenced by the library is a separate task. Whose task is it then? I'm calling LibraryManager.removeLibrary(Library) which for sharable libraries delegates deletion task to ArealLibraryProvider.remove(). Who else than implementation of ArealLibraryProvider can do it? Up to the project type, I guess; what code copied the JARs to this dir in the first place? You probably know better than me. I see what you mean. I will have a look and update bug description if necessary. performing clean up is a tricky thing, I'd rather leave it up to the user to eventually manage his jars. We cannot keep track of which projects are using a given library and what libraries are using a given jar. so it's safer to keep everything in place to avoid breaking stuff. please reopen if you disagree. |