incubator-connectors-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1164085&view=rev
Log:
Fix for CONNECTORS-177. Comment out test code.

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

Modified: incubator/lcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/CHANGES.txt?rev=1164085&r1=1164084&r2=1164085&view=diff
==============================================================================
--- 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
 should.
-(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/FileConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java?rev=1164085&r1=1164084&r2=1164085&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
(original)
+++ incubator/lcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
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.
   */
   @Override
   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[]{""};
   }
 



Mime
View raw message