Commit 63fddc4f authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

filesystem error

parent 6d37cfed
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.FileSystem;
import java.nio.file.FileSystemAlreadyExistsException;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
@@ -73,7 +74,12 @@ public class StreamManagerFactory {
			boolean isJar = uri.getScheme().equals("jar");
			Path dirPath;
			if (isJar) {
				FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());
				FileSystem fileSystem;
				try {
					fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());
				} catch(FileSystemAlreadyExistsException ex) {
					fileSystem = FileSystems.getFileSystem(uri);
				}
				dirPath = fileSystem.getPath("/documentation");
			} else {
				dirPath = Paths.get(uri);