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