You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2010/10/04 16:56:27 UTC

svn commit: r1004272 - /uima/sandbox/trunk/TikaAnnotator/src/main/java/org/apache/uima/tika/FileSystemCollectionReader.java

Author: schor
Date: Mon Oct  4 14:56:27 2010
New Revision: 1004272

URL: http://svn.apache.org/viewvc?rev=1004272&view=rev
Log:
[UIMA-1878] previous fix depended on a Java 6 enhancement to the set of constructors for IOException.  Changed this so it works with Java 5.

Modified:
    uima/sandbox/trunk/TikaAnnotator/src/main/java/org/apache/uima/tika/FileSystemCollectionReader.java

Modified: uima/sandbox/trunk/TikaAnnotator/src/main/java/org/apache/uima/tika/FileSystemCollectionReader.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TikaAnnotator/src/main/java/org/apache/uima/tika/FileSystemCollectionReader.java?rev=1004272&r1=1004271&r2=1004272&view=diff
==============================================================================
--- uima/sandbox/trunk/TikaAnnotator/src/main/java/org/apache/uima/tika/FileSystemCollectionReader.java (original)
+++ uima/sandbox/trunk/TikaAnnotator/src/main/java/org/apache/uima/tika/FileSystemCollectionReader.java Mon Oct  4 14:56:27 2010
@@ -98,8 +98,9 @@ public class FileSystemCollectionReader 
 		try {
 			tika.populateCASfromURL(aCAS, file.toURI().toURL(), this.mMIME, this.mLanguage);
 		} catch (CASException e) {
-			getLogger().log(Level.WARNING,"Problem converting file : "+file.toURI().toURL()+"\t"+e.getMessage());
-			throw new IOException(e);
+		  String msg = String.format("Problem converting file: %s\t%s%n", file.toURI().toURL(), e.getMessage());
+			getLogger().log(Level.WARNING, msg);
+			throw new IOException(msg);
 	    	//jcas.setDocumentText(" "); return;
 		}
 	}