From 5034c7d96ed661a15cc2874ea476c343b3ea00cf Mon Sep 17 00:00:00 2001 From: gojomo Date: Mon, 26 Apr 2010 22:28:43 +0000 Subject: [PATCH] correct spaces-for-tabs --- .../org/archive/crawler/framework/Engine.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/engine/src/main/java/org/archive/crawler/framework/Engine.java b/engine/src/main/java/org/archive/crawler/framework/Engine.java index 316f2e59..353280b6 100644 --- a/engine/src/main/java/org/archive/crawler/framework/Engine.java +++ b/engine/src/main/java/org/archive/crawler/framework/Engine.java @@ -123,10 +123,10 @@ public class Engine { * @param dir directory to be added * @return true if directory successfully added, false for any failure */ - public boolean addJobDirectory(File dir) { - if(dir==null) { - return false; - } + public boolean addJobDirectory(File dir) { + if(dir==null) { + return false; + } File[] candidateConfigs = dir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { return name.endsWith(".cxml"); @@ -360,19 +360,19 @@ public class Engine { + newJobDir.getAbsolutePath()); return false; } - } + } - /** - * Writes a .jobpath file for the new CrawlJob, whose directory is - * outside the main Engine jobs directory. - * - * @param job CrawlJob whose main directory the .jobpath should point to - * @throws IOException for any IO error - */ + /** + * Writes a .jobpath file for the new CrawlJob, whose directory is + * outside the main Engine jobs directory. + * + * @param job CrawlJob whose main directory the .jobpath should point to + * @throws IOException for any IO error + */ public void writeJobPathFile(CrawlJob job) throws IOException { - String jobpathFileName = job.getShortName()+".jobpath"; - File jobpathFile = new File(jobsDir,jobpathFileName); - FileUtils.writeStringToFile(jobpathFile, job.getJobDir().getAbsolutePath()+"\n"); - LOGGER.log(Level.INFO, "wrote jobpath file: " + jobpathFileName); + String jobpathFileName = job.getShortName()+".jobpath"; + File jobpathFile = new File(jobsDir,jobpathFileName); + FileUtils.writeStringToFile(jobpathFile, job.getJobDir().getAbsolutePath()+"\n"); + LOGGER.log(Level.INFO, "wrote jobpath file: " + jobpathFileName); } } \ No newline at end of file