followup for HER-1688 remember external job directories

* Engine.java
    suppress WARNING for common case of harmless failure during rescans: job already exists
* EngineResource.java
    suppress rescan on each reload (ODD: steve had already committed this change -- I got the commit email -- but now the repo version is missing it. Sourceforge problems?)
This commit is contained in:
gojomo
2010-04-29 23:20:22 +00:00
parent fcd0ec6699
commit 95bf82e2d3
2 changed files with 3 additions and 2 deletions
@@ -97,6 +97,9 @@ public class Engine {
// convert .jobpaths to the referenced external directory
jobFile = getJobDirectoryFrom(candidateFile);
}
if (jobConfigs.containsKey(jobFile.getName())) {
continue;
}
if(!addJobDirectory(jobFile)) {
LOGGER.log(Level.WARNING,"invalid job directory: " + jobFile
+ " where job expected from: " + candidateFile);
@@ -232,8 +232,6 @@ public class EngineResource extends BaseResource {
ArrayList<CrawlJob> jobs = new ArrayList<CrawlJob>();
// re-scan job configs on each page load
engine.findJobConfigs();
jobs.addAll(engine.getJobConfigs().values());
pw.println("<form method=\'POST\'><h2>Job Directories ("+jobs.size()+")");