a5b854
From 46f7ec33b83c28459496739f4d8b91329fb82bc6 Mon Sep 17 00:00:00 2001
a5b854
From: Michael Simacek <msimacek@redhat.com>
a5b854
Date: Tue, 2 Jun 2015 22:52:21 +0200
a5b854
Subject: [PATCH 1/2] Fedora jetty.home
a5b854
a5b854
---
a5b854
 .../eclipse/jetty/start/config/CommandLineConfigSource.java    | 3 +++
a5b854
 1 file changed, 3 insertions(+)
a5b854
a5b854
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
a5b854
index f0c9e07..7d2ee3e 100644
a5b854
--- a/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java
a5b854
+++ b/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java
a5b854
@@ -120,6 +120,9 @@ public class CommandLineConfigSource implements ConfigSource
a5b854
                 try
a5b854
                 {
a5b854
                     Path home = new File(new URI(m.group(1))).getParentFile().toPath();
a5b854
+                    if (home.endsWith("/usr/share/java/jetty"))
a5b854
+                        home = new File(home.toString().replaceAll("java/jetty$", "jetty")).toPath();
a5b854
+
a5b854
                     setProperty(BaseHome.JETTY_HOME,home.toString(),ORIGIN_INTERNAL_FALLBACK);
a5b854
                     return home;
a5b854
                 }
a5b854
-- 
a5b854
2.19.1
a5b854