commit | 73a14bcf299673e606e1ae42c491b7013144c597 | [log] [tgz] |
---|---|---|
author | Lukas Jungmann <lukas.jungmann@oracle.com> | Wed Nov 18 17:40:03 2020 +0100 |
committer | Lukas Jungmann <lukas.jungmann@oracle.com> | Wed Nov 18 17:52:03 2020 +0100 |
tree | 080eb2fb22a6501606894c94499bd9ee0e1b40bc | |
parent | 637dea5437e410fd9b81d87d519ba8cf200688cb [diff] |
#1490: CodeGenTest fails when there is a space in the Working Directory Name Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
diff --git a/jaxb-ri/xjc/src/test/java/com/sun/tools/xjc/CodeGenTest.java b/jaxb-ri/xjc/src/test/java/com/sun/tools/xjc/CodeGenTest.java index c5d374a..c49e23e 100644 --- a/jaxb-ri/xjc/src/test/java/com/sun/tools/xjc/CodeGenTest.java +++ b/jaxb-ri/xjc/src/test/java/com/sun/tools/xjc/CodeGenTest.java
@@ -57,7 +57,7 @@ URL url = CodeGenTest.class.getResource(systemId); File f = new File(url.toURI()); InputSource is = new InputSource(new FileInputStream(f)); - is.setSystemId(f.getAbsolutePath()); + is.setSystemId(f.toURI().toString()); return is; }
diff --git a/jaxb-ri/xjc/src/test/java/META-INF/services/com.sun.tools.xjc.Plugin b/jaxb-ri/xjc/src/test/resources/META-INF/services/com.sun.tools.xjc.Plugin similarity index 100% rename from jaxb-ri/xjc/src/test/java/META-INF/services/com.sun.tools.xjc.Plugin rename to jaxb-ri/xjc/src/test/resources/META-INF/services/com.sun.tools.xjc.Plugin