You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2013/06/11 21:10:20 UTC

[jira] [Created] (UIMA-2983) Tests for jcasgen-maven-plugin failing (on Windows) due to malformed URL

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