manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1603263 - /manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
Date Tue, 17 Jun 2014 19:16:46 GMT
Author: kwright
Date: Tue Jun 17 19:16:46 2014
New Revision: 1603263

URL: http://svn.apache.org/r1603263
Log:
Fix CONNECTORS-966 for filesystem connector

Modified:
    manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java

Modified: manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java?rev=1603263&r1=1603262&r2=1603263&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
(original)
+++ manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
Tue Jun 17 19:16:46 2014
@@ -373,7 +373,7 @@ public class FileConnector extends org.a
                       data.addField("uri",file.toString());
                     }
                     // MHL for other metadata
-                    activities.ingestDocument(documentIdentifier,version,uri,data);
+                    activities.ingestDocumentWithException(documentIdentifier,version,uri,data);
                     fileLength = new Long(fileBytes);
                   }
                   finally
@@ -386,6 +386,10 @@ public class FileConnector extends org.a
                   //skip. throw nothing.
                   Logging.connectors.debug("Skipping file due to " +e.getMessage());
                 }
+                catch (InterruptedIOException e)
+                {
+                  throw new ManifoldCFException(e.getMessage(),e,ManifoldCFException.INTERRUPTED);
+                }
                 catch (IOException e)
                 {
                   errorCode = "IO ERROR";



Mime
View raw message