Skip to content

Instantly share code, notes, and snippets.

@adamrabung
Created July 22, 2011 22:22
Show Gist options
  • Save adamrabung/1100568 to your computer and use it in GitHub Desktop.
Save adamrabung/1100568 to your computer and use it in GitHub Desktop.
public static void main(String[] args) throws IOException {
ITimesheetDatabase db = new ConsoleTimesheetDatabase();
IPathWatcher proj1 = new TimesheetPathWatcher(db, "Project Epsilon", Paths.get("c:\\temp\\epsilon"), Paths.get("c:\\temp\\epsilon2"));
IPathWatcher proj2 = new TimesheetPathWatcher(db, "Project Manhattan", Paths.get("c:\\temp\\manhattan"));
new DirectoryWatcher(proj1, proj2).processEvents();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment