Parent Directory | Revision Log | Patch
--- lucene/nutch/trunk/src/java/org/apache/nutch/crawl/Crawl.java 2006/03/03 18:55:58 382911 +++ lucene/nutch/trunk/src/java/org/apache/nutch/crawl/Crawl.java 2006/03/03 19:05:41 382912 @@ -44,11 +44,11 @@ public class Crawl { /* Perform complete crawling and indexing given a set of root urls. */ - public static boolean doMain(String args[]) throws Exception { + public static void main(String args[]) throws Exception { if (args.length < 1) { System.out.println ("Usage: Crawl <urlDir> [-dir d] [-threads n] [-depth i] [-topN N]"); - return false; + return; } Configuration conf = NutchConfiguration.create(); @@ -122,22 +122,5 @@ public class Crawl { new IndexMerger(fs, fs.listFiles(indexes), index, tmpDir, job).merge(); LOG.info("crawl finished: " + dir); - - return true; - } - - /** - * main() wrapper that returns proper exit status - */ - public static void main(String[] args) { - Runtime rt = Runtime.getRuntime(); - try { - boolean status = doMain(args); - rt.exit(status ? 0 : 1); - } - catch (Exception e) { - LOG.log(Level.SEVERE, "error, caught Exception in main()", e); - rt.exit(1); - } } }
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |