You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by cl...@apache.org on 2014/02/27 20:10:05 UTC

svn commit: r1572702 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfEventTimeRelations.java

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);