jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r887170 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitParser.java
Date Fri, 04 Dec 2009 12:29:29 GMT
Author: jukka
Date: Fri Dec  4 12:29:28 2009
New Revision: 887170

URL: http://svn.apache.org/viewvc?rev=887170&view=rev
Log:
JCR-1878: Use Apache Tika for text extraction

Fix potential cause of the occasional IndexingQueueTest failures. Our implementation of the
new Tika 0.5 parse() method signature didn't check the extraction block used by the test case.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitParser.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitParser.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitParser.java?rev=887170&r1=887169&r2=887170&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitParser.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitParser.java
Fri Dec  4 12:29:28 2009
@@ -60,7 +60,7 @@
     /**
      * Flag for blocking all text extraction. Used by the Jackrabbit test suite.
      */
-    private static boolean blocked = false;
+    private static volatile boolean blocked = false;
 
     /**
      * The configured Tika parser.
@@ -192,7 +192,7 @@
     public void parse(
             InputStream stream, ContentHandler handler, Metadata metadata)
             throws IOException, SAXException, TikaException {
-        parser.parse(stream, handler, metadata, new ParseContext());
+        parse(stream, handler, metadata, new ParseContext());
     }
 
     /**



Mime
View raw message