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
This commit is contained in:
parent
2c4db31b34
commit
d7c6df193c
|
@ -579,7 +579,7 @@ public class Main
|
||||||
private String resolveXmlConfig(String xmlFilename) throws FileNotFoundException
|
private String resolveXmlConfig(String xmlFilename) throws FileNotFoundException
|
||||||
{
|
{
|
||||||
File xml = new File(xmlFilename);
|
File xml = new File(xmlFilename);
|
||||||
if (xml.exists() && xml.isFile())
|
if (xml.exists() && xml.isFile() && xml.isAbsolute())
|
||||||
{
|
{
|
||||||
return xml.getAbsolutePath();
|
return xml.getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue