ctakes-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CTAKES-385) URI is not hierarchical when attempting to obtain lvg.properties within JAR
Date Tue, 27 Oct 2015 03:34:27 GMT

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

Lewis John McGibbney commented on CTAKES-385:
---------------------------------------------

Hi Folks, is a patch required for this to be integrated? I can add a test for reading lvg.properties
from a .jar generated within a JUnit @Before method. Please let me know and I can add tests
to this issue and CTAKES-388. Thanks in advance. 

> URI is not hierarchical when attempting to obtain lvg.properties within JAR
> ---------------------------------------------------------------------------
>
>                 Key: CTAKES-385
>                 URL: https://issues.apache.org/jira/browse/CTAKES-385
>             Project: cTAKES
>          Issue Type: Improvement
>          Components: ctakes-lvg
>    Affects Versions: 3.2.2
>         Environment: MaxOSX 10.9.5, cTAKES 3.2.3-SNAPSHOT (nightly Wed Oct 14th, 2015),
Apache Spark 1.5.1 on Apache Hadoop 2.4.0
>            Reporter: Lewis John McGibbney
>             Fix For: 3.2.3
>
>         Attachments: CTAKES-385.patch
>
>
> As described in the [accompanying mailing list thread|http://www.mail-archive.com/user%40ctakes.apache.org/msg00969.html]
this issue concerns LvgAnnotator.createAnnotatorDescription(LvgAnnotator.java:565) using the
following syntax
> {code}
> ExternalResourceFactory.createExternalResourceDescription(
>               LvgCmdApiResourceImpl.class,
>               new File(LvgCmdApiResourceImpl.class.getResource(
>                   "/org/apache/ctakes/lvg/data/config/lvg.properties").toURI()))
> {code}
> Use of LvgCmdApiResourceImpl.class.getResource should be exchanged for 
> {code}
> LvgCmdApiResourceImpl.class.getResourceAsStream
> {code}
> Patch coming up.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message