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 187672 - External addition of library not recognized
Summary: External addition of library not recognized
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 17:32 UTC by matthies
Modified: 2010-07-30 09:47 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 matthies 2010-06-16 17:32:52 UTC
In a CVS-controlled Java project with a "lib" sub-folder, I added a new jar to the lib folder outside of the IDE, and then added the jar to the compile-time libraries using the Project Properties dialog. But when committing, the jar was not included, as NetBeans hadn't noticed it in terms of being a new file under the project folder.

Not sure where this belongs. Possible approaches:
- let VCS check for external changes before committing
- have the project properties notice an external change for file references within the project folder
- extend the existing automatic check for external changes to sources to all files in all VCS-controlled folders

The last option would make sense, as I already had the same problem earlier with image files added to a web project externally.
Comment 1 Peter Pis 2010-06-17 07:33:01 UTC
Have you run "CVS | Show Changes" before committing.

Reassigning for further evaluation.
Comment 2 matthies 2010-06-17 13:22:42 UTC
No, and one shouldn't have to.
One reason is that it takes several minutes on a large project.
I guess it's largely the same reasons why Commit doesn't do it by itself.
Comment 3 Ondrej Vrabec 2010-06-22 09:10:05 UTC
> One reason is that it takes several minutes on a large project.
You can always call Show changes just on the "libs" folder, which should not take too much time.
Comment 4 matthies 2010-06-22 15:19:23 UTC
You are right, I could. But it's still a hack, a workaround.
The point is that all other version control tools simply pick up everything that's there in the folders. It's unexpected, inconvenient and non-inuitive to have to manually perform an extra step to make sure that really everything is picked up. It's common to not think about this issue, and suddenly the other team members are missing required files.