From 7dff28d7d08777af2846727fd16f9b8e55913999 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 11 Jan 2021 20:56:54 +0100 Subject: [PATCH] Remove main from Indexer --- src/main/java/org/RI/P2/Indexer.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/main/java/org/RI/P2/Indexer.java b/src/main/java/org/RI/P2/Indexer.java index 5400bbd..235d1a7 100644 --- a/src/main/java/org/RI/P2/Indexer.java +++ b/src/main/java/org/RI/P2/Indexer.java @@ -132,18 +132,4 @@ public class Indexer { commitChanges(); } - private static void usage() { - System.out.println("Usage: Indexer "); - System.exit(1); - } - - public static void main(String[] args) throws ParseException, IOException { - if (args.length != 1) { - usage(); - } - String dataDirectory = args[0]; - String indexDirectory = ".index"; - Indexer indexer = new Indexer(dataDirectory, indexDirectory); - indexer.populateIndex(); - } }