ctakes-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pei Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CTAKES-89) URI is not hierarchical while getting a file from a classpath
Date Thu, 25 Oct 2012 15:21:12 GMT

    [ https://issues.apache.org/jira/browse/CTAKES-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484188#comment-13484188

Pei Chen commented on CTAKES-89:

This is more problematic for resources like lucene.  Lucene expects actual files and directories
in the classpath and not within jar or compressed files in the classpath.
I will just set maven to not include **/resources when creating the jar's, but will will just
copy them to the resources directory during assembly of the distribution.  All scripts will
just add that directory to the classpath.
Note- this is a non-issue during development as Maven copies anything under /src/main/resources
into target as regular files.

> URI is not hierarchical while getting a file from a classpath
> -------------------------------------------------------------
>                 Key: CTAKES-89
>                 URL: https://issues.apache.org/jira/browse/CTAKES-89
>             Project: cTAKES
>          Issue Type: Improvement
>          Components: ctakes-core
>    Affects Versions: 2.6-incubating
>            Reporter: Pei Chen
>            Assignee: Pei Chen
>            Priority: Minor
>             Fix For: 3.0-incubating
> Currently, the FileResourceImpl will support loading a resource from
> 1) Classpath file path
> 2) From File location
> It would be nice to also support classpath from a jar (currently will throw a uri is
not hierarchical exception because it tries to resolve to a path).  should also add functionality
to attempt to gracefully load from a jar as well.  This will allow some flexibility wherever
we decide to move the resources in the future.

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

View raw message