You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by dn...@apache.org on 2004/08/03 23:47:12 UTC
cvs commit: jakarta-lucene/src/demo/org/apache/lucene/demo IndexFiles.java
dnaber 2004/08/03 14:47:11
Modified: src/demo/org/apache/lucene/demo IndexFiles.java
Log:
fixing the usage information, as Indexfiles.class returns "class org.apache.lucene.demo.Indexfiles" (note the "class", which is misleading in this context)
Revision Changes Path
1.4 +4 -4 jakarta-lucene/src/demo/org/apache/lucene/demo/IndexFiles.java
Index: IndexFiles.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/demo/org/apache/lucene/demo/IndexFiles.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IndexFiles.java 30 Mar 2004 13:22:59 -0000 1.3
+++ IndexFiles.java 3 Aug 2004 21:47:11 -0000 1.4
@@ -25,8 +25,9 @@
import java.util.Date;
class IndexFiles {
- public static void main(String[] args) throws IOException {
- String usage = "java " + IndexFiles.class + " <root_directory>";
+
+ public static void main(String[] args) {
+ String usage = "java org.apache.lucene.demo.IndexFiles <root_directory>";
if (args.length == 0) {
System.err.println("Usage: " + usage);
System.exit(1);
@@ -36,12 +37,10 @@
try {
IndexWriter writer = new IndexWriter("index", new StandardAnalyzer(), true);
indexDocs(writer, new File(args[0]));
-
writer.optimize();
writer.close();
Date end = new Date();
-
System.out.print(end.getTime() - start.getTime());
System.out.println(" total milliseconds");
@@ -76,4 +75,5 @@
}
}
}
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org