ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1572702 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventTimeRelations.java
Date Thu, 27 Feb 2014 19:10:05 GMT
Author: clin
Date: Thu Feb 27 19:10:05 2014
New Revision: 1572702

URL: http://svn.apache.org/r1572702
Log:
temporal: for the event-time relation evaluation code, recursively delete temporal folder

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventTimeRelations.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventTimeRelations.java?rev=1572702&r1=1572701&r2=1572702&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventTimeRelations.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventTimeRelations.java
Thu Feb 27 19:10:05 2014
@@ -47,6 +47,7 @@ import org.apache.uima.collection.Collec
 import org.apache.uima.jcas.JCas;
 import org.apache.uima.jcas.tcas.Annotation;
 import org.apache.uima.resource.ResourceInitializationException;
+import org.apache.uima.util.FileUtils;
 import org.cleartk.classifier.jar.JarClassifierBuilder;
 import org.cleartk.classifier.tksvmlight.TKSVMlightStringOutcomeDataWriter;
 import org.cleartk.classifier.tksvmlight.model.CompositeKernel;
@@ -160,7 +161,7 @@ public class EvaluationOfEventTimeRelati
       if(options.getUseTmp()){
         // won't work because it's not empty. should we be concerned with this or is it responsibility
of 
         // person invoking the tmp flag?
-        workingDir.delete();
+    	FileUtils.deleteRecursive(workingDir);
       }
     }catch(ResourceInitializationException e){
       System.err.println("Error with parameter settings: " + params);



Mime
View raw message