mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-10 04:59:54 +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) {
|
if (mvndH != null) {
|
||||||
Path mvndDaemon =
|
Path mvndDaemon =
|
||||||
Paths.get("mvnd-daemon-" + BuildProperties.getInstance().getVersion() + ".jar");
|
Paths.get("mvnd-daemon-" + BuildProperties.getInstance().getVersion() + ".jar");
|
||||||
if (Files.exists(mvndH.resolve("mvn").resolve("lib").resolve(mvndDaemon))
|
if (Files.exists(
|
||||||
|| Files.exists(mvndH.resolve("mvn")
|
mvndH.resolve("mvn").resolve("lib").resolve("mvnd").resolve(mvndDaemon))) {
|
||||||
.resolve("lib")
|
|
||||||
.resolve("ext")
|
|
||||||
.resolve(mvndDaemon))) {
|
|
||||||
return mvndH.toString();
|
return mvndH.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user