private synchronized void checkRepositories() throws IOException {
List list = app.getRepositories();
// walk through repositories and check if any of them have changed.
for (int i = 0; i < list.size(); i++) {
Repository repository = (Repository) list.get(i);
long lastScan = lastRepoScan.containsKey(repository) ?
((Long) lastRepoScan.get(repository)).longValue() : 0;
if (repository.lastModified() != lastScan) {
lastRepoScan.put(repository, new Long(repository.lastModified()));
checkRepository(repository, false);
}
}
boolean debug = "true".equalsIgnoreCase(app.getProperty("helma.debugTypeManager"));