Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Have the resource read in a stream rather than a File Resource Object.
http://svn.apache.org/repos/asf/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/ae/AbstractJCasTermAnnotator.java
initalize()
//This will assume that resource descriptor xml can only be read in by physical java File objects. If they are inside a jar, it will fail with URI is not Hierarchical
final FileResource fileResource = (FileResource)uimaContext.getResourceObject( DICTIONARY_DESCRIPTOR_KEY );
final File descriptorFile = fileResource.getFile();
The configuration can just take in a String path and use InputStream FileLocator.locate() to read it in from the stream.