This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch dev/activation-executable-refinements in repository https://gitbox.apache.org/repos/asf/maven.git
commit f8161d2771a388ce1344467eec7a32315f3a3626 Author: Romain Manni-Bucau <[email protected]> AuthorDate: Wed Nov 18 21:04:09 2026 +0100 Document the path.separator override in ExecutableFinder --- .../java/org/apache/maven/impl/model/profile/ExecutableFinder.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ExecutableFinder.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ExecutableFinder.java index 35c0e36b92..0252d25263 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ExecutableFinder.java +++ b/impl/maven-impl/src/main/java/org/apache/maven/impl/model/profile/ExecutableFinder.java @@ -38,6 +38,12 @@ * to {@code .COM;.EXE;.BAT;.CMD}; an empty PATHEXT disables suffix probing. * Exact files are checked before appending suffixes, preserving explicit-file support. * No executable is launched and no implicit current-directory search is performed. + * <p> + * {@code env.PATH} is split on the {@code path.separator} system property, falling back to + * {@link File#pathSeparator} when it is missing or empty. + * At runtime both values are identical, so the property is only an override point: it allows the unit tests + * to exercise Windows and POSIX separators independently of the host OS, and copes with environments that + * explicitly set {@code path.separator}. * * @since 4.x */
