ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1721980 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Date Mon, 28 Dec 2015 18:50:40 GMT
Author: clin
Date: Mon Dec 28 18:50:40 2015
New Revision: 1721980

URL: http://svn.apache.org/viewvc?rev=1721980&view=rev
Log:
automatic add ".xmi" extension when reading xmi files

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java?rev=1721980&r1=1721979&r2=1721980&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Mon Dec 28 18:50:40 2015
@@ -627,7 +627,11 @@ public abstract class Evaluation_ImplBas
    }
 
    static File getXMIFile( File xmiDirectory, File textFile ) {
-      return new File( xmiDirectory, textFile.getName() + ".xmi" );
+	   String fileName = textFile.getName();
+	   if(!fileName.contains(".xmi")){
+		   fileName += ".xmi";
+	   }
+      return new File( xmiDirectory, fileName);// + ".xmi" 
    }
 
    static File getXMIFile( File xmiDirectory, JCas jCas ) throws AnalysisEngineProcessException
{



Mime
View raw message