From fcd2f3330425c89ac5e8a1743ebc2f10fafa7cb5 Mon Sep 17 00:00:00 2001 From: mlangkabel Date: Wed, 18 Nov 2020 17:44:32 +0100 Subject: [PATCH] fix escaping in mvn path detector (necessary after 8b8c1866) --- .../maven_executable/MavenPathDetectorWindows.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib_gui/utility/path_detector/maven_executable/MavenPathDetectorWindows.cpp b/src/lib_gui/utility/path_detector/maven_executable/MavenPathDetectorWindows.cpp index ac8bf996..9da9edf6 100644 --- a/src/lib_gui/utility/path_detector/maven_executable/MavenPathDetectorWindows.cpp +++ b/src/lib_gui/utility/path_detector/maven_executable/MavenPathDetectorWindows.cpp @@ -7,7 +7,9 @@ MavenPathDetectorWindows::MavenPathDetectorWindows(): PathDetector("Maven for Wi std::vector MavenPathDetectorWindows::doGetPaths() const { - FilePath mavenPath(utility::executeProcess(L"cmd", std::vector{L"/c where mvn.cmd && exit"}).second); + FilePath mavenPath( + utility::executeProcess(L"cmd", std::vector {L"\"/c where mvn.cmd && exit\""}) + .second); std::vector paths; if (mavenPath.exists())