Support UNC paths in PathResource #669

Also-by: Marco Signorini <m.signorini@iontrading.com>
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2016-07-06 16:45:26 +10:00
parent 5b50e41e7e
commit fc36e45795
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ import java.nio.file.Files;
import java.nio.file.InvalidPathException;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.nio.file.attribute.FileTime;
import java.util.ArrayList;
@ -229,7 +230,7 @@ public class PathResource extends Resource
Path path;
try
{
path = new File(uri).toPath();
path = Paths.get(uri);
}
catch (InvalidPathException e)
{