lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dor...@apache.org
Subject svn commit: r560428 - /lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/BasicDocMaker.java
Date Fri, 27 Jul 2007 23:56:50 GMT
Author: doronc
Date: Fri Jul 27 16:56:48 2007
New Revision: 560428

URL: http://svn.apache.org/viewvc?view=rev&rev=560428
Log:
for LUCENE-836 sort reuters files by name (otherwise TestQualityRun can fail on some OSs).

Modified:
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/BasicDocMaker.java

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/BasicDocMaker.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/BasicDocMaker.java?view=diff&rev=560428&r1=560427&r2=560428
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/BasicDocMaker.java
(original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/BasicDocMaker.java
Fri Jul 27 16:56:48 2007
@@ -26,6 +26,7 @@
 import java.io.File;
 import java.io.UnsupportedEncodingException;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Iterator;
 
 
@@ -299,9 +300,10 @@
       return;
     }
     if (f.isDirectory()) {
-      File files[] = f.listFiles();
+      String files[] = f.list();
+      Arrays.sort(files);
       for (int i = 0; i < files.length; i++) {
-        collectFiles(files[i],inputFiles);
+        collectFiles(new File(f,files[i]),inputFiles);
       }
       return;
     }



Mime
View raw message