-
Task
-
Resolution: Done
-
Major
-
None
-
None
In getDependencies():
Path path = Paths.get(modulePath.toString(), module.replaceAll("\\.", "/"), "main/module.xml"); if (!Files.exists(path)) { // pseudo module return; }
This is incorrect in general and results in LayersTestCase failures in full WF on Windows:
java.nio.file.InvalidPathException: Illegal char <:> at index 135: C:\BuildAgent\work\90f1d30175b301ce\testsuite\layers\target\layers-results\test-all-layers\modules\system\layers\base\javax/servlet/api:h2\main/module.xml
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.nio.file.Path.of(Path.java:147)
at java.base/java.nio.file.Paths.get(Paths.java:69)
at org.jboss.as.test.layers.Scanner.getDependencies(Scanner.java:238)