mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-09 15:09:23 +00:00
Fix mvnd home detection based on executable path
This commit is contained in:
@@ -124,11 +124,8 @@ public class DaemonParameters {
|
||||
if (mvndH != null) {
|
||||
Path mvndDaemon =
|
||||
Paths.get("mvnd-daemon-" + BuildProperties.getInstance().getVersion() + ".jar");
|
||||
if (Files.exists(mvndH.resolve("mvn").resolve("lib").resolve(mvndDaemon))
|
||||
|| Files.exists(mvndH.resolve("mvn")
|
||||
.resolve("lib")
|
||||
.resolve("ext")
|
||||
.resolve(mvndDaemon))) {
|
||||
if (Files.exists(
|
||||
mvndH.resolve("mvn").resolve("lib").resolve("mvnd").resolve(mvndDaemon))) {
|
||||
return mvndH.toString();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user