Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2983

Tests for jcasgen-maven-plugin failing (on Windows) due to malformed URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.1SDK
    • Core Java Framework
    • None
    • Windows

    Description

      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

       Import imp = new Import_impl();
       imp.setLocation(new File(ds.getBasedir(),descriptorLocation).getAbsolutePath()));
      

      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.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: