d11824
From 7e9bed1ca10901a3cf28775d9563570e94e2280b Mon Sep 17 00:00:00 2001
d11824
From: Mat Booth <mat.booth@redhat.com>
d11824
Date: Mon, 9 Sep 2019 12:42:10 +0100
d11824
Subject: [PATCH] Distro jetty.home
d11824
d11824
---
d11824
 .../org/eclipse/jetty/start/config/CommandLineConfigSource.java | 2 ++
d11824
 1 file changed, 2 insertions(+)
d11824
d11824
diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java b/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java
d11824
index 792413e..5e5cab9 100644
d11824
--- a/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java
d11824
+++ b/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java
d11824
@@ -120,6 +120,8 @@ public class CommandLineConfigSource implements ConfigSource
d11824
                 try
d11824
                 {
d11824
                     Path home = new File(new URI(m.group(1))).getParentFile().toPath();
d11824
+                    if (home.endsWith("/usr/share/java/jetty"))
d11824
+                        home = new File(home.toString().replaceAll("java/jetty$", "jetty")).toPath();
d11824
                     setProperty(BaseHome.JETTY_HOME, home.toString(), ORIGIN_INTERNAL_FALLBACK);
d11824
                     return home;
d11824
                 }
d11824
-- 
d11824
2.20.1
d11824