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 153470 - Netbeans should synchronize imported libraries
Summary: Netbeans should synchronize imported libraries
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-19 16:02 UTC by _ gtzabari
Modified: 2011-08-31 14:08 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-11-19 16:02:03 UTC
Netbeans should routinely check that imported libraries are identical to their IDE-level copies. If there is any sort of
mismatch it should:

1) Trigger a project-level warning (similar to what we see today when a source folder is missing).
2) Allow the user to replace his imported copies with the (potentially newer) IDE-level copies.

For example, at one point Netbeans moved from JUnit 4.1 to 4.5 but developers who had previously imported the "JUnit4"
library had no way of upgrading and were never notified of the update.

See issue 122930 for an example of how much grief this has caused and how much time is wasted on these kinds of errors.
Comment 1 Peter Pis 2008-11-19 20:41:32 UTC
Reassigning to projects.
Comment 2 _ gtzabari 2008-12-08 04:38:30 UTC
Right now "project properties -> libraries" contains the library name and a checkbox for "package". I suggest adding a
checkbox item called "synchronize" if the library name exists as a global library. If synchronize is enabled and the
project libraries are mismatched Netbeans would issue a warning and allow the user to import the updated copy. If the
user wishes to suppress the warning he would simply uncheck "synchronize". This feature would also be backwards
compatible in that you could default "synchronize" to false for older projects and to true when libraries are imported
into newer projects.

Please give this feature serious consideration for Netbeans 7.0