From 8fa85d5cdb7db5dcc69d5d2b4c3bd00302334a03 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Fri, 23 Jan 2004 17:40:13 +0000 Subject: [PATCH] more ant touchups git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150940 13f79535-47bb-0310-9956-ffa450edef68 --- .../ant/src/main/org/apache/lucene/ant/DocumentHandler.java | 3 +-- .../ant/src/main/org/apache/lucene/ant/HtmlDocument.java | 3 +-- .../ant/src/main/org/apache/lucene/ant/IndexTask.java | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) 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.java index 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.java index 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.java index 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 searchable doc.add(Field.Keyword("path", file.getPath()));