incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1164085 - in /incubator/lcf/trunk: CHANGES.txt connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/
Date Thu, 01 Sep 2011 14:04:20 GMT
Author: kwright
Date: Thu Sep  1 14:04:20 2011
New Revision: 1164085

Fix for CONNECTORS-177. Comment out test code.


Modified: incubator/lcf/trunk/CHANGES.txt
--- incubator/lcf/trunk/CHANGES.txt (original)
+++ incubator/lcf/trunk/CHANGES.txt Thu Sep  1 14:04:20 2011
@@ -3,9 +3,12 @@ $Id$
 ======================= 0.3-dev =========================
+CONNECTORS-177: Remove test code from file system connector.
+(Karl Wright)
 CONNECTORS-141: Exclude files from rat report that the Forrest teams says I
-(Karl Wright
+(Karl Wright)
 CONNECTORS-58: Add client scripting language and a file-system-based example.
 (Karl Wright)

Modified: incubator/lcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/
--- incubator/lcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/
+++ incubator/lcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/
Thu Sep  1 14:04:20 2011
@@ -71,12 +71,11 @@ public class FileConnector extends org.a
   /** For any given document, list the bins that it is a member of.
-  * For the file system, this would be typically just a blank value, but since we use this
connector for testing, I have
-  * it returning TWO values for each document, so I can set up tests to see how the scheduler
behaves under those conditions.
   public String[] getBinNames(String documentIdentifier)
     // Note: This code is for testing, so we can see how documents behave when they are in
various kinds of bin situations.
     // The testing model is that there are documents belonging to "SLOW", to "FAST", or both
to "SLOW" and "FAST" bins.
     // The connector chooses which bins to assign a document to based on the identifier (which
is the document's path), so
@@ -87,6 +86,7 @@ public class FileConnector extends org.a
       return new String[]{"SLOW"};
     if (documentIdentifier.indexOf("/FAST/") != -1)
       return new String[]{"FAST"};
     return new String[]{""};

View raw message