Apache Lucene open-source search software
more ant touchups
Erik Hatcher8fa85d5cdb7d
diff --git a/sandbox/contributions/ant/src/main/org/apache/lucene/ant/DocumentHandler.java b/sandbox/contributions/ant/src/main/org/apache/lucene/ant/DocumentHandler.javaindex c19c82e359a..96a2ec913a7 100644--- a/sandbox/contributions/ant/src/main/org/apache/lucene/ant/DocumentHandler.java+++ b/sandbox/contributions/ant/src/main/org/apache/lucene/ant/DocumentHandler.java@@ -17,9 +17,8 @@ public interface DocumentHandler {**@param file Description of Parameter*@return The document value- *@throws DocumentHandlerException*/- public Document getDocument(File file)+ Document getDocument(File file)throws DocumentHandlerException;}diff --git a/sandbox/contributions/ant/src/main/org/apache/lucene/ant/HtmlDocument.java b/sandbox/contributions/ant/src/main/org/apache/lucene/ant/HtmlDocument.javaindex 500625a1e52..1ea00c9d214 100644--- a/sandbox/contributions/ant/src/main/org/apache/lucene/ant/HtmlDocument.java+++ b/sandbox/contributions/ant/src/main/org/apache/lucene/ant/HtmlDocument.java@@ -23,7 +23,6 @@ import java.io.StringWriter;* from {@link java.io.File} or {@link java.io.InputStream}.**@author Erik Hatcher- *@created October 27, 2001*/public class HtmlDocument {private Element rawDoc;@@ -142,7 +141,7 @@ public class HtmlDocument {*@param args Command line arguments*@exception Exception Description of Exception*/- private static void main(String args[]) throws Exception {+ public static void main(String args[]) throws Exception {// HtmlDocument doc = new HtmlDocument(new File(args[0]));// System.out.println("Title = " + doc.getTitle());// System.out.println("Body = " + doc.getBody());diff --git a/sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java b/sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.javaindex ff201a07dc6..372d2fd00e4 100644--- a/sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java+++ b/sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java@@ -294,7 +294,7 @@ public class IndexTask extends Task {if (doc == null) {totalIgnored++;} else {- // Add the path of the file as a field named "path". Use a Text field, so+ // Add the path of the file as a field named "path". Use a Keyword field, so// that the index stores the path, and so that the path is searchabledoc.add(Field.Keyword("path", file.getPath()));