346124 Fixed UNC path resource test on Windows

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3257 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Michael Gorovoy 2011-05-25 16:12:22 +00:00
parent be98ef70a1
commit a00f7945a6
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ public class ResourceTest
{
assumeTrue(OS.IS_WINDOWS);
String uncPath = "\\\\127.0.0.1"+__userURL.toURI().getPath().replace('/','\\')+"ResourceTest.java";
String uncPath = "\\\\127.0.0.1"+__userURL.toURI().getPath().replace('/','\\').replace(':','$')+"ResourceTest.java";
Resource uncResource = Resource.newResource(uncPath, false);
assertTrue(uncResource.exists());