Issue 3: Add tracking to check for changes in exclude files
commitb85abe40ef69dc697d5526fc1b08701298bd02bd
authorJonas Fonseca <fonseca@diku.dk>
Mon, 17 Aug 2009 03:10:41 +0000 (16 23:10 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 27 Aug 2009 18:54:16 +0000 (27 14:54 -0400)
tree5eb92b868ee0a605650f531191e8857dc0a60674
parentf378327f8af3306dd40b5c0a07eee53360a6287d
Issue 3: Add tracking to check for changes in exclude files

This is done so that PathPattern cache for exclusion patterns can be
evicted on change/modified event of the file. It tracks both FileSystem
API changes and local file system change.

Signed-off-by: Imran M Yousuf <imyousuf@smartitengineering.com>
[jf: updated and refactored to move the main logic into a utility class
 to make the code reusable. Also, guard the code against race conditions.]

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
src/org/nbgit/util/MonitoredFileMap.java [new file with mode: 0644]
src/org/nbgit/util/exclude/ExcludeCache.java
test/unit/src/org/nbgit/util/MonitoredFileMapTest.java [new file with mode: 0644]