You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2013/08/19 22:29:48 UTC

[jira] [Commented] (UIMA-3194) WORDTABLE cannot be loaded from the classpath

    [ https://issues.apache.org/jira/browse/UIMA-3194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744175#comment-13744175 ] 

Richard Eckart de Castilho commented on UIMA-3194:
--------------------------------------------------

When loading stuff from the classpath, one has to decide how to handle equally named resources, since the same file could theoretically be in multiple JARs and thus available multiple times on the classpath. E.g. the Spring framework handles this by providing two kinds of pseudo-URLs for the classpath: {{classpath:...}} and {{classpath*:...}} (cf. [1]). E.g. if there is more than one WORDTABLE at the specified location in the classpath, they could be merged, or an exception could be thrown.

[1] http://blog.carbonfive.com/2007/05/17/using-classpath-vs-classpath-when-loading-spring-resources/
                
> WORDTABLE cannot be loaded from the classpath
> ---------------------------------------------
>
>                 Key: UIMA-3194
>                 URL: https://issues.apache.org/jira/browse/UIMA-3194
>             Project: UIMA
>          Issue Type: Improvement
>          Components: ruta
>            Reporter: Alexandre Patry
>
> While it is possible to load WORDLIST from the classpath, WORDTABLE can only be loaded from the filesystem.
> Loading tables from the classpath will make it possible to distribute them in .jar via maven dependencies. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira