apache/uima-uimaj

Build fails on Windows if namespace contains whitespace

viorell91 opened this issue · 0 comments

Describe the bug
When Building uimaj-core from sources on Windows, a single whitespace in the namespace leads to failed test ImportResolverTest.testTransitiveResolveImports.

Stacktrace:

[ERROR] Failures:
[ERROR]   ImportResolverTest.testTransitiveResolveImports:110
Expecting actual:
  {"file:/C:/Users/morari/Downloads/Neuer Ordner/uimaj-3.4.0-RC-202301261003-3ce0551/uimaj-3.4.0-source-release/uimaj-3.4.0/uimaj-core/target/test-classes/ImportResolverTest/Transitive-with-3-nodes-2.xml"=org.apache.uima.resource.metadata.impl.TypeSystemDescription_impl:
[...]
to contain only following keys:
  ["file:/C:/Users/morari/Downloads/Neuer%20Ordner/uimaj-3.4.0-RC-202301261003-3ce0551/uimaj-3.4.0-source-release/uimaj-3.4.0/uimaj-core/target/test-classes/ImportResolverTest/Loop-with-3-nodes-2.xml",
    "file:/C:/Users/morari/Downloads/Neuer%20Ordner/uimaj-3.4.0-RC-202301261003-3ce0551/uimaj-3.4.0-source-release/uimaj-3.4.0/uimaj-core/target/test-classes/ImportResolverTest/Loop-with-3-nodes-3.xml"]
keys not found:
  ["file:/C:/Users/morari/Downloads/Neuer%20Ordner/uimaj-3.4.0-RC-202301261003-3ce0551/uimaj-3.4.0-source-release/uimaj-3.4.0/uimaj-core/target/test-classes/ImportResolverTest/Loop-with-3-nodes-2.xml",
    "file:/C:/Users/morari/Downloads/Neuer%20Ordner/uimaj-3.4.0-RC-202301261003-3ce0551/uimaj-3.4.0-source-release/uimaj-3.4.0/uimaj-core/target/test-classes/ImportResolverTest/Loop-with-3-nodes-3.xml"]
and keys not expected:
  ["file:/C:/Users/morari/Downloads/Neuer Ordner/uimaj-3.4.0-RC-202301261003-3ce0551/uimaj-3.4.0-source-release/uimaj-3.4.0/uimaj-core/target/test-classes/ImportResolverTest/Loop-with-3-nodes-2.xml",
    "file:/C:/Users/morari/Downloads/Neuer Ordner/uimaj-3.4.0-RC-202301261003-3ce0551/uimaj-3.4.0-source-release/uimaj-3.4.0/uimaj-core/target/test-classes/ImportResolverTest/Loop-with-3-nodes-3.xml"]

here the parent folder contains a whitespace: Neuer Ordner

To Reproduce
Steps to reproduce the behavior:

  1. Build from sources, on Windows, where the source's namespace contains at least a whitespace.
  2. See error

Expected behavior
Successful build from sources on Windows, while path contains a whitespace.

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Version: 3.4.0
  • OS: Windows 10