This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 8f756d5 Fix maven daemon detection on windows platform new 9899586 Merge pull request #3767 from philippefichet/master 8f756d5 is described below commit 8f756d5a90138c636095a1ae3a0edca3d5194ab0 Author: FICHET Philippe <philippe.fic...@laposte.net> AuthorDate: Fri Mar 11 17:02:12 2022 +0000 Fix maven daemon detection on windows platform --- .../src/org/netbeans/modules/maven/execute/cmd/ShellConstructor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/maven/src/org/netbeans/modules/maven/execute/cmd/ShellConstructor.java b/java/maven/src/org/netbeans/modules/maven/execute/cmd/ShellConstructor.java index 4555162..d1d6615 100644 --- a/java/maven/src/org/netbeans/modules/maven/execute/cmd/ShellConstructor.java +++ b/java/maven/src/org/netbeans/modules/maven/execute/cmd/ShellConstructor.java @@ -44,7 +44,9 @@ public class ShellConstructor implements Constructor { public List<String> construct() { // use mvnd if its the home of a daemon - String ex = Files.exists(Paths.get(mavenHome.getPath(), "bin", "mvnd")) ? "mvnd" : "mvn"; //NOI18N + String mavenDaemonSuffixDetection = Utilities.isWindows() ? ".exe" : ""; + String ex = Files.exists(Paths.get(mavenHome.getPath(), "bin", "mvnd" + mavenDaemonSuffixDetection)) ? "mvnd" : "mvn"; //NOI18N + List<String> command = new ArrayList<>(); if (Utilities.isWindows()) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists