From d7c6df193c8852c5f0a16a761d2002f66ae9c41c Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Tue, 25 Aug 2009 15:14:56 +0000 Subject: [PATCH] Adding test for Absolute on xml paths on command line. git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@761 7e9141cc-0065-0410-87d8-b60c137991c4 --- jetty-start/src/main/java/org/eclipse/jetty/start/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java index 050730c834d..03c6d6611cd 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java @@ -579,7 +579,7 @@ public class Main private String resolveXmlConfig(String xmlFilename) throws FileNotFoundException { File xml = new File(xmlFilename); - if (xml.exists() && xml.isFile()) + if (xml.exists() && xml.isFile() && xml.isAbsolute()) { return xml.getAbsolutePath(); }