XJC fails with project path that contains spaces · Issue #835 · javaee/jaxb-v2 (original) (raw)
This repository was archived by the owner on Feb 5, 2019. It is now read-only.
This repository was archived by the owner on Feb 5, 2019. It is now read-only.
Description
I'm running the following:
Driver.main(new String[]{"src\\main\\resources\\purchaseorder.xsd", "-b", "src\\main\\resources\\binding.xjb"});
In the project path which contains spaces, like C:\Projects\dev.java.net\maven-jaxb2-plugin-project\tests\p o.
I get this:
[ERROR] "file:/C:/Projects/dev.java.net/maven-jaxb2-plugin-project/tests/p%2520o/src/main/resources/purchaseorder.xsd" is not a part of this compilation. Is this a mistake for "file:/C:/Projects/dev.java.net/maven-jaxb2-plugin-project/tests/p%20o/src/main/resources/purchaseorder.xsd"?
line 4 of file:/C:/Projects/dev.java.net/maven-jaxb2-plugin-project/tests/p%20o/src/main/resources/binding.xjb
Obviously, file URL get escaped twice, as I could traced - during resolution of the relative URL.
It works without binding.xjb.
Reproduced with 2.2.2.
Affected Versions
[2.2.2]