-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests in openidm-launcher module does not work on Windows #168
Comments
I think this issue can be generalized to "Windows build does not work". There are more modules that fail. |
JRE's PathMatcher does not handle directory wildcards var plexusMatch = MatchPattern.fromString("**\\hello\\**\\*.jar").matchPath("hello\\foo.jar", false); // => true
var javaMatch = FileSystems.getDefault().getPathMatcher("glob:**/hello/**/*.jar").matches(Path.of("hello\\foo.jar")); // => false JRE must match Btw. Spring's |
This has been solved by the linked PR. |
Module openidm-launcher uses glob matcher from plexus-utils library. This library is no longer maintained and is sensitive to path separator characters (
\
vs/
). Fortunately the base configuration does not need to use path separator so the question is if we really need that feature. Nevertheless the unit testConfigurationUtilTest
does not work whenFile.separator == "\\"
(that also means Wren:IDM would not run on Windows if someone tries to use path separator in glob pattern insidelauncher.json
includes/excludes).Also with our Java 11+ support we can switch glob matching to native PathMatcher and possible drop the dependency (if it is used only for this purpose).
The text was updated successfully, but these errors were encountered: