Parent Directory | Revision Log | Patch
--- lucene/nutch/trunk/src/java/org/apache/nutch/indexer/DeleteDuplicates.java 2006/03/03 18:55:58 382911 +++ lucene/nutch/trunk/src/java/org/apache/nutch/indexer/DeleteDuplicates.java 2006/03/03 19:05:41 382912 @@ -343,12 +343,12 @@ public class DeleteDuplicates extends Co LOG.info("Dedup: done"); } - public static boolean doMain(String[] args) throws Exception { + public static void main(String[] args) throws Exception { DeleteDuplicates dedup = new DeleteDuplicates(NutchConfiguration.create()); if (args.length < 1) { System.err.println("Usage: <indexes> ..."); - return false; + return; } File[] indexes = new File[args.length]; @@ -357,22 +357,6 @@ public class DeleteDuplicates extends Co } dedup.dedup(indexes); - - 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 |