uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Created] (UIMA-2983) Tests for jcasgen-maven-plugin failing (on Windows) due to malformed URL
Date Tue, 11 Jun 2013 19:10:20 GMT
Marshall Schor created UIMA-2983:
------------------------------------

             Summary: Tests for jcasgen-maven-plugin failing (on Windows) due to malformed
URL
                 Key: UIMA-2983
                 URL: https://issues.apache.org/jira/browse/UIMA-2983
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
         Environment: Windows
            Reporter: Marshall Schor
            Assignee: Marshall Schor
             Fix For: 2.4.1SDK


On Windows (and maybe other platform) the plugin is generating UIMA descriptors having import
statements that are importing by location. These are being generated using 
{noformat}
 Import imp = new Import_impl();
 imp.setLocation(new File(ds.getBasedir(),descriptorLocation).getAbsolutePath()));
{noformat}

But the document for UIMA for location parameters says they have to be URLs, see http://uima.apache.org/d/uimaj-2.4.0/references.html#ugr.ref.xml.component_descriptor.imports

The example there for "absolute" paths says to prefix the path with "file:///" to make it
a valid URL.  Change the code which sets import location that generates absolute paths to
prefix the path with this.

Also, since the path is absolute, there's no need for the 2 argument form of the File constructor,
since that's for relative paths.

--
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

Mime
View raw message