ehatcher    2004/01/23 09:40:13

  Modified:    contributions/ant/src/main/org/apache/lucene/ant
                        DocumentHandler.java HtmlDocument.java
                        IndexTask.java
  Log:
  more ant touchups
  
  Revision  Changes    Path
  1.3       +1 -2      
jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/DocumentHandler.java
  
  Index: DocumentHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/DocumentHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DocumentHandler.java      19 Jan 2004 14:58:33 -0000      1.2
  +++ DocumentHandler.java      23 Jan 2004 17:40:13 -0000      1.3
  @@ -17,9 +17,8 @@
        *
        [EMAIL PROTECTED]  file  Description of Parameter
        [EMAIL PROTECTED]       The document value
  -     [EMAIL PROTECTED] DocumentHandlerException
        */
  -    public Document getDocument(File file)
  +    Document getDocument(File file)
               throws DocumentHandlerException;
   }
   
  
  
  
  1.3       +1 -2      
jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/HtmlDocument.java
  
  Index: HtmlDocument.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/HtmlDocument.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HtmlDocument.java 19 Jan 2004 14:58:33 -0000      1.2
  +++ HtmlDocument.java 23 Jan 2004 17:40:13 -0000      1.3
  @@ -23,7 +23,6 @@
    *  from [EMAIL PROTECTED] java.io.File} or [EMAIL PROTECTED] java.io.InputStream}.
    *
    [EMAIL PROTECTED]     Erik Hatcher
  - [EMAIL PROTECTED]    October 27, 2001
    */
   public class HtmlDocument {
       private Element rawDoc;
  @@ -142,7 +141,7 @@
        [EMAIL PROTECTED]  args           Command line arguments
        [EMAIL PROTECTED]  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());
  
  
  
  1.4       +1 -1      
jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java
  
  Index: IndexTask.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IndexTask.java    19 Jan 2004 14:58:33 -0000      1.3
  +++ IndexTask.java    23 Jan 2004 17:40:13 -0000      1.4
  @@ -294,7 +294,7 @@
                   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()));
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to