incubator-ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1445305 - /incubator/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Date Tue, 12 Feb 2013 18:42:02 GMT
Author: dligach
Date: Tue Feb 12 18:42:02 2013
New Revision: 1445305

URL: http://svn.apache.org/r1445305
Log:
added a check in the collection reader to skip hidden files (e.g. .svn)

Modified:
    incubator/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java

Modified: incubator/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java?rev=1445305&r1=1445304&r2=1445305&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
(original)
+++ incubator/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Tue Feb 12 18:42:02 2013
@@ -127,7 +127,10 @@ public abstract class Evaluation_ImplBas
     for (Integer set : patientSets) {
       File setTextDirectory = new File(this.rawTextDirectory, "doc" + set);
       for (File file : setTextDirectory.listFiles()) {
-        files.add(file);
+        // skip hidden files like .svn
+        if(! file.isHidden()) {
+          files.add(file);
+        }
       }
     }
     return UriCollectionReader.getCollectionReaderFromFiles(files);



Mime
View raw message