LOG.debug("Scanning jar files within "+pluginDir+".");
for(File jar: pluginDir.listFiles()) {
String jarPath = jar.getPath();
Long timestamp = repos.get(jarPath);
if(null == timestamp || jar.lastModified() > timestamp) {
Task t = load(jar, loader);
if(null != t) {
t.setListener(listener);
taskList.put(jarPath, t);
repos.put(jarPath, new Long(jar.lastModified()));
LOG.debug(jar.getName()+" is loaded.");
}
}