f8369c
From 46f7ec33b83c28459496739f4d8b91329fb82bc6 Mon Sep 17 00:00:00 2001
f8369c
From: Michael Simacek <msimacek@redhat.com>
f8369c
Date: Tue, 2 Jun 2015 22:52:21 +0200
f8369c
Subject: [PATCH 1/2] Fedora jetty.home
f8369c
f8369c
---
f8369c
 .../eclipse/jetty/start/config/CommandLineConfigSource.java    | 3 +++
f8369c
 1 file changed, 3 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
f8369c
index f0c9e07..7d2ee3e 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
f8369c
@@ -120,6 +120,9 @@ 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();
f8369c
+
f8369c
                     setProperty(BaseHome.JETTY_HOME,home.toString(),ORIGIN_INTERNAL_FALLBACK);
f8369c
                     return home;
f8369c
                 }
f8369c
-- 
f8369c
2.19.1
f8369c