Remove main from Indexer
This commit is contained in:
parent
d921d56bad
commit
7dff28d7d0
|
@ -132,18 +132,4 @@ public class Indexer {
|
||||||
commitChanges();
|
commitChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void usage() {
|
|
||||||
System.out.println("Usage: Indexer <directory>");
|
|
||||||
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue